first work on migrating the javascripts to coffeescript and backbone (wip)

This commit is contained in:
did 2011-11-10 02:43:19 +01:00
parent 248d3803c2
commit 599b1d6395
867 changed files with 171 additions and 62314 deletions

View File

@ -29,7 +29,7 @@ gem 'rails-backbone', '0.5.4'
gem 'handlebars-rails', :git => 'git://github.com/yabawock/handlebars-rails.git'
gem 'locomotive_liquid', '2.2.2', :require => 'liquid'
gem 'formtastic', '~> 2.0.2' # TODO: UPGRADE IT
gem 'formtastic', '~> 2.0.2'
gem 'responders', '~> 0.6.0'
gem 'cells', '~> 3.7.0'
gem 'RedCloth', '~> 4.2.8'

View File

@ -10,16 +10,16 @@ GIT
GIT
remote: git://github.com/locomotivecms/custom_fields.git
revision: f7190a9f690de75f8d6ddab1eba10ea82993f670
revision: af88a1602442c1507152426a5dcac662695c55ef
specs:
custom_fields (1.1.0.rc1)
activesupport (~> 3.1.1)
carrierwave-mongoid (~> 0.1.3)
mongoid (~> 2.3.2)
mongoid (~> 2.3.3)
GIT
remote: git://github.com/plataformatec/devise.git
revision: 58d61c290a8254e372a7cbbace5cb138085f7c6e
revision: e8aabd465216bcb260448056c8ed4580d099a8c9
specs:
devise (1.5.0.dev)
bcrypt-ruby (~> 3.0)
@ -109,17 +109,17 @@ GEM
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.1.2)
coffee-script-source (1.1.3)
columnize (0.3.4)
cucumber (1.1.1)
cucumber (1.1.2)
builder (>= 2.1.2)
diff-lcs (>= 1.1.2)
gherkin (~> 2.6.0)
gherkin (~> 2.6.2)
json (>= 1.4.6)
term-ansicolor (>= 1.0.6)
cucumber-rails (1.1.1)
cucumber-rails (1.2.0)
capybara (>= 1.1.1)
cucumber (>= 1.1.0)
cucumber (>= 1.1.1)
nokogiri (>= 1.5.0)
daemons (1.1.4)
database_cleaner (0.6.7)
@ -161,16 +161,16 @@ GEM
json (>= 1.4.6)
growl-glue (1.0.7)
haml (3.1.3)
highline (1.6.2)
highline (1.6.5)
hike (1.2.1)
httparty (0.8.1)
multi_json
multi_xml
i18n (0.6.0)
jquery-rails (1.0.16)
jquery-rails (1.0.17)
railties (~> 3.0)
thor (~> 0.14)
json (1.6.1)
json (1.5.4)
json_pure (1.6.1)
kgio (2.6.0)
launchy (2.0.5)
@ -202,7 +202,7 @@ GEM
pickle (0.4.10)
cucumber (>= 0.8)
rake
polyglot (0.3.2)
polyglot (0.3.3)
rack (1.3.5)
rack-cache (1.1)
rack (>= 0.4)
@ -297,7 +297,7 @@ GEM
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.30)
tzinfo (0.3.31)
uglifier (1.0.4)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)

View File

@ -5,5 +5,12 @@
// the compiled file.
//
//= require jquery
//= require_tree locomotive
//= require jquery-ui
//= require jquery_ujs
//= require underscore
//= require handlebars
//= require backbone
//= require backbone_rails_sync
//= require_tree ../../../vendor/assets/javascripts
//= require ./locomotive/application

View File

@ -1,5 +0,0 @@
$(document).ready(function() {
$.subscribe('form.saved.success', function(event, data) {
$('#global-actions-bar a:first').html($('#my_account_name').val());
}, []);
});

View File

@ -1,2 +0,0 @@
nightly
2011-02-12 16:09:37

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,469 +0,0 @@
/*!
* Aloha Editor
* Author & Copyright (c) 2010 Gentics Software GmbH
* aloha-sales@gentics.com
* Licensed unter the terms of http://www.aloha-editor.com/license.html
*/
.GENTICS_editable {
min-height: 1.2em;
}
.GENTICS_editable_active .GENTICS_block {
background-color: #B7D6FA !important;
}
.GENTICS_editable_zerowidthfix {
padding: 0px 5px 0px 5px !important;
}
.GENTICS_editicon {
position: absolute;
margin-left: -34px;
display: none;
}
.GENTICS_block .GENTICS_block .GENTICS_editicon {
margin-top: 15px;
}
.GENTICS_block .GENTICS_block .GENTICS_block .GENTICS_editicon {
margin-top: 30px;
}
.GENTICS_block .GENTICS_block .GENTICS_block .GENTICS_block .GENTICS_editicon {
margin-top: 45px;
}
/*
* Ext JS fixes
*/
.GENTICS_floatingmenu table, .GENTICS_floatingmenu tr, .GENTICS_floatingmenu td,
.ext-root tr:nth-child(2n), .ext-root tr:nth-child(3n), .ext-root tr:nth-child(4n), .ext-root tr:nth-child(5n),
.ext-root table, .ext-root tr, .ext-root td,
.x-layer table, .x-layer tr, .x-layer td,
.x-window table, .x-window tr, .x-window td {
border: 0;
padding: 0;
margin: 0;
background-color: transparent;
}
.GENTICS_floatingmenu table, .GENTICS_floatingmenu tr, .GENTICS_floatingmenu td {
width: 0;
height: 0;
}
/* fixes modal dialog border issues in GCN backend */
table.x-toolbar-ct {
border: 0px;
}
table.x-toolbar-ct td {
border: 0px;
}
table.x-toolbar-ct table {
border: 0px;
}
/*
* Floating Menu
*/
.GENTICS_floatingmenu .x-tab-panel-header {
border-width: 0px 0px 1px 0px;
background: none;
}
.GENTICS_floatingmenu .x-tab-panel-header .x-tab-strip-wrap, .GENTICS_floatingmenu ul.x-tab-strip-top {
background: none;
}
.GENTICS_floatingmenu .x-tab-panel-header {
padding-bottom: 0px;
}
.GENTICS_floatingmenu:hover {
background-color: #E0E0E0;
-moz-border-radius-topleft: 3px;
-moz-border-radius-topright: 3px;
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
background: url(../images/grabhandle.png) no-repeat scroll center 5px rgba(0, 0, 0, 0.4);
}
.GENTICS_floatingmenu:hover .GENTICS_floatingmenu_pin {
display: block;
}
.GENTICS_floatingmenu_pin {
background: url("../images/pin.png") no-repeat scroll 0 6px transparent;
cursor: pointer;
margin-left: 5px !important;
width: 16px;
position: absolute !important;
right: 10px;
display: none;
}
.GENTICS_floatingmenu_pinned {
background-position: -16px 6px;
}
#GENTICS_floatingmenu_shadow {
position: absolute;
top: -1000;
left: -1000;
display: none;
z-index: 8800;
}
.x-combo-selected {
background-color: Highlight !important;
}
.x-tree-root-ct {
padding: 0px;
}
.x-tree-node {
list-style: none;
}
.x-tree-node-ct {
padding: 0px;
}
/*hide dotted browser border on focus*/
.GENTICS_button a:focus {
outline: none;
}
button.GENTICS_button {
background: url(../images/base.png) no-repeat !important;
}
button.GENTICS_button_big {
background: url(../images/base_big.png) no-repeat !important;
}
/*buttons for format plugin*/
button.GENTICS_button_b {
background-position: 0px 0px;
}
button.GENTICS_button_i {
background-position: -16px 0px !important;
}
button.GENTICS_button_u {
background-position: -32px 0px !important;
}
button.GENTICS_button_del {
background-position: -48px 0px !important;
}
button.GENTICS_button_sub {
background-position: -64px 0px !important;
}
button.GENTICS_button_sup {
background-position: -80px 0px !important;
}
button.GENTICS_button_ul {
background-position: -256px 0px !important;
}
button.GENTICS_button_ol {
background-position: -272px 0px !important;
}
button.GENTICS_button_a {
background-position: -288px 0px !important;
}
button.GENTICS_button_a_remove {
background-position: -304px 0px !important;
}
/**
* multisplit buttons
*/
button.GENTICS_button_p {
background-position: 0px 0 !important;
}
button.GENTICS_button_p_de {
background-position: 0px -42px !important;
}
button.GENTICS_button_h1 {
background-position: -52px 0 !important;
}
button.GENTICS_button_h1_de {
background-position: -52px -42px !important;
}
button.GENTICS_button_h2 {
background-position: -104px 0 !important;
}
button.GENTICS_button_h2_de {
background-position: -104px -42px !important;
}
button.GENTICS_button_h3 {
background-position: -156px 0 !important;
}
button.GENTICS_button_h3_de {
background-position: -156px -42px !important;
}
button.GENTICS_button_h4 {
background-position: -208px 0 !important;
}
button.GENTICS_button_h4_de {
background-position: -208px -42px !important;
}
button.GENTICS_button_h5 {
background-position: -260px 0 !important;
}
button.GENTICS_button_h5_de {
background-position: -260px -42px !important;
}
button.GENTICS_button_h6 {
background-position: -312px 0 !important;
}
button.GENTICS_button_h6_de {
background-position: -312px -42px !important;
}
button.GENTICS_button_pre {
background-position: -364px 0 !important;
}
button.GENTICS_button_pre_de {
background-position: -364px -42px !important;
}
button.GENTICS_button_title {
background-position: -416px 0 !important;
}
button.GENTICS_button_title_de {
background-position: -416px -42px !important;
}
/*buttons of the table plugin*/
button.GENTICS_button_table {
background-position: -96px 0 !important;
}
button.GENTICS_button_addColumnLeft {
background-position: -112px 0 !important;
}
button.GENTICS_button_addColumnRight {
background-position: -128px 0 !important;
}
button.GENTICS_button_addRowBefore {
background-position: -144px 0 !important;
}
button.GENTICS_button_addRowAfter {
background-position: -160px 0 !important;
}
button.GENTICS_button_deleteRows {
background-position: -176px 0 !important;
}
button.GENTICS_button_deleteColumns {
background-position: -192px 0 !important;
}
/* iks test buttons */
button.GENTICS_button_addPerson {
background-position: -224px 0 !important;
}
button.GENTICS_button_addEvent {
background-position: -208px 0 !important;
}
button.GENTICS_button_abbr {
background-position: -336px 0px !important;
}
button.GENTICS_button_tree {
background-position: -0 0 !important;
}
/*button status hover of format plugin*/
div.GENTICS_button a:hover {
border: 1px solid #b2cbff;
}
.GENTICS_floatingmenu {
display: none;
}
/*button status active of format plugin*/
.GENTICS_floatingmenu .pressed a {
border:1px solid #ccc;
}
.GENTICS_logo {
width:37px !important;
height:25px !important;
background-image: url('../images/gentics_logo.png') !important;
}
.GENTICS_maximize {
background-image: url('../images/gentics_logo.png') !important;
}
.GENTICS_fade_out {
background-image: url('../images/fade_out.png') !important;
width:20px !important;
height:20px !important;
}
.GENTICS_fade_in {
background-image: url('../images/fade_in.png') !important;
width:20px !important;
height:20px !important;
}
.GENTICS_maximize {
width:20px !important;
height:20px !important;
background-image: url('../images/maximize.png') !important;
}
html body .GENTICS_ribbon {
z-index:90000;
position:fixed;
top:0;
left:0;
width:100%;
padding-left:0;
padding-right:0;
display: none;
}
.x-menu-list-item {
text-align:left;
}
.GENTICS_shadow {
-moz-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}
/*
* extJs GENTICS Multisplit Button
*/
ul.GENTICS_multisplit button.GENTICS_button {
background-image: url(../images/base_multi.png) !important;
background-repeat: no-repeat;
background-position: 0 0;
/*
* WARNING do not change the button size for multisplit buttons
*/
width: 54px !important;
height: 44px !important;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.GENTICS_multisplit {
float: left;
list-style: none;
}
ul.GENTICS_multisplit, div.GENTICS_multisplit-wrapper {
width: 232px;
height: 46px;
overflow: hidden;
margin: 0px;
padding: 0px;
}
div.GENTICS_multisplit-wrapper {
width: 248px;
}
ul.GENTICS_multisplit li {
float: left;
padding: 0px 1px;
margin: 0px;
}
ul.GENTICS_multisplit button.GENTICS_multisplit-wide {
font: 11px tahoma,arial,helvetica;
height: 18px !important;
width: 234px !important;
border: 0;
border-top: 1px solid #cccccc;
cursor: pointer;
background-color: white;
background-repeat: no-repeat;
background-position: 6px 1px !important;
text-align: left;
margin-left: -2px;
padding-left: 26px;
}
button.GENTICS_multisplit_toggle {
float: right;
margin: 0;
padding: 0;
width: 15px;
height: 12px;
margin-top: 32px;
cursor: pointer;
border: 0;
}
button.GENTICS_multisplit_toggle_open {
background-image: url(../images/multisplit-open.gif);
}
button.GENTICS_multisplit_toggle_close {
background-image: url(../images/multisplit-close.gif);
}
ul.GENTICS_multisplit button {
border: 1px solid #cccccc;
margin: 1px;
cursor: pointer;
}
ul.GENTICS_multisplit button:hover {
border: 1px solid #666666;
}
ul.GENTICS_multisplit button.GENTICS_multisplit-wide:hover {
border: 0;
border-top: 1px solid #cccccc;
}
ul.GENTICS_multisplit button.GENTICS_multisplit-activeitem {
border: 2px solid #3B73D7;
}
ul.GENTICS_multisplit-expanded {
position: absolute;
top: 0px;
left: 0px;
z-index: 20000;
background-color: white;
border: 1px solid #afafaf;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
ul.GENTICS_multisplit button.GENTICS_button_removeFormat {
background-image: url(../images/removeformat.png) !important;
}

View File

@ -1,20 +0,0 @@
Copyright (c) 2010 John Resig, http://jquery.com/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1010 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1005 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 851 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 828 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 861 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 898 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 937 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 863 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 937 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 937 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 949 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1016 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 996 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 819 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 868 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 869 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 962 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 832 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 947 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 860 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 834 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 829 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 817 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 855 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 817 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 829 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 837 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 917 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 881 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 955 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 930 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 955 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 971 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 697 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 771 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 875 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 925 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 925 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 923 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 923 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 875 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 875 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 879 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 879 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 977 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Some files were not shown because too many files have changed in this diff Show More