lolita 3.1.10 → 3.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -5
- data/.rspec +2 -2
- data/GUIDELINES.rdoc +24 -24
- data/Gemfile +26 -26
- data/History.rdoc +162 -154
- data/LICENSE.txt +22 -22
- data/README.rdoc +98 -98
- data/Rakefile +40 -40
- data/VERSION +1 -1
- data/app/controllers/lolita/info_controller.rb +41 -41
- data/app/controllers/lolita/rest_controller.rb +130 -130
- data/app/helpers/components/lolita/configuration/list_component.rb +10 -10
- data/app/helpers/lolita_helper.rb +11 -11
- data/app/views/components/lolita/configuration/column/_display.html.erb +4 -4
- data/app/views/components/lolita/configuration/column/_header.html.erb +7 -7
- data/app/views/components/lolita/configuration/column/_sort.html.erb +4 -4
- data/app/views/components/lolita/configuration/columns/_body.html.erb +4 -4
- data/app/views/components/lolita/configuration/columns/_display.html.erb +1 -1
- data/app/views/components/lolita/configuration/columns/_first.html.erb +2 -2
- data/app/views/components/lolita/configuration/columns/_first_column_header.html.erb +3 -3
- data/app/views/components/lolita/configuration/columns/_header.html.erb +8 -8
- data/app/views/components/lolita/configuration/columns/_last.html.erb +4 -4
- data/app/views/components/lolita/configuration/columns/_last_column_header.html.erb +2 -2
- data/app/views/components/lolita/configuration/columns/_row.html.erb +7 -7
- data/app/views/components/lolita/configuration/field/_display.html.erb +9 -9
- data/app/views/components/lolita/configuration/field/_label.html.erb +1 -1
- data/app/views/components/lolita/configuration/field/_object.html.erb +1 -1
- data/app/views/components/lolita/configuration/field/array/_display.html.erb +4 -4
- data/app/views/components/lolita/configuration/field/array/habtm/_display.html.erb +26 -26
- data/app/views/components/lolita/configuration/field/array/select/_display.html.erb +5 -5
- data/app/views/components/lolita/configuration/field/boolean/filter/_display.html.erb +1 -1
- data/app/views/components/lolita/configuration/field/date/_display.html.erb +1 -1
- data/app/views/components/lolita/configuration/field/date_time/date/_display.html.erb +1 -1
- data/app/views/components/lolita/configuration/field/integer/_display.html.erb +1 -1
- data/app/views/components/lolita/configuration/field/string/_display.html.erb +4 -4
- data/app/views/components/lolita/configuration/field/string/disabled/_display.html.erb +1 -1
- data/app/views/components/lolita/configuration/field/string/password/_display.html.erb +3 -3
- data/app/views/components/lolita/configuration/field/string/text/_display.html.erb +18 -18
- data/app/views/components/lolita/configuration/field_set/_display.html.erb +5 -5
- data/app/views/components/lolita/configuration/list/_display.html.erb +10 -10
- data/app/views/components/lolita/configuration/list/_filter.html.erb +7 -7
- data/app/views/components/lolita/configuration/list/_new_resource.html.erb +4 -4
- data/app/views/components/lolita/configuration/list/_title.html.erb +4 -4
- data/app/views/components/lolita/configuration/tab/_display.html.erb +17 -17
- data/app/views/components/lolita/configuration/tab/_fields.html.erb +6 -6
- data/app/views/components/lolita/configuration/tab/content/_display.html.erb +1 -1
- data/app/views/components/lolita/configuration/tab/default/_display.html.erb +8 -8
- data/app/views/components/lolita/configuration/tabs/_display.html.erb +10 -10
- data/app/views/components/lolita/navigation/_display.html.erb +2 -2
- data/app/views/components/lolita/navigation/_tree.html.erb +38 -38
- data/app/views/components/lolita/shared/_flash.html.erb +5 -5
- data/app/views/components/lolita/shared/_header.html.erb +8 -8
- data/app/views/components/lolita/shared/_right_sidebar.html.erb +13 -13
- data/app/views/layouts/lolita/application.html.erb +44 -44
- data/app/views/lolita/info/index.html.erb +232 -232
- data/app/views/lolita/rest/form.html.erb +1 -1
- data/app/views/lolita/rest/index.html.erb +1 -1
- data/author +1 -1
- data/config/locales/default/lv.yml +180 -180
- data/config/locales/en.yml +20 -20
- data/config/locales/lv.yml +20 -20
- data/config/routes.rb +3 -3
- data/db/seed.rb +1 -1
- data/features/create_page.feature +19 -19
- data/features/step_definitions/lolita_steps.rb +7 -7
- data/features/step_definitions/web_steps.rb +219 -219
- data/features/support/env.rb +73 -73
- data/features/support/paths.rb +35 -35
- data/lib/generators/helpers/file_helper.rb +22 -22
- data/lib/generators/lolita/assets_generator.rb +18 -18
- data/lib/generators/lolita/install_generator.rb +28 -28
- data/lib/generators/templates/lolita.rb +19 -19
- data/lib/lolita.rb +184 -184
- data/lib/lolita/adapter/abstract_adapter.rb +13 -13
- data/lib/lolita/adapter/active_record.rb +148 -148
- data/lib/lolita/adapter/mongoid.rb +127 -127
- data/lib/lolita/base_configuration.rb +165 -165
- data/lib/lolita/builder.rb +249 -249
- data/lib/lolita/configuration/base.rb +76 -76
- data/lib/lolita/configuration/column.rb +93 -94
- data/lib/lolita/configuration/columns.rb +66 -66
- data/lib/lolita/configuration/factory.rb +55 -55
- data/lib/lolita/configuration/field.rb +216 -216
- data/lib/lolita/configuration/field/array.rb +75 -75
- data/lib/lolita/configuration/field/big_decimal.rb +12 -12
- data/lib/lolita/configuration/field/boolean.rb +12 -12
- data/lib/lolita/configuration/field/date.rb +12 -12
- data/lib/lolita/configuration/field/date_time.rb +13 -13
- data/lib/lolita/configuration/field/integer.rb +12 -12
- data/lib/lolita/configuration/field/string.rb +13 -13
- data/lib/lolita/configuration/field/time.rb +13 -13
- data/lib/lolita/configuration/field_set.rb +25 -25
- data/lib/lolita/configuration/fields.rb +35 -35
- data/lib/lolita/configuration/filter.rb +108 -108
- data/lib/lolita/configuration/list.rb +104 -104
- data/lib/lolita/configuration/page.rb +125 -124
- data/lib/lolita/configuration/tab.rb +187 -187
- data/lib/lolita/configuration/tab/content.rb +21 -21
- data/lib/lolita/configuration/tab/default.rb +25 -25
- data/lib/lolita/configuration/tabs.rb +132 -132
- data/lib/lolita/controllers/component_helpers.rb +127 -127
- data/lib/lolita/controllers/internal_helpers.rb +109 -109
- data/lib/lolita/controllers/url_helpers.rb +111 -111
- data/lib/lolita/controllers/user_helpers.rb +32 -32
- data/lib/lolita/controllers/view_user_helpers.rb +12 -12
- data/lib/lolita/dbi/base.rb +50 -50
- data/lib/lolita/errors.rb +12 -12
- data/lib/lolita/hooks.rb +355 -355
- data/lib/lolita/hooks/named_hook.rb +125 -125
- data/lib/lolita/lazy_loader.rb +46 -46
- data/lib/lolita/mapping.rb +55 -55
- data/lib/lolita/modules.rb +6 -6
- data/lib/lolita/modules/rest.rb +10 -10
- data/lib/lolita/navigation/branch.rb +132 -132
- data/lib/lolita/navigation/tree.rb +116 -116
- data/lib/lolita/observed_array.rb +74 -74
- data/lib/lolita/rails.rb +20 -20
- data/lib/lolita/rails/all.rb +10 -10
- data/lib/lolita/rails/routes.rb +133 -133
- data/lib/lolita/ruby_ext/accessors.rb +26 -26
- data/lib/lolita/support/formatter.rb +62 -62
- data/lib/lolita/support/formatter/rails.rb +56 -56
- data/lib/lolita/test/matchers.rb +77 -77
- data/lolita.gemspec +2 -2
- data/public/javascripts/jquery-1.6.min.js +15 -15
- data/public/javascripts/jquery-ui-1.8.13.min.js +407 -407
- data/public/javascripts/lolita/main.js +39 -39
- data/public/javascripts/lolita/tab.js +41 -41
- data/public/javascripts/modernizr-1.7.min.js +1 -1
- data/public/javascripts/rails.js +137 -137
- data/public/javascripts/tinymce/langs/en.js +221 -221
- data/public/javascripts/tinymce/license.txt +504 -504
- data/public/javascripts/tinymce/themes/advanced/about.htm +52 -52
- data/public/javascripts/tinymce/themes/advanced/anchor.htm +26 -26
- data/public/javascripts/tinymce/themes/advanced/charmap.htm +51 -51
- data/public/javascripts/tinymce/themes/advanced/color_picker.htm +74 -74
- data/public/javascripts/tinymce/themes/advanced/editor_template_src.js +1328 -1328
- data/public/javascripts/tinymce/themes/advanced/image.htm +80 -80
- data/public/javascripts/tinymce/themes/advanced/js/about.js +73 -73
- data/public/javascripts/tinymce/themes/advanced/js/anchor.js +42 -42
- data/public/javascripts/tinymce/themes/advanced/js/charmap.js +354 -354
- data/public/javascripts/tinymce/themes/advanced/js/color_picker.js +329 -329
- data/public/javascripts/tinymce/themes/advanced/js/image.js +247 -247
- data/public/javascripts/tinymce/themes/advanced/js/link.js +153 -153
- data/public/javascripts/tinymce/themes/advanced/js/source_editor.js +56 -56
- data/public/javascripts/tinymce/themes/advanced/langs/en.js +68 -68
- data/public/javascripts/tinymce/themes/advanced/langs/en_dlg.js +53 -53
- data/public/javascripts/tinymce/themes/advanced/link.htm +57 -57
- data/public/javascripts/tinymce/themes/advanced/shortcuts.htm +47 -47
- data/public/javascripts/tinymce/themes/advanced/skins/cirkuit/content.css +66 -66
- data/public/javascripts/tinymce/themes/advanced/skins/cirkuit/dialog.css +117 -117
- data/public/javascripts/tinymce/themes/advanced/skins/cirkuit/ui.css +988 -988
- data/public/javascripts/tinymce/themes/advanced/source_editor.htm +25 -25
- data/public/javascripts/tinymce/tiny_mce_popup.js +4 -4
- data/public/javascripts/tinymce_config.js +15 -15
- data/public/stylesheets/lolita/default.css +169 -169
- data/public/stylesheets/lolita/style.css +253 -253
- data/spec/adapter_helper.rb +43 -43
- data/spec/builder_spec.rb +120 -120
- data/spec/configuration/base_spec.rb +44 -44
- data/spec/configuration/column_spec.rb +89 -89
- data/spec/configuration/columns_spec.rb +54 -54
- data/spec/configuration/field_set_spec.rb +12 -12
- data/spec/configuration/field_spec.rb +118 -118
- data/spec/configuration/filter_spec.rb +122 -122
- data/spec/configuration/list_spec.rb +76 -76
- data/spec/configuration/page_spec.rb +19 -19
- data/spec/configuration/tab_spec.rb +165 -165
- data/spec/configuration/tabs_spec.rb +106 -106
- data/spec/controllers/component_helpers_spec.rb +5 -5
- data/spec/controllers/internal_helpers_spec.rb +76 -76
- data/spec/controllers/lolita_rest_nested_resources_spec.rb +33 -33
- data/spec/controllers/lolita_rest_spec.rb +53 -53
- data/spec/dbi/base_spec.rb +44 -44
- data/spec/hooks_spec.rb +257 -257
- data/spec/lolita_spec.rb +13 -13
- data/spec/mapping_spec.rb +29 -29
- data/spec/navigation/branch_spec.rb +81 -81
- data/spec/navigation/tree_spec.rb +73 -73
- data/spec/orm/mongoid.rb +11 -11
- data/spec/rails_app/app/controllers/application_controller.rb +3 -3
- data/spec/rails_app/app/helpers/application_helper.rb +3 -3
- data/spec/rails_app/app/mongoid/address.rb +7 -7
- data/spec/rails_app/app/mongoid/category.rb +5 -5
- data/spec/rails_app/app/mongoid/comment.rb +5 -5
- data/spec/rails_app/app/mongoid/post.rb +18 -18
- data/spec/rails_app/app/mongoid/preference.rb +5 -5
- data/spec/rails_app/app/mongoid/profile.rb +13 -13
- data/spec/rails_app/app/mongoid/tag.rb +3 -3
- data/spec/rails_app/app/views/components/lolita/configuration/list/_body_cell.html.erb +1 -1
- data/spec/rails_app/config/application.rb +26 -26
- data/spec/rails_app/config/boot.rb +13 -13
- data/spec/rails_app/config/environment.rb +5 -5
- data/spec/rails_app/config/environments/development.rb +19 -19
- data/spec/rails_app/config/environments/production.rb +33 -33
- data/spec/rails_app/config/environments/test.rb +33 -33
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -7
- data/spec/rails_app/config/initializers/inflections.rb +2 -2
- data/spec/rails_app/config/initializers/secret_token.rb +1 -1
- data/spec/rails_app/config/routes.rb +2 -2
- data/spec/rails_app/lib/lolita/configuration/field/my_custom_collection.rb +13 -13
- data/spec/rails_app/public/javascripts/jquery-1.5.1.min.js +15 -15
- data/spec/rails_app/public/javascripts/lolita/main.js +6 -6
- data/spec/rails_app/public/javascripts/lolita/tab.js +40 -40
- data/spec/rails_app/public/javascripts/modernizr-1.7.min.js +1 -1
- data/spec/rails_app/public/javascripts/rails.js +137 -137
- data/spec/rails_app/public/javascripts/tinymce/langs/en.js +221 -221
- data/spec/rails_app/public/javascripts/tinymce/license.txt +504 -504
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/about.htm +52 -52
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/anchor.htm +26 -26
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/charmap.htm +51 -51
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/color_picker.htm +74 -74
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/editor_template_src.js +1328 -1328
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/image.htm +80 -80
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/about.js +73 -73
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/anchor.js +42 -42
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/charmap.js +354 -354
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/color_picker.js +329 -329
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/image.js +247 -247
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/link.js +153 -153
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/source_editor.js +56 -56
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/langs/en.js +68 -68
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/langs/en_dlg.js +53 -53
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/link.htm +57 -57
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/shortcuts.htm +47 -47
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/content.css +66 -66
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/dialog.css +117 -117
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/ui.css +988 -988
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/source_editor.htm +25 -25
- data/spec/rails_app/public/javascripts/tinymce/tiny_mce_popup.js +4 -4
- data/spec/rails_app/public/stylesheets/lolita/default.css +169 -169
- data/spec/rails_app/public/stylesheets/lolita/style.css +214 -214
- data/spec/routing/routes_spec.rb +15 -15
- data/spec/spec_helper.rb +46 -46
- data/spec/support/factories/category.rb +3 -3
- data/spec/support/factories/post.rb +4 -4
- data/spec/support/factories/tag.rb +2 -2
- data/spec/support/formatter_spec.rb +42 -42
- metadata +31 -31
@@ -1,39 +1,39 @@
|
|
1
|
-
$(function(){
|
2
|
-
$.ajaxSetup({
|
3
|
-
headers:{
|
4
|
-
"X-CSRF-Token": $("meta[name='csrf-token']").attr("content"),
|
5
|
-
"lolita_xhr": "true"
|
6
|
-
}
|
7
|
-
})
|
8
|
-
$("#flash").slideUp("fast");
|
9
|
-
$("#flash").live("click", function(){
|
10
|
-
$(this).slideUp("fast");
|
11
|
-
})
|
12
|
-
|
13
|
-
$("#flash").ajaxComplete(function(e,request){
|
14
|
-
var notice=request.getResponseHeader("Lolita-Notice");
|
15
|
-
var error=request.getResponseHeader("Lolita-Error");
|
16
|
-
var alert_msg=request.getResponseHeader("Lolita-Alert");
|
17
|
-
if(notice){
|
18
|
-
show_flash("<span style='color:green'>"+notice+"</span>");
|
19
|
-
}else{
|
20
|
-
if(error){
|
21
|
-
show_flash("<span style='color:red'>"+error+"</span>");
|
22
|
-
}else{
|
23
|
-
if(alert_msg){
|
24
|
-
show_flash("<span style='color:yellow'>"+alert_msg+"</span>");
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
})
|
29
|
-
})
|
30
|
-
|
31
|
-
function show_flash(html){
|
32
|
-
var flash=$("#flash")
|
33
|
-
flash.stop(true)
|
34
|
-
flash.hide(0)
|
35
|
-
flash.html(html)
|
36
|
-
flash.slideDown("fast").delay(8000).slideUp("fast",function(){
|
37
|
-
$(this).html("")
|
38
|
-
})
|
39
|
-
}
|
1
|
+
$(function(){
|
2
|
+
$.ajaxSetup({
|
3
|
+
headers:{
|
4
|
+
"X-CSRF-Token": $("meta[name='csrf-token']").attr("content"),
|
5
|
+
"lolita_xhr": "true"
|
6
|
+
}
|
7
|
+
})
|
8
|
+
$("#flash").slideUp("fast");
|
9
|
+
$("#flash").live("click", function(){
|
10
|
+
$(this).slideUp("fast");
|
11
|
+
})
|
12
|
+
|
13
|
+
$("#flash").ajaxComplete(function(e,request){
|
14
|
+
var notice=request.getResponseHeader("Lolita-Notice");
|
15
|
+
var error=request.getResponseHeader("Lolita-Error");
|
16
|
+
var alert_msg=request.getResponseHeader("Lolita-Alert");
|
17
|
+
if(notice){
|
18
|
+
show_flash("<span style='color:green'>"+notice+"</span>");
|
19
|
+
}else{
|
20
|
+
if(error){
|
21
|
+
show_flash("<span style='color:red'>"+error+"</span>");
|
22
|
+
}else{
|
23
|
+
if(alert_msg){
|
24
|
+
show_flash("<span style='color:yellow'>"+alert_msg+"</span>");
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
})
|
29
|
+
})
|
30
|
+
|
31
|
+
function show_flash(html){
|
32
|
+
var flash=$("#flash")
|
33
|
+
flash.stop(true)
|
34
|
+
flash.hide(0)
|
35
|
+
flash.html(html)
|
36
|
+
flash.slideDown("fast").delay(8000).slideUp("fast",function(){
|
37
|
+
$(this).html("")
|
38
|
+
})
|
39
|
+
}
|
@@ -1,42 +1,42 @@
|
|
1
|
-
$(function(){
|
2
|
-
// Send ajax request with all forms data for given tabs block.
|
3
|
-
function save_tab(tabs){
|
4
|
-
var data=""
|
5
|
-
tabs.find("form").each(function(){
|
6
|
-
data=data+"&"+$(this).serialize()
|
7
|
-
})
|
8
|
-
//alert(data)
|
9
|
-
$.ajax({
|
10
|
-
url:tabs.attr("data-tabs-url"),
|
11
|
-
dataType:"html",
|
12
|
-
type:tabs.attr("data-method"),
|
13
|
-
data:data,
|
14
|
-
success:function(data){
|
15
|
-
$("#content").html(data);
|
16
|
-
},
|
17
|
-
error:function(xhr, textStatus, errorThrown){
|
18
|
-
f = $("#flash");
|
19
|
-
f.html("<span style='color:red'>An Error occured, please contact support personel</span>");
|
20
|
-
f.slideDown("fast")
|
21
|
-
}
|
22
|
-
})
|
23
|
-
}
|
24
|
-
// Submit all forms through Ajax when Save All button clicked.
|
25
|
-
$("button.save-all").live('click',function(){
|
26
|
-
//var tab=$(this).parents("div[data-tabs-url]")
|
27
|
-
var tab = $("#content").children("div[data-tabs-url]")
|
28
|
-
save_tab(tab)
|
29
|
-
})
|
30
|
-
// All tabs are closable when clicked on tab title.
|
31
|
-
$(".tab .tab-title").live('click',function(){
|
32
|
-
var tab_title=$(this)
|
33
|
-
var closed=tab_title.data("closed") || (tab_title.attr("data-closed")=="false" ? false : true)
|
34
|
-
if(closed){
|
35
|
-
tab_title.parents(".tab").find(".tab-content").show("fast")
|
36
|
-
}else{
|
37
|
-
tab_title.parents(".tab").find(".tab-content").hide("fast")
|
38
|
-
}
|
39
|
-
tab_title.data("closed",!closed)
|
40
|
-
})
|
41
|
-
// Flash is hidden when clicked on
|
1
|
+
$(function(){
|
2
|
+
// Send ajax request with all forms data for given tabs block.
|
3
|
+
function save_tab(tabs){
|
4
|
+
var data=""
|
5
|
+
tabs.find("form").each(function(){
|
6
|
+
data=data+"&"+$(this).serialize()
|
7
|
+
})
|
8
|
+
//alert(data)
|
9
|
+
$.ajax({
|
10
|
+
url:tabs.attr("data-tabs-url"),
|
11
|
+
dataType:"html",
|
12
|
+
type:tabs.attr("data-method"),
|
13
|
+
data:data,
|
14
|
+
success:function(data){
|
15
|
+
$("#content").html(data);
|
16
|
+
},
|
17
|
+
error:function(xhr, textStatus, errorThrown){
|
18
|
+
f = $("#flash");
|
19
|
+
f.html("<span style='color:red'>An Error occured, please contact support personel</span>");
|
20
|
+
f.slideDown("fast")
|
21
|
+
}
|
22
|
+
})
|
23
|
+
}
|
24
|
+
// Submit all forms through Ajax when Save All button clicked.
|
25
|
+
$("button.save-all").live('click',function(){
|
26
|
+
//var tab=$(this).parents("div[data-tabs-url]")
|
27
|
+
var tab = $("#content").children("div[data-tabs-url]")
|
28
|
+
save_tab(tab)
|
29
|
+
})
|
30
|
+
// All tabs are closable when clicked on tab title.
|
31
|
+
$(".tab .tab-title").live('click',function(){
|
32
|
+
var tab_title=$(this)
|
33
|
+
var closed=tab_title.data("closed") || (tab_title.attr("data-closed")=="false" ? false : true)
|
34
|
+
if(closed){
|
35
|
+
tab_title.parents(".tab").find(".tab-content").show("fast")
|
36
|
+
}else{
|
37
|
+
tab_title.parents(".tab").find(".tab-content").hide("fast")
|
38
|
+
}
|
39
|
+
tab_title.data("closed",!closed)
|
40
|
+
})
|
41
|
+
// Flash is hidden when clicked on
|
42
42
|
})
|
@@ -1,2 +1,2 @@
|
|
1
|
-
// Modernizr v1.7 www.modernizr.com
|
1
|
+
// Modernizr v1.7 www.modernizr.com
|
2
2
|
window.Modernizr=function(a,b,c){function G(){e.input=function(a){for(var b=0,c=a.length;b<c;b++)t[a[b]]=!!(a[b]in l);return t}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)l.setAttribute("type",f=a[d]),e=l.type!=="text",e&&(l.value=m,l.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&l.style.WebkitAppearance!==c?(g.appendChild(l),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(l,null).WebkitAppearance!=="textfield"&&l.offsetHeight!==0,g.removeChild(l)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=l.checkValidity&&l.checkValidity()===!1:/^color$/.test(f)?(g.appendChild(l),g.offsetWidth,e=l.value!=m,g.removeChild(l)):e=l.value!=m)),s[a[d]]=!!e;return s}("search tel url email datetime date month week time datetime-local number range color".split(" "))}function F(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+p.join(c+" ")+c).split(" ");return!!E(d,b)}function E(a,b){for(var d in a)if(k[a[d]]!==c&&(!b||b(a[d],j)))return!0}function D(a,b){return(""+a).indexOf(b)!==-1}function C(a,b){return typeof a===b}function B(a,b){return A(o.join(a+";")+(b||""))}function A(a){k.cssText=a}var d="1.7",e={},f=!0,g=b.documentElement,h=b.head||b.getElementsByTagName("head")[0],i="modernizr",j=b.createElement(i),k=j.style,l=b.createElement("input"),m=":)",n=Object.prototype.toString,o=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),p="Webkit Moz O ms Khtml".split(" "),q={svg:"http://www.w3.org/2000/svg"},r={},s={},t={},u=[],v,w=function(a){var c=b.createElement("style"),d=b.createElement("div"),e;c.textContent=a+"{#modernizr{height:3px}}",h.appendChild(c),d.id="modernizr",g.appendChild(d),e=d.offsetHeight===3,c.parentNode.removeChild(c),d.parentNode.removeChild(d);return!!e},x=function(){function d(d,e){e=e||b.createElement(a[d]||"div");var f=(d="on"+d)in e;f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=C(e[d],"function"),C(e[d],c)||(e[d]=c),e.removeAttribute(d))),e=null;return f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),y=({}).hasOwnProperty,z;C(y,c)||C(y.call,c)?z=function(a,b){return b in a&&C(a.constructor.prototype[b],c)}:z=function(a,b){return y.call(a,b)},r.flexbox=function(){function c(a,b,c,d){a.style.cssText=o.join(b+":"+c+";")+(d||"")}function a(a,b,c,d){b+=":",a.style.cssText=(b+o.join(c+";"+b)).slice(0,-b.length)+(d||"")}var d=b.createElement("div"),e=b.createElement("div");a(d,"display","box","width:42px;padding:0;"),c(e,"box-flex","1","width:10px;"),d.appendChild(e),g.appendChild(d);var f=e.offsetWidth===42;d.removeChild(e),g.removeChild(d);return f},r.canvas=function(){var a=b.createElement("canvas");return a.getContext&&a.getContext("2d")},r.canvastext=function(){return e.canvas&&C(b.createElement("canvas").getContext("2d").fillText,"function")},r.webgl=function(){return!!a.WebGLRenderingContext},r.touch=function(){return"ontouchstart"in a||w("@media ("+o.join("touch-enabled),(")+"modernizr)")},r.geolocation=function(){return!!navigator.geolocation},r.postmessage=function(){return!!a.postMessage},r.websqldatabase=function(){var b=!!a.openDatabase;return b},r.indexedDB=function(){for(var b=-1,c=p.length;++b<c;){var d=p[b].toLowerCase();if(a[d+"_indexedDB"]||a[d+"IndexedDB"])return!0}return!1},r.hashchange=function(){return x("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},r.history=function(){return !!(a.history&&history.pushState)},r.draganddrop=function(){return x("dragstart")&&x("drop")},r.websockets=function(){return"WebSocket"in a},r.rgba=function(){A("background-color:rgba(150,255,150,.5)");return D(k.backgroundColor,"rgba")},r.hsla=function(){A("background-color:hsla(120,40%,100%,.5)");return D(k.backgroundColor,"rgba")||D(k.backgroundColor,"hsla")},r.multiplebgs=function(){A("background:url(//:),url(//:),red url(//:)");return(new RegExp("(url\\s*\\(.*?){3}")).test(k.background)},r.backgroundsize=function(){return F("backgroundSize")},r.borderimage=function(){return F("borderImage")},r.borderradius=function(){return F("borderRadius","",function(a){return D(a,"orderRadius")})},r.boxshadow=function(){return F("boxShadow")},r.textshadow=function(){return b.createElement("div").style.textShadow===""},r.opacity=function(){B("opacity:.55");return/^0.55$/.test(k.opacity)},r.cssanimations=function(){return F("animationName")},r.csscolumns=function(){return F("columnCount")},r.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";A((a+o.join(b+a)+o.join(c+a)).slice(0,-a.length));return D(k.backgroundImage,"gradient")},r.cssreflections=function(){return F("boxReflect")},r.csstransforms=function(){return!!E(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])},r.csstransforms3d=function(){var a=!!E(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);a&&"webkitPerspective"in g.style&&(a=w("@media ("+o.join("transform-3d),(")+"modernizr)"));return a},r.csstransitions=function(){return F("transitionProperty")},r.fontface=function(){var a,c,d=h||g,e=b.createElement("style"),f=b.implementation||{hasFeature:function(){return!1}};e.type="text/css",d.insertBefore(e,d.firstChild),a=e.sheet||e.styleSheet;var i=f.hasFeature("CSS2","")?function(b){if(!a||!b)return!1;var c=!1;try{a.insertRule(b,0),c=/src/i.test(a.cssRules[0].cssText),a.deleteRule(a.cssRules.length-1)}catch(d){}return c}:function(b){if(!a||!b)return!1;a.cssText=b;return a.cssText.length!==0&&/src/i.test(a.cssText)&&a.cssText.replace(/\r+|\n+/g,"").indexOf(b.split(" ")[0])===0};c=i('@font-face { font-family: "font"; src: url(data:,); }'),d.removeChild(e);return c},r.video=function(){var a=b.createElement("video"),c=!!a.canPlayType;if(c){c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"');var d='video/mp4; codecs="avc1.42E01E';c.h264=a.canPlayType(d+'"')||a.canPlayType(d+', mp4a.40.2"'),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return c},r.audio=function(){var a=b.createElement("audio"),c=!!a.canPlayType;c&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"'),c.mp3=a.canPlayType("audio/mpeg;"),c.wav=a.canPlayType('audio/wav; codecs="1"'),c.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;"));return c},r.localstorage=function(){try{return!!localStorage.getItem}catch(a){return!1}},r.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return!1}},r.webWorkers=function(){return!!a.Worker},r.applicationcache=function(){return!!a.applicationCache},r.svg=function(){return!!b.createElementNS&&!!b.createElementNS(q.svg,"svg").createSVGRect},r.inlinesvg=function(){var a=b.createElement("div");a.innerHTML="<svg/>";return(a.firstChild&&a.firstChild.namespaceURI)==q.svg},r.smil=function(){return!!b.createElementNS&&/SVG/.test(n.call(b.createElementNS(q.svg,"animate")))},r.svgclippaths=function(){return!!b.createElementNS&&/SVG/.test(n.call(b.createElementNS(q.svg,"clipPath")))};for(var H in r)z(r,H)&&(v=H.toLowerCase(),e[v]=r[H](),u.push((e[v]?"":"no-")+v));e.input||G(),e.crosswindowmessaging=e.postmessage,e.historymanagement=e.history,e.addTest=function(a,b){a=a.toLowerCase();if(!e[a]){b=!!b(),g.className+=" "+(b?"":"no-")+a,e[a]=b;return e}},A(""),j=l=null,f&&a.attachEvent&&function(){var a=b.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&function(a,b){function p(a,b){var c=-1,d=a.length,e,f=[];while(++c<d)e=a[c],(b=e.media||b)!="screen"&&f.push(p(e.imports,b),e.cssText);return f.join("")}function o(a){var b=-1;while(++b<e)a.createElement(d[b])}var c="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",d=c.split("|"),e=d.length,f=new RegExp("(^|\\s)("+c+")","gi"),g=new RegExp("<(/*)("+c+")","gi"),h=new RegExp("(^|[^\\n]*?\\s)("+c+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),i=b.createDocumentFragment(),j=b.documentElement,k=j.firstChild,l=b.createElement("body"),m=b.createElement("style"),n;o(b),o(i),k.insertBefore(m,k.firstChild),m.media="print",a.attachEvent("onbeforeprint",function(){var a=-1,c=p(b.styleSheets,"all"),k=[],o;n=n||b.body;while((o=h.exec(c))!=null)k.push((o[1]+o[2]+o[3]).replace(f,"$1.iepp_$2")+o[4]);m.styleSheet.cssText=k.join("\n");while(++a<e){var q=b.getElementsByTagName(d[a]),r=q.length,s=-1;while(++s<r)q[s].className.indexOf("iepp_")<0&&(q[s].className+=" iepp_"+d[a])}i.appendChild(n),j.appendChild(l),l.className=n.className,l.innerHTML=n.innerHTML.replace(g,"<$1font")}),a.attachEvent("onafterprint",function(){l.innerHTML="",j.removeChild(l),j.appendChild(n),m.styleSheet.cssText=""})}(a,b),e._enableHTML5=f,e._version=d,g.className=g.className.replace(/\bno-js\b/,"")+" js "+u.join(" ");return e}(this,this.document)
|
data/public/javascripts/rails.js
CHANGED
@@ -1,137 +1,137 @@
|
|
1
|
-
/**
|
2
|
-
* Unobtrusive scripting adapter for jQuery
|
3
|
-
*
|
4
|
-
* Requires jQuery 1.4.3 or later.
|
5
|
-
* https://github.com/rails/jquery-ujs
|
6
|
-
*/
|
7
|
-
|
8
|
-
(function($) {
|
9
|
-
// Triggers an event on an element and returns the event result
|
10
|
-
function fire(obj, name, data) {
|
11
|
-
var event = new $.Event(name);
|
12
|
-
obj.trigger(event, data);
|
13
|
-
return event.result !== false;
|
14
|
-
}
|
15
|
-
|
16
|
-
// Submits "remote" forms and links with ajax
|
17
|
-
function handleRemote(element) {
|
18
|
-
var method, url, data,
|
19
|
-
dataType = element.attr('data-type') || ($.ajaxSettings && $.ajaxSettings.dataType);
|
20
|
-
|
21
|
-
if (element.is('form')) {
|
22
|
-
method = element.attr('method');
|
23
|
-
url = element.attr('action');
|
24
|
-
data = element.serializeArray();
|
25
|
-
// memoized value from clicked submit button
|
26
|
-
var button = element.data('ujs:submit-button');
|
27
|
-
if (button) {
|
28
|
-
data.push(button);
|
29
|
-
element.data('ujs:submit-button', null);
|
30
|
-
}
|
31
|
-
} else {
|
32
|
-
method = element.attr('data-method');
|
33
|
-
url = element.attr('href');
|
34
|
-
data = null;
|
35
|
-
}
|
36
|
-
|
37
|
-
$.ajax({
|
38
|
-
url: url, type: method || 'GET', data: data, dataType: dataType,
|
39
|
-
// stopping the "ajax:beforeSend" event will cancel the ajax request
|
40
|
-
beforeSend: function(xhr, settings) {
|
41
|
-
if (settings.dataType === undefined) {
|
42
|
-
xhr.setRequestHeader('accept', '*/*;q=0.5, ' + settings.accepts.script);
|
43
|
-
}
|
44
|
-
return fire(element, 'ajax:beforeSend', [xhr, settings]);
|
45
|
-
},
|
46
|
-
success: function(data, status, xhr) {
|
47
|
-
element.trigger('ajax:success', [data, status, xhr]);
|
48
|
-
},
|
49
|
-
complete: function(xhr, status) {
|
50
|
-
element.trigger('ajax:complete', [xhr, status]);
|
51
|
-
},
|
52
|
-
error: function(xhr, status, error) {
|
53
|
-
element.trigger('ajax:error', [xhr, status, error]);
|
54
|
-
}
|
55
|
-
});
|
56
|
-
}
|
57
|
-
|
58
|
-
// Handles "data-method" on links such as:
|
59
|
-
// <a href="/users/5" data-method="delete" rel="nofollow" data-confirm="Are you sure?">Delete</a>
|
60
|
-
function handleMethod(link) {
|
61
|
-
var href = link.attr('href'),
|
62
|
-
method = link.attr('data-method'),
|
63
|
-
csrf_token = $('meta[name=csrf-token]').attr('content'),
|
64
|
-
csrf_param = $('meta[name=csrf-param]').attr('content'),
|
65
|
-
form = $('<form method="post" action="' + href + '"></form>'),
|
66
|
-
metadata_input = '<input name="_method" value="' + method + '" type="hidden" />';
|
67
|
-
|
68
|
-
if (csrf_param !== undefined && csrf_token !== undefined) {
|
69
|
-
metadata_input += '<input name="' + csrf_param + '" value="' + csrf_token + '" type="hidden" />';
|
70
|
-
}
|
71
|
-
|
72
|
-
form.hide().append(metadata_input).appendTo('body');
|
73
|
-
form.submit();
|
74
|
-
}
|
75
|
-
|
76
|
-
function disableFormElements(form) {
|
77
|
-
form.find('input[data-disable-with]').each(function() {
|
78
|
-
var input = $(this);
|
79
|
-
input.data('ujs:enable-with', input.val())
|
80
|
-
.val(input.attr('data-disable-with'))
|
81
|
-
.attr('disabled', 'disabled');
|
82
|
-
});
|
83
|
-
}
|
84
|
-
|
85
|
-
function enableFormElements(form) {
|
86
|
-
form.find('input[data-disable-with]').each(function() {
|
87
|
-
var input = $(this);
|
88
|
-
input.val(input.data('ujs:enable-with')).removeAttr('disabled');
|
89
|
-
});
|
90
|
-
}
|
91
|
-
|
92
|
-
function allowAction(element) {
|
93
|
-
var message = element.attr('data-confirm');
|
94
|
-
return !message || (fire(element, 'confirm') && confirm(message));
|
95
|
-
}
|
96
|
-
|
97
|
-
$('a[data-confirm], a[data-method], a[data-remote]').live('click.rails', function(e) {
|
98
|
-
var link = $(this);
|
99
|
-
if (!allowAction(link)) return false;
|
100
|
-
|
101
|
-
if (link.attr('data-remote')) {
|
102
|
-
handleRemote(link);
|
103
|
-
return false;
|
104
|
-
} else if (link.attr('data-method')) {
|
105
|
-
handleMethod(link);
|
106
|
-
return false;
|
107
|
-
}
|
108
|
-
});
|
109
|
-
|
110
|
-
$('form').live('submit.rails', function(e) {
|
111
|
-
var form = $(this);
|
112
|
-
if (!allowAction(form)) return false;
|
113
|
-
|
114
|
-
if (form.attr('data-remote')) {
|
115
|
-
handleRemote(form);
|
116
|
-
return false;
|
117
|
-
} else {
|
118
|
-
disableFormElements(form);
|
119
|
-
}
|
120
|
-
});
|
121
|
-
|
122
|
-
$('form input[type=submit], form button[type=submit], form button:not([type])').live('click.rails', function() {
|
123
|
-
var button = $(this);
|
124
|
-
if (!allowAction(button)) return false;
|
125
|
-
// register the pressed submit button
|
126
|
-
var name = button.attr('name'), data = name ? {name:name, value:button.val()} : null;
|
127
|
-
button.closest('form').data('ujs:submit-button', data);
|
128
|
-
});
|
129
|
-
|
130
|
-
$('form').live('ajax:beforeSend.rails', function(event) {
|
131
|
-
if (this == event.target) disableFormElements($(this));
|
132
|
-
});
|
133
|
-
|
134
|
-
$('form').live('ajax:complete.rails', function(event) {
|
135
|
-
if (this == event.target) enableFormElements($(this));
|
136
|
-
});
|
137
|
-
})( jQuery );
|
1
|
+
/**
|
2
|
+
* Unobtrusive scripting adapter for jQuery
|
3
|
+
*
|
4
|
+
* Requires jQuery 1.4.3 or later.
|
5
|
+
* https://github.com/rails/jquery-ujs
|
6
|
+
*/
|
7
|
+
|
8
|
+
(function($) {
|
9
|
+
// Triggers an event on an element and returns the event result
|
10
|
+
function fire(obj, name, data) {
|
11
|
+
var event = new $.Event(name);
|
12
|
+
obj.trigger(event, data);
|
13
|
+
return event.result !== false;
|
14
|
+
}
|
15
|
+
|
16
|
+
// Submits "remote" forms and links with ajax
|
17
|
+
function handleRemote(element) {
|
18
|
+
var method, url, data,
|
19
|
+
dataType = element.attr('data-type') || ($.ajaxSettings && $.ajaxSettings.dataType);
|
20
|
+
|
21
|
+
if (element.is('form')) {
|
22
|
+
method = element.attr('method');
|
23
|
+
url = element.attr('action');
|
24
|
+
data = element.serializeArray();
|
25
|
+
// memoized value from clicked submit button
|
26
|
+
var button = element.data('ujs:submit-button');
|
27
|
+
if (button) {
|
28
|
+
data.push(button);
|
29
|
+
element.data('ujs:submit-button', null);
|
30
|
+
}
|
31
|
+
} else {
|
32
|
+
method = element.attr('data-method');
|
33
|
+
url = element.attr('href');
|
34
|
+
data = null;
|
35
|
+
}
|
36
|
+
|
37
|
+
$.ajax({
|
38
|
+
url: url, type: method || 'GET', data: data, dataType: dataType,
|
39
|
+
// stopping the "ajax:beforeSend" event will cancel the ajax request
|
40
|
+
beforeSend: function(xhr, settings) {
|
41
|
+
if (settings.dataType === undefined) {
|
42
|
+
xhr.setRequestHeader('accept', '*/*;q=0.5, ' + settings.accepts.script);
|
43
|
+
}
|
44
|
+
return fire(element, 'ajax:beforeSend', [xhr, settings]);
|
45
|
+
},
|
46
|
+
success: function(data, status, xhr) {
|
47
|
+
element.trigger('ajax:success', [data, status, xhr]);
|
48
|
+
},
|
49
|
+
complete: function(xhr, status) {
|
50
|
+
element.trigger('ajax:complete', [xhr, status]);
|
51
|
+
},
|
52
|
+
error: function(xhr, status, error) {
|
53
|
+
element.trigger('ajax:error', [xhr, status, error]);
|
54
|
+
}
|
55
|
+
});
|
56
|
+
}
|
57
|
+
|
58
|
+
// Handles "data-method" on links such as:
|
59
|
+
// <a href="/users/5" data-method="delete" rel="nofollow" data-confirm="Are you sure?">Delete</a>
|
60
|
+
function handleMethod(link) {
|
61
|
+
var href = link.attr('href'),
|
62
|
+
method = link.attr('data-method'),
|
63
|
+
csrf_token = $('meta[name=csrf-token]').attr('content'),
|
64
|
+
csrf_param = $('meta[name=csrf-param]').attr('content'),
|
65
|
+
form = $('<form method="post" action="' + href + '"></form>'),
|
66
|
+
metadata_input = '<input name="_method" value="' + method + '" type="hidden" />';
|
67
|
+
|
68
|
+
if (csrf_param !== undefined && csrf_token !== undefined) {
|
69
|
+
metadata_input += '<input name="' + csrf_param + '" value="' + csrf_token + '" type="hidden" />';
|
70
|
+
}
|
71
|
+
|
72
|
+
form.hide().append(metadata_input).appendTo('body');
|
73
|
+
form.submit();
|
74
|
+
}
|
75
|
+
|
76
|
+
function disableFormElements(form) {
|
77
|
+
form.find('input[data-disable-with]').each(function() {
|
78
|
+
var input = $(this);
|
79
|
+
input.data('ujs:enable-with', input.val())
|
80
|
+
.val(input.attr('data-disable-with'))
|
81
|
+
.attr('disabled', 'disabled');
|
82
|
+
});
|
83
|
+
}
|
84
|
+
|
85
|
+
function enableFormElements(form) {
|
86
|
+
form.find('input[data-disable-with]').each(function() {
|
87
|
+
var input = $(this);
|
88
|
+
input.val(input.data('ujs:enable-with')).removeAttr('disabled');
|
89
|
+
});
|
90
|
+
}
|
91
|
+
|
92
|
+
function allowAction(element) {
|
93
|
+
var message = element.attr('data-confirm');
|
94
|
+
return !message || (fire(element, 'confirm') && confirm(message));
|
95
|
+
}
|
96
|
+
|
97
|
+
$('a[data-confirm], a[data-method], a[data-remote]').live('click.rails', function(e) {
|
98
|
+
var link = $(this);
|
99
|
+
if (!allowAction(link)) return false;
|
100
|
+
|
101
|
+
if (link.attr('data-remote')) {
|
102
|
+
handleRemote(link);
|
103
|
+
return false;
|
104
|
+
} else if (link.attr('data-method')) {
|
105
|
+
handleMethod(link);
|
106
|
+
return false;
|
107
|
+
}
|
108
|
+
});
|
109
|
+
|
110
|
+
$('form').live('submit.rails', function(e) {
|
111
|
+
var form = $(this);
|
112
|
+
if (!allowAction(form)) return false;
|
113
|
+
|
114
|
+
if (form.attr('data-remote')) {
|
115
|
+
handleRemote(form);
|
116
|
+
return false;
|
117
|
+
} else {
|
118
|
+
disableFormElements(form);
|
119
|
+
}
|
120
|
+
});
|
121
|
+
|
122
|
+
$('form input[type=submit], form button[type=submit], form button:not([type])').live('click.rails', function() {
|
123
|
+
var button = $(this);
|
124
|
+
if (!allowAction(button)) return false;
|
125
|
+
// register the pressed submit button
|
126
|
+
var name = button.attr('name'), data = name ? {name:name, value:button.val()} : null;
|
127
|
+
button.closest('form').data('ujs:submit-button', data);
|
128
|
+
});
|
129
|
+
|
130
|
+
$('form').live('ajax:beforeSend.rails', function(event) {
|
131
|
+
if (this == event.target) disableFormElements($(this));
|
132
|
+
});
|
133
|
+
|
134
|
+
$('form').live('ajax:complete.rails', function(event) {
|
135
|
+
if (this == event.target) enableFormElements($(this));
|
136
|
+
});
|
137
|
+
})( jQuery );
|
@@ -1,222 +1,222 @@
|
|
1
|
-
tinyMCE.addI18n({en:{
|
2
|
-
common:{
|
3
|
-
edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
|
4
|
-
apply:"Apply",
|
5
|
-
insert:"Insert",
|
6
|
-
update:"Update",
|
7
|
-
cancel:"Cancel",
|
8
|
-
close:"Close",
|
9
|
-
browse:"Browse",
|
10
|
-
class_name:"Class",
|
11
|
-
not_set:"-- Not set --",
|
12
|
-
clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?",
|
13
|
-
clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",
|
14
|
-
popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
|
15
|
-
invalid_data:"{#field} is invalid",
|
16
|
-
invalid_data_number:"{#field} must be a number",
|
17
|
-
invalid_data_min:"{#field} must be a number greater than {#min}",
|
18
|
-
invalid_data_size:"{#field} must be a number or percentage",
|
19
|
-
more_colors:"More colors"
|
20
|
-
},
|
21
|
-
colors:{
|
22
|
-
'000000':'Black',
|
23
|
-
'993300':'Burnt orange',
|
24
|
-
'333300':'Dark olive',
|
25
|
-
'003300':'Dark green',
|
26
|
-
'003366':'Dark azure',
|
27
|
-
'000080':'Navy Blue',
|
28
|
-
'333399':'Indigo',
|
29
|
-
'333333':'Very dark gray',
|
30
|
-
'800000':'Maroon',
|
31
|
-
'FF6600':'Orange',
|
32
|
-
'808000':'Olive',
|
33
|
-
'008000':'Green',
|
34
|
-
'008080':'Teal',
|
35
|
-
'0000FF':'Blue',
|
36
|
-
'666699':'Grayish blue',
|
37
|
-
'808080':'Gray',
|
38
|
-
'FF0000':'Red',
|
39
|
-
'FF9900':'Amber',
|
40
|
-
'99CC00':'Yellow green',
|
41
|
-
'339966':'Sea green',
|
42
|
-
'33CCCC':'Turquoise',
|
43
|
-
'3366FF':'Royal blue',
|
44
|
-
'800080':'Purple',
|
45
|
-
'999999':'Medium gray',
|
46
|
-
'FF00FF':'Magenta',
|
47
|
-
'FFCC00':'Gold',
|
48
|
-
'FFFF00':'Yellow',
|
49
|
-
'00FF00':'Lime',
|
50
|
-
'00FFFF':'Aqua',
|
51
|
-
'00CCFF':'Sky blue',
|
52
|
-
'993366':'Brown',
|
53
|
-
'C0C0C0':'Silver',
|
54
|
-
'FF99CC':'Pink',
|
55
|
-
'FFCC99':'Peach',
|
56
|
-
'FFFF99':'Light yellow',
|
57
|
-
'CCFFCC':'Pale green',
|
58
|
-
'CCFFFF':'Pale cyan',
|
59
|
-
'99CCFF':'Light sky blue',
|
60
|
-
'CC99FF':'Plum',
|
61
|
-
'FFFFFF':'White'
|
62
|
-
},
|
63
|
-
contextmenu:{
|
64
|
-
align:"Alignment",
|
65
|
-
left:"Left",
|
66
|
-
center:"Center",
|
67
|
-
right:"Right",
|
68
|
-
full:"Full"
|
69
|
-
},
|
70
|
-
insertdatetime:{
|
71
|
-
date_fmt:"%Y-%m-%d",
|
72
|
-
time_fmt:"%H:%M:%S",
|
73
|
-
insertdate_desc:"Insert date",
|
74
|
-
inserttime_desc:"Insert time",
|
75
|
-
months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
|
76
|
-
months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
|
77
|
-
day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
|
78
|
-
day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
|
79
|
-
},
|
80
|
-
print:{
|
81
|
-
print_desc:"Print"
|
82
|
-
},
|
83
|
-
preview:{
|
84
|
-
preview_desc:"Preview"
|
85
|
-
},
|
86
|
-
directionality:{
|
87
|
-
ltr_desc:"Direction left to right",
|
88
|
-
rtl_desc:"Direction right to left"
|
89
|
-
},
|
90
|
-
layer:{
|
91
|
-
insertlayer_desc:"Insert new layer",
|
92
|
-
forward_desc:"Move forward",
|
93
|
-
backward_desc:"Move backward",
|
94
|
-
absolute_desc:"Toggle absolute positioning",
|
95
|
-
content:"New layer..."
|
96
|
-
},
|
97
|
-
save:{
|
98
|
-
save_desc:"Save",
|
99
|
-
cancel_desc:"Cancel all changes"
|
100
|
-
},
|
101
|
-
nonbreaking:{
|
102
|
-
nonbreaking_desc:"Insert non-breaking space character"
|
103
|
-
},
|
104
|
-
iespell:{
|
105
|
-
iespell_desc:"Run spell checking",
|
106
|
-
download:"ieSpell not detected. Do you want to install it now?"
|
107
|
-
},
|
108
|
-
advhr:{
|
109
|
-
advhr_desc:"Horizontal rule"
|
110
|
-
},
|
111
|
-
emotions:{
|
112
|
-
emotions_desc:"Emotions"
|
113
|
-
},
|
114
|
-
searchreplace:{
|
115
|
-
search_desc:"Find",
|
116
|
-
replace_desc:"Find/Replace"
|
117
|
-
},
|
118
|
-
advimage:{
|
119
|
-
image_desc:"Insert/edit image"
|
120
|
-
},
|
121
|
-
advlink:{
|
122
|
-
link_desc:"Insert/edit link"
|
123
|
-
},
|
124
|
-
xhtmlxtras:{
|
125
|
-
cite_desc:"Citation",
|
126
|
-
abbr_desc:"Abbreviation",
|
127
|
-
acronym_desc:"Acronym",
|
128
|
-
del_desc:"Deletion",
|
129
|
-
ins_desc:"Insertion",
|
130
|
-
attribs_desc:"Insert/Edit Attributes"
|
131
|
-
},
|
132
|
-
style:{
|
133
|
-
desc:"Edit CSS Style"
|
134
|
-
},
|
135
|
-
paste:{
|
136
|
-
paste_text_desc:"Paste as Plain Text",
|
137
|
-
paste_word_desc:"Paste from Word",
|
138
|
-
selectall_desc:"Select All",
|
139
|
-
plaintext_mode_sticky:"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.",
|
140
|
-
plaintext_mode:"Paste is now in plain text mode. Click again to toggle back to regular paste mode."
|
141
|
-
},
|
142
|
-
paste_dlg:{
|
143
|
-
text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
|
144
|
-
text_linebreaks:"Keep linebreaks",
|
145
|
-
word_title:"Use CTRL+V on your keyboard to paste the text into the window."
|
146
|
-
},
|
147
|
-
table:{
|
148
|
-
desc:"Inserts a new table",
|
149
|
-
row_before_desc:"Insert row before",
|
150
|
-
row_after_desc:"Insert row after",
|
151
|
-
delete_row_desc:"Delete row",
|
152
|
-
col_before_desc:"Insert column before",
|
153
|
-
col_after_desc:"Insert column after",
|
154
|
-
delete_col_desc:"Remove column",
|
155
|
-
split_cells_desc:"Split merged table cells",
|
156
|
-
merge_cells_desc:"Merge table cells",
|
157
|
-
row_desc:"Table row properties",
|
158
|
-
cell_desc:"Table cell properties",
|
159
|
-
props_desc:"Table properties",
|
160
|
-
paste_row_before_desc:"Paste table row before",
|
161
|
-
paste_row_after_desc:"Paste table row after",
|
162
|
-
cut_row_desc:"Cut table row",
|
163
|
-
copy_row_desc:"Copy table row",
|
164
|
-
del:"Delete table",
|
165
|
-
row:"Row",
|
166
|
-
col:"Column",
|
167
|
-
cell:"Cell"
|
168
|
-
},
|
169
|
-
autosave:{
|
170
|
-
unload_msg:"The changes you made will be lost if you navigate away from this page.",
|
171
|
-
restore_content:"Restore auto-saved content.",
|
172
|
-
warning_message:"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?."
|
173
|
-
},
|
174
|
-
fullscreen:{
|
175
|
-
desc:"Toggle fullscreen mode"
|
176
|
-
},
|
177
|
-
media:{
|
178
|
-
desc:"Insert / edit embedded media",
|
179
|
-
edit:"Edit embedded media"
|
180
|
-
},
|
181
|
-
fullpage:{
|
182
|
-
desc:"Document properties"
|
183
|
-
},
|
184
|
-
template:{
|
185
|
-
desc:"Insert predefined template content"
|
186
|
-
},
|
187
|
-
visualchars:{
|
188
|
-
desc:"Visual control characters on/off."
|
189
|
-
},
|
190
|
-
spellchecker:{
|
191
|
-
desc:"Toggle spellchecker",
|
192
|
-
menu:"Spellchecker settings",
|
193
|
-
ignore_word:"Ignore word",
|
194
|
-
ignore_words:"Ignore all",
|
195
|
-
langs:"Languages",
|
196
|
-
wait:"Please wait...",
|
197
|
-
sug:"Suggestions",
|
198
|
-
no_sug:"No suggestions",
|
199
|
-
no_mpell:"No misspellings found."
|
200
|
-
},
|
201
|
-
pagebreak:{
|
202
|
-
desc:"Insert page break."
|
203
|
-
},
|
204
|
-
advlist:{
|
205
|
-
types:"Types",
|
206
|
-
def:"Default",
|
207
|
-
lower_alpha:"Lower alpha",
|
208
|
-
lower_greek:"Lower greek",
|
209
|
-
lower_roman:"Lower roman",
|
210
|
-
upper_alpha:"Upper alpha",
|
211
|
-
upper_roman:"Upper roman",
|
212
|
-
circle:"Circle",
|
213
|
-
disc:"Disc",
|
214
|
-
square:"Square"
|
215
|
-
},
|
216
|
-
aria:{
|
217
|
-
rich_text_area:"Rich Text Area"
|
218
|
-
},
|
219
|
-
wordcount:{
|
220
|
-
words: 'Words: '
|
221
|
-
}
|
1
|
+
tinyMCE.addI18n({en:{
|
2
|
+
common:{
|
3
|
+
edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
|
4
|
+
apply:"Apply",
|
5
|
+
insert:"Insert",
|
6
|
+
update:"Update",
|
7
|
+
cancel:"Cancel",
|
8
|
+
close:"Close",
|
9
|
+
browse:"Browse",
|
10
|
+
class_name:"Class",
|
11
|
+
not_set:"-- Not set --",
|
12
|
+
clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?",
|
13
|
+
clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",
|
14
|
+
popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
|
15
|
+
invalid_data:"{#field} is invalid",
|
16
|
+
invalid_data_number:"{#field} must be a number",
|
17
|
+
invalid_data_min:"{#field} must be a number greater than {#min}",
|
18
|
+
invalid_data_size:"{#field} must be a number or percentage",
|
19
|
+
more_colors:"More colors"
|
20
|
+
},
|
21
|
+
colors:{
|
22
|
+
'000000':'Black',
|
23
|
+
'993300':'Burnt orange',
|
24
|
+
'333300':'Dark olive',
|
25
|
+
'003300':'Dark green',
|
26
|
+
'003366':'Dark azure',
|
27
|
+
'000080':'Navy Blue',
|
28
|
+
'333399':'Indigo',
|
29
|
+
'333333':'Very dark gray',
|
30
|
+
'800000':'Maroon',
|
31
|
+
'FF6600':'Orange',
|
32
|
+
'808000':'Olive',
|
33
|
+
'008000':'Green',
|
34
|
+
'008080':'Teal',
|
35
|
+
'0000FF':'Blue',
|
36
|
+
'666699':'Grayish blue',
|
37
|
+
'808080':'Gray',
|
38
|
+
'FF0000':'Red',
|
39
|
+
'FF9900':'Amber',
|
40
|
+
'99CC00':'Yellow green',
|
41
|
+
'339966':'Sea green',
|
42
|
+
'33CCCC':'Turquoise',
|
43
|
+
'3366FF':'Royal blue',
|
44
|
+
'800080':'Purple',
|
45
|
+
'999999':'Medium gray',
|
46
|
+
'FF00FF':'Magenta',
|
47
|
+
'FFCC00':'Gold',
|
48
|
+
'FFFF00':'Yellow',
|
49
|
+
'00FF00':'Lime',
|
50
|
+
'00FFFF':'Aqua',
|
51
|
+
'00CCFF':'Sky blue',
|
52
|
+
'993366':'Brown',
|
53
|
+
'C0C0C0':'Silver',
|
54
|
+
'FF99CC':'Pink',
|
55
|
+
'FFCC99':'Peach',
|
56
|
+
'FFFF99':'Light yellow',
|
57
|
+
'CCFFCC':'Pale green',
|
58
|
+
'CCFFFF':'Pale cyan',
|
59
|
+
'99CCFF':'Light sky blue',
|
60
|
+
'CC99FF':'Plum',
|
61
|
+
'FFFFFF':'White'
|
62
|
+
},
|
63
|
+
contextmenu:{
|
64
|
+
align:"Alignment",
|
65
|
+
left:"Left",
|
66
|
+
center:"Center",
|
67
|
+
right:"Right",
|
68
|
+
full:"Full"
|
69
|
+
},
|
70
|
+
insertdatetime:{
|
71
|
+
date_fmt:"%Y-%m-%d",
|
72
|
+
time_fmt:"%H:%M:%S",
|
73
|
+
insertdate_desc:"Insert date",
|
74
|
+
inserttime_desc:"Insert time",
|
75
|
+
months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
|
76
|
+
months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
|
77
|
+
day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
|
78
|
+
day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
|
79
|
+
},
|
80
|
+
print:{
|
81
|
+
print_desc:"Print"
|
82
|
+
},
|
83
|
+
preview:{
|
84
|
+
preview_desc:"Preview"
|
85
|
+
},
|
86
|
+
directionality:{
|
87
|
+
ltr_desc:"Direction left to right",
|
88
|
+
rtl_desc:"Direction right to left"
|
89
|
+
},
|
90
|
+
layer:{
|
91
|
+
insertlayer_desc:"Insert new layer",
|
92
|
+
forward_desc:"Move forward",
|
93
|
+
backward_desc:"Move backward",
|
94
|
+
absolute_desc:"Toggle absolute positioning",
|
95
|
+
content:"New layer..."
|
96
|
+
},
|
97
|
+
save:{
|
98
|
+
save_desc:"Save",
|
99
|
+
cancel_desc:"Cancel all changes"
|
100
|
+
},
|
101
|
+
nonbreaking:{
|
102
|
+
nonbreaking_desc:"Insert non-breaking space character"
|
103
|
+
},
|
104
|
+
iespell:{
|
105
|
+
iespell_desc:"Run spell checking",
|
106
|
+
download:"ieSpell not detected. Do you want to install it now?"
|
107
|
+
},
|
108
|
+
advhr:{
|
109
|
+
advhr_desc:"Horizontal rule"
|
110
|
+
},
|
111
|
+
emotions:{
|
112
|
+
emotions_desc:"Emotions"
|
113
|
+
},
|
114
|
+
searchreplace:{
|
115
|
+
search_desc:"Find",
|
116
|
+
replace_desc:"Find/Replace"
|
117
|
+
},
|
118
|
+
advimage:{
|
119
|
+
image_desc:"Insert/edit image"
|
120
|
+
},
|
121
|
+
advlink:{
|
122
|
+
link_desc:"Insert/edit link"
|
123
|
+
},
|
124
|
+
xhtmlxtras:{
|
125
|
+
cite_desc:"Citation",
|
126
|
+
abbr_desc:"Abbreviation",
|
127
|
+
acronym_desc:"Acronym",
|
128
|
+
del_desc:"Deletion",
|
129
|
+
ins_desc:"Insertion",
|
130
|
+
attribs_desc:"Insert/Edit Attributes"
|
131
|
+
},
|
132
|
+
style:{
|
133
|
+
desc:"Edit CSS Style"
|
134
|
+
},
|
135
|
+
paste:{
|
136
|
+
paste_text_desc:"Paste as Plain Text",
|
137
|
+
paste_word_desc:"Paste from Word",
|
138
|
+
selectall_desc:"Select All",
|
139
|
+
plaintext_mode_sticky:"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.",
|
140
|
+
plaintext_mode:"Paste is now in plain text mode. Click again to toggle back to regular paste mode."
|
141
|
+
},
|
142
|
+
paste_dlg:{
|
143
|
+
text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
|
144
|
+
text_linebreaks:"Keep linebreaks",
|
145
|
+
word_title:"Use CTRL+V on your keyboard to paste the text into the window."
|
146
|
+
},
|
147
|
+
table:{
|
148
|
+
desc:"Inserts a new table",
|
149
|
+
row_before_desc:"Insert row before",
|
150
|
+
row_after_desc:"Insert row after",
|
151
|
+
delete_row_desc:"Delete row",
|
152
|
+
col_before_desc:"Insert column before",
|
153
|
+
col_after_desc:"Insert column after",
|
154
|
+
delete_col_desc:"Remove column",
|
155
|
+
split_cells_desc:"Split merged table cells",
|
156
|
+
merge_cells_desc:"Merge table cells",
|
157
|
+
row_desc:"Table row properties",
|
158
|
+
cell_desc:"Table cell properties",
|
159
|
+
props_desc:"Table properties",
|
160
|
+
paste_row_before_desc:"Paste table row before",
|
161
|
+
paste_row_after_desc:"Paste table row after",
|
162
|
+
cut_row_desc:"Cut table row",
|
163
|
+
copy_row_desc:"Copy table row",
|
164
|
+
del:"Delete table",
|
165
|
+
row:"Row",
|
166
|
+
col:"Column",
|
167
|
+
cell:"Cell"
|
168
|
+
},
|
169
|
+
autosave:{
|
170
|
+
unload_msg:"The changes you made will be lost if you navigate away from this page.",
|
171
|
+
restore_content:"Restore auto-saved content.",
|
172
|
+
warning_message:"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?."
|
173
|
+
},
|
174
|
+
fullscreen:{
|
175
|
+
desc:"Toggle fullscreen mode"
|
176
|
+
},
|
177
|
+
media:{
|
178
|
+
desc:"Insert / edit embedded media",
|
179
|
+
edit:"Edit embedded media"
|
180
|
+
},
|
181
|
+
fullpage:{
|
182
|
+
desc:"Document properties"
|
183
|
+
},
|
184
|
+
template:{
|
185
|
+
desc:"Insert predefined template content"
|
186
|
+
},
|
187
|
+
visualchars:{
|
188
|
+
desc:"Visual control characters on/off."
|
189
|
+
},
|
190
|
+
spellchecker:{
|
191
|
+
desc:"Toggle spellchecker",
|
192
|
+
menu:"Spellchecker settings",
|
193
|
+
ignore_word:"Ignore word",
|
194
|
+
ignore_words:"Ignore all",
|
195
|
+
langs:"Languages",
|
196
|
+
wait:"Please wait...",
|
197
|
+
sug:"Suggestions",
|
198
|
+
no_sug:"No suggestions",
|
199
|
+
no_mpell:"No misspellings found."
|
200
|
+
},
|
201
|
+
pagebreak:{
|
202
|
+
desc:"Insert page break."
|
203
|
+
},
|
204
|
+
advlist:{
|
205
|
+
types:"Types",
|
206
|
+
def:"Default",
|
207
|
+
lower_alpha:"Lower alpha",
|
208
|
+
lower_greek:"Lower greek",
|
209
|
+
lower_roman:"Lower roman",
|
210
|
+
upper_alpha:"Upper alpha",
|
211
|
+
upper_roman:"Upper roman",
|
212
|
+
circle:"Circle",
|
213
|
+
disc:"Disc",
|
214
|
+
square:"Square"
|
215
|
+
},
|
216
|
+
aria:{
|
217
|
+
rich_text_area:"Rich Text Area"
|
218
|
+
},
|
219
|
+
wordcount:{
|
220
|
+
words: 'Words: '
|
221
|
+
}
|
222
222
|
}});
|