alchemy_cms 2.0.7 → 2.1.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -4
- data/.travis.yml +1 -1
- data/Gemfile +7 -2
- data/README.md +6 -6
- data/Rakefile +26 -18
- data/alchemy_cms.gemspec +14 -14
- data/{assets/stylesheets → app/assets/images/alchemy}/Jcrop.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/ajax_loader.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/alchemy-logo.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/flags.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/gui/navi-tab.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/gui/shading_90.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/gui/toggle.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/icons.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/image_loader.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow_bg.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow_bg_hover.gif +0 -0
- data/{assets/images → app/assets/images/alchemy}/placeholder.png +0 -0
- data/{assets/images/gui → app/assets/images/alchemy}/shading.png +0 -0
- data/{assets/images → app/assets/images/alchemy}/swfupload/browse_button.png +0 -0
- data/{assets/stylesheets/default/img → app/assets/images/alchemy}/tabs.gif +0 -0
- data/{assets/images/jquery-ui → app/assets/images/alchemy}/ui-icons_666666_256x240.png +0 -0
- data/app/assets/javascripts/alchemy/alchemy.base.js +212 -0
- data/app/assets/javascripts/alchemy/alchemy.buttons.js +36 -0
- data/app/assets/javascripts/alchemy/alchemy.dirty.js +91 -0
- data/app/assets/javascripts/alchemy/alchemy.dragndrop.js +114 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.element_editor_selector.js +0 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.growler.js +0 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.image_cropper.js +0 -0
- data/app/assets/javascripts/alchemy/alchemy.js +26 -0
- data/app/assets/javascripts/alchemy/alchemy.js_extensions.js +17 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.link_overlay.js +1 -1
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.page_sorter.js +0 -0
- data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.preview.js +0 -0
- data/app/assets/javascripts/alchemy/alchemy.windows.js +438 -0
- data/app/assets/stylesheets/alchemy/_defaults.scss +160 -0
- data/app/assets/stylesheets/alchemy/alchemy.css +9 -0
- data/{assets/stylesheets/alchemy.css → app/assets/stylesheets/alchemy/base.css.scss} +216 -353
- data/{assets/stylesheets/elements.css → app/assets/stylesheets/alchemy/elements.css.scss} +41 -70
- data/{assets/stylesheets/flags.css → app/assets/stylesheets/alchemy/flags.css.scss} +1 -1
- data/{assets/stylesheets/jquery-ui-1.8.7.alchemy.css → app/assets/stylesheets/alchemy/jquery-ui.alchemy.css} +15 -15
- data/{assets/stylesheets/jquery.Jcrop.css → app/assets/stylesheets/alchemy/jquery.Jcrop.css.scss} +3 -3
- data/{assets/stylesheets/jquery.sb.css → app/assets/stylesheets/alchemy/jquery.sb.css.scss} +19 -29
- data/{assets/stylesheets → app/assets/stylesheets/alchemy}/print.css +6 -1
- data/{assets/stylesheets → app/assets/stylesheets/alchemy}/standard_set.css +0 -0
- data/{assets/stylesheets/alchemy_tinymce_content.css → app/assets/stylesheets/alchemy/tinymce_content.css} +0 -0
- data/{assets/stylesheets/alchemy_tinymce_dialog.css → app/assets/stylesheets/alchemy/tinymce_dialog.css} +2 -2
- data/app/controllers/admin/attachments_controller.rb +2 -8
- data/app/controllers/admin/clipboard_controller.rb +2 -2
- data/app/controllers/admin/contents_controller.rb +4 -16
- data/app/controllers/admin/elements_controller.rb +2 -2
- data/app/controllers/admin/essence_audios_controller.rb +0 -3
- data/app/controllers/admin/essence_files_controller.rb +0 -11
- data/app/controllers/admin/essence_flashes_controller.rb +0 -3
- data/app/controllers/admin/essence_pictures_controller.rb +2 -7
- data/app/controllers/admin/essence_videos_controller.rb +0 -3
- data/app/controllers/admin/languages_controller.rb +4 -10
- data/app/controllers/admin/pages_controller.rb +6 -4
- data/app/controllers/admin/pictures_controller.rb +13 -18
- data/app/controllers/admin/trash_controller.rb +0 -5
- data/app/controllers/admin/users_controller.rb +2 -3
- data/app/controllers/alchemy_controller.rb +18 -30
- data/app/controllers/pages_controller.rb +21 -24
- data/app/helpers/admin/elements_helper.rb +5 -0
- data/app/helpers/admin/pages_helper.rb +36 -1
- data/app/helpers/alchemy_helper.rb +39 -17
- data/app/models/attachment.rb +2 -2
- data/app/models/essence_file.rb +1 -1
- data/app/models/page.rb +1 -1
- data/app/sweepers/pages_sweeper.rb +10 -0
- data/app/views/admin/attachments/destroy.js.erb +4 -0
- data/app/views/admin/clipboard/insert.js.erb +12 -19
- data/app/views/admin/contents/create.js.erb +1 -1
- data/app/views/admin/contents/destroy.js.erb +7 -0
- data/app/views/admin/contents/order.js.erb +6 -0
- data/app/views/admin/elements/_element.html.erb +4 -2
- data/app/views/admin/elements/create.js.erb +19 -26
- data/app/views/admin/elements/fold.js.erb +1 -1
- data/app/views/admin/elements/index.html.erb +1 -1
- data/app/views/admin/essence_files/assign.js.erb +8 -0
- data/app/views/admin/essence_pictures/save_link.js.erb +3 -0
- data/app/views/admin/index.html.erb +37 -27
- data/app/views/admin/languages/destroy.js.erb +1 -0
- data/app/views/admin/pages/_page.html.erb +1 -1
- data/app/views/admin/pages/_sitemap.html.erb +1 -1
- data/app/views/admin/pages/edit.html.erb +2 -2
- data/app/views/admin/pages/update.js.erb +1 -1
- data/app/views/admin/partials/_upload_form.html.erb +11 -11
- data/app/views/admin/pictures/archive_overlay.js.erb +1 -0
- data/app/views/admin/pictures/flush.js.erb +2 -0
- data/app/views/admin/pictures/update.js.erb +1 -0
- data/app/views/admin/trash/clear.js.erb +3 -0
- data/app/views/alchemy/error_notice.js.erb +1 -0
- data/app/views/alchemy/permission_denied.js.erb +2 -0
- data/app/views/alchemy/redirect.js.erb +1 -0
- data/app/views/alchemy/remote_errors.js.erb +3 -0
- data/app/views/alchemy/update.js.erb +5 -0
- data/app/views/essences/_essence_file_editor.html.erb +0 -1
- data/app/views/essences/_essence_file_view.html.erb +1 -5
- data/app/views/essences/_essence_picture_tools.html.erb +1 -1
- data/app/views/layouts/alchemy.html.erb +22 -9
- data/app/views/pages/show.rss.builder +1 -1
- data/config/alchemy/elements.yml +0 -5
- data/config/alchemy/page_layouts.yml +1 -1
- data/config/asset_packages.yml +17 -19
- data/config/authorization_rules.rb +1 -0
- data/config/locales/de.yml +0 -1
- data/config/routes.rb +1 -1
- data/lib/alchemy/tinymce.rb +51 -0
- data/lib/alchemy/version.rb +3 -3
- data/lib/alchemy_cms.rb +4 -2
- data/script/rails +6 -0
- data/spec/controllers/admin/clipboard_controller_spec.rb +15 -13
- data/spec/controllers/admin/contents_controller_spec.rb +4 -4
- data/spec/controllers/admin/trash_controller_spec.rb +6 -9
- data/spec/controllers/pages_controller_spec.rb +9 -8
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +3 -3
- data/spec/dummy/config/application.rb +12 -6
- data/spec/dummy/config/database.yml +3 -0
- data/spec/dummy/config/environments/development.rb +7 -3
- data/spec/dummy/config/environments/production.rb +23 -12
- data/spec/dummy/config/environments/test.rb +5 -1
- data/spec/dummy/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +1 -1
- data/spec/dummy/config/routes.rb +1 -1
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/factories.rb +8 -8
- data/spec/helpers/admin/elements_helper_spec.rb +2 -2
- data/spec/helpers/contents_helper_spec.rb +1 -1
- data/spec/helpers/elements_helper_spec.rb +6 -6
- data/spec/helpers/essences_helper_spec.rb +1 -1
- data/spec/helpers/pages_helper_spec.rb +37 -37
- data/spec/integration/pages_controller_spec.rb +29 -26
- data/spec/integration/security_spec.rb +2 -1
- data/spec/models/content_spec.rb +1 -1
- data/spec/models/element_spec.rb +11 -11
- data/spec/models/language_spec.rb +5 -5
- data/spec/models/page_spec.rb +54 -54
- data/spec/models/user_spec.rb +2 -1
- data/spec/routing_spec.rb +1 -1
- data/{assets/javascripts/jquery.js → vendor/assets/javascripts/jquery-1.6.2.min.js} +0 -0
- data/{assets/javascripts/jquery-ui.js → vendor/assets/javascripts/jquery-ui-custom-1.8.16.min.js} +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.Jcrop.min.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.dialogextend.min.js +7 -7
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.in-place-edit.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.sb.min.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.scrollTo-1.4.2-min.js +10 -10
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.ui.nestedSortable.js +0 -0
- data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.ui.tabspaging.js +0 -0
- data/{assets → vendor/assets}/javascripts/swfupload/fileprogress.js +202 -202
- data/{assets → vendor/assets}/javascripts/swfupload/handlers.js +171 -171
- data/{assets → vendor/assets}/javascripts/swfupload/queue.js +97 -97
- data/{assets → vendor/assets}/javascripts/swfupload/swfupload.js +980 -980
- data/{assets → vendor/assets}/javascripts/swfupload/swfupload.swf +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/jquery.tinymce.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/langs/de.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/langs/en.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/license.txt +504 -504
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/langs/de.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/langs/en.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -110
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +0 -0
- data/{assets/javascripts/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css → vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css.erb} +8 -8
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -387
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -36
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -51
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/langs/de_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/pastetext.htm +26 -26
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/pasteword.htm +21 -21
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/cell.htm +180 -180
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/cell.css +16 -16
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/row.css +25 -25
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/table.css +13 -13
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/editor_plugin.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/cell.js +319 -319
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/merge_cells.js +27 -27
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/row.js +237 -237
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/table.js +450 -450
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/langs/de_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/merge_cells.htm +32 -32
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/row.htm +158 -158
- data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/table.htm +188 -188
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/about.htm +52 -52
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/anchor.htm +26 -26
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/charmap.htm +51 -51
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/color_picker.htm +74 -74
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/editor_template.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/image.htm +80 -80
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/flash.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/iframe.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/trans.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/video.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/about.js +73 -73
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/anchor.js +43 -43
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/charmap.js +355 -355
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/color_picker.js +329 -329
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/image.js +251 -251
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/link.js +153 -153
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/source_editor.js +56 -56
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/de.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/de_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/en.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/link.htm +57 -57
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/shortcuts.htm +47 -47
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/content.css +50 -50
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +117 -117
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +214 -214
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +48 -48
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +117 -117
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +217 -217
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +7 -7
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -5
- data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/source_editor.htm +25 -25
- data/{assets → vendor/assets}/javascripts/tiny_mce/tiny_mce.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/tiny_mce_popup.js +0 -0
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/editable_selects.js +70 -70
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/form_utils.js +210 -210
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/mctabs.js +161 -161
- data/{assets → vendor/assets}/javascripts/tiny_mce/utils/validate.js +252 -252
- metadata +338 -369
- data/app/views/elements/_download_editor.html.erb +0 -1
- data/app/views/elements/_download_view.html.erb +0 -3
- data/assets/javascripts/alchemy.js +0 -903
- data/assets/javascripts/jquery.rails.js +0 -315
- data/assets/stylesheets/ie6.css +0 -18
- data/config/initializers/tinymce_hammer.rb +0 -31
data/spec/models/user_spec.rb
CHANGED
data/spec/routing_spec.rb
CHANGED
File without changes
|
data/{assets/javascripts/jquery-ui.js → vendor/assets/javascripts/jquery-ui-custom-1.8.16.min.js}
RENAMED
File without changes
|
File without changes
|
data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.dialogextend.min.js
RENAMED
@@ -1,8 +1,8 @@
|
|
1
|
-
(function($){var defaults={"maximize":false,"minimize":false,"dblclick":false,"titlebar":false,"icons":{"maximize":"ui-icon-extlink","minimize":"ui-icon-minus","restore":"ui-icon-newwin"},"events":{"load":null,"beforeCollapse":null,"beforeMaximize":null,"beforeMinimize":null,"beforeRestore":null,"collapse":null,"maximize":null,"minimize":null,"restore":null}};var settings;var methods={"init":function(options){var self=this;if(!$(self).dialog){$.error("jQuery.dialogExtend Error : Only jQuery UI Dialog element is accepted");}
|
2
|
-
options=options||{};options.icons=options.icons||{};options.events=options.events||{};settings=$.extend({},defaults,options);settings.icons=$.extend({},defaults.icons,options.icons);settings.events=$.extend({},defaults.events,options.events);$(self).each(function(){$(this).data("dialog-state","normal").dialogExtend("_verifySettings").dialogExtend("_initEvents").dialogExtend("_initStyles").dialogExtend("_initButtons").dialogExtend("_initTitleBar").dialogExtend("_trigger","load");});return self;},"collapse":function(){var self=this;var newHeight=$(this).dialog("widget").find(".ui-dialog-titlebar").height()+15;$(self).dialogExtend("_trigger","beforeCollapse").dialogExtend("_saveSnapshot").data("dialog-state","collapsed").dialog("option",{"height":newHeight,"maxHeight":newHeight}).hide().dialog("widget").find(".ui-dialog-buttonpane:visible").hide().end().find(".ui-dialog-titlebar").css("white-space","nowrap").end().find(".ui-dialog-content").dialogExtend("_trigger","collapse");return self;},"maximize":function(){var self=this;var newHeight=$(window).height()-11;var newWidth=$(window).width()-11;$(self).dialogExtend("_trigger","beforeMaximize").dialogExtend("_saveSnapshot").data("dialog-state","maximized").dialogExtend("_toggleButtons").dialog("widget").css("position","fixed").find(".ui-dialog-content").show().dialog("widget").find(".ui-dialog-buttonpane").show().end().find(".ui-dialog-content").dialog("option",{"resizable":false,"draggable":false,"height":newHeight,"width":newWidth,"position":[1,1]}).dialog("widget").draggable("option","handle",null).find(".ui-dialog-draggable-handle").css("cursor","text").end().find(".ui-dialog-content").dialogExtend("_trigger","maximize");return self;},"minimize":function(){var self=this;var container="#minimized-dialog-container";var newHeight=$(this).dialog("widget").find(".ui-dialog-titlebar").height()+15;var newWidth=200;if(!$(container).length){$("<div />").attr("id",container.replace("#","")).css({"left":1,"bottom":1,"position":"fixed"}).appendTo("body");}
|
3
|
-
$(self).dialogExtend("_trigger","beforeMinimize").dialogExtend("_saveSnapshot").data("dialog-state","minimized").dialogExtend("_toggleButtons").dialog("widget").css({"float":"left","margin":1,"position":"static"}).appendTo(container).find(".ui-dialog-content").dialog("option",{"resizable":false,"draggable":false,"height":newHeight,"width":newWidth}).hide().dialog("widget").find(".ui-dialog-buttonpane:visible").hide().end().find(".ui-dialog-titlebar").css("white-space","nowrap").end().find(".ui-dialog-content").dialog("widget").draggable("option","handle",null).find(".ui-dialog-draggable-handle").css("cursor","text").end().find(".ui-dialog-content").dialogExtend("_trigger","minimize");return self;},"restore":function(){var self=this;var beforeState=$(self).data("dialog-state");$(self).dialogExtend("_trigger","beforeRestore").data("dialog-state","normal").dialogExtend("_toggleButtons").dialogExtend(beforeState=="maximized"?"_restoreFromMaximized":beforeState=="minimized"?"_restoreFromMinimized":beforeState=="collapsed"?"_restoreFromCollapsed":$.error("jQuery.dialogExtend Error : Cannot restore dialog from unknown state '"+beforeState+"'")).dialogExtend("_trigger","restore");return self;},"_initButtons":function(){var self=this;var titlebar=$(self).dialog("widget").find(".ui-dialog-titlebar");$(titlebar).append('<a class="ui-dialog-titlebar-maximize ui-corner-all" href="#"><span class="ui-icon '+settings.icons.maximize+'">maximize</span></a>').append('<a class="ui-dialog-titlebar-minimize ui-corner-all" href="#"><span class="ui-icon '+settings.icons.minimize+'">minimize</span></a>').append('<a class="ui-dialog-titlebar-restore ui-corner-all" href="#"><span class="ui-icon '+settings.icons.restore+'">restore</span></a>').find(".ui-dialog-titlebar-maximize,.ui-dialog-titlebar-minimize,.ui-dialog-titlebar-restore").attr("role","button").mouseover(function(){$(this).addClass("ui-state-hover");}).mouseout(function(){$(this).removeClass("ui-state-hover");}).focus(function(){$(this).addClass("ui-state-focus");}).blur(function(){$(this).removeClass("ui-state-focus");}).end().find(".ui-dialog-titlebar-maximize").toggle(settings.maximize).css({"right":settings.maximize?"1.4em":"-9999em"}).click(function(e){e.preventDefault();$(self).dialogExtend("maximize");}).end().find(".ui-dialog-titlebar-minimize").toggle(settings.minimize).css({"right":settings.maximize?"2.5em":settings.minimize?"1.4em":"-9999em"}).click(function(e){e.preventDefault();$(self).dialogExtend("minimize");}).end().find(".ui-dialog-titlebar-restore").hide().css({"right":"-9999em"}).click(function(e){e.preventDefault();$(self).dialogExtend("restore");}).end().dblclick(function(evt){if(settings.dblclick&&settings.dblclick.length){$(self).dialogExtend($(self).data("dialog-state")!="normal"?"restore":settings.dblclick);}}).each(function(){$(this).select(function(){return false;});});return self;},"_initEvents":function(){var self=this;$.each(settings.events,function(type){if($.isFunction(settings.events[type])){$(self).bind(type+".dialogExtend",settings.events[type]);}});return self;},"_initStyles":function(){var self=this;var style='';style+='<style type="text/css">';style+='.ui-dialog .ui-dialog-titlebar-maximize,';style+='.ui-dialog .ui-dialog-titlebar-minimize,';style+='.ui-dialog .ui-dialog-titlebar-restore { position: absolute; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }';style+='.ui-dialog .ui-dialog-titlebar-maximize span,';style+='.ui-dialog .ui-dialog-titlebar-minimize span,';style+='.ui-dialog .ui-dialog-titlebar-restore span { display: block; margin: 1px; }';style+='.ui-dialog .ui-dialog-titlebar-maximize:hover,';style+='.ui-dialog .ui-dialog-titlebar-maximize:focus,';style+='.ui-dialog .ui-dialog-titlebar-minimize:hover,';style+='.ui-dialog .ui-dialog-titlebar-minimize:focus,';style+='.ui-dialog .ui-dialog-titlebar-restore:hover,';style+='.ui-dialog .ui-dialog-titlebar-restore:focus { padding: 0; }';style+='.ui-dialog .ui-dialog-titlebar ::selection { background-color: transparent; }';style+='</style>';$(style).appendTo("body");return self;},"_initTitleBar":function(){var self=this;switch(settings.titlebar){case false:break;case"none":if($(self).dialog("option","draggable")){var handle=$("<div />").addClass("ui-dialog-draggable-handle").css("cursor","move").height(5);$(self).dialog("widget").prepend(handle).draggable("option","handle",handle);}
|
4
|
-
$(self).dialog("widget").find(".ui-dialog-titlebar").find(".ui-dialog-title").html("
|
5
|
-
return self;},"_loadSnapshot":function(){var self=this;return{"config":{"resizable":$(self).data("original-config-resizable"),"draggable":$(self).data("original-config-draggable")},"size":{"height":$(self).data("original-size-height"),"width":$(self).data("original-size-width"),"maxHeight":$(self).data("original-size-maxHeight")},"position":{"mode":$(self).data("original-position-mode"),"left":$(self).data("original-position-left"),"top":$(self).data("original-position-top")},"titlebar":{"wrap":$(self).data("original-titlebar-wrap")}};},"_restoreFromCollapsed":function(){var self=this;var original=$(this).dialogExtend("_loadSnapshot");$(self).show().dialog("widget").find(".ui-dialog-buttonpane:hidden").show().end().find(".ui-dialog-titlebar").css("white-space",original.titlebar.wrap).end().find(".ui-dialog-content").dialog("option",{"height":original.size.height,"maxHeight":original.size.maxHeight});return self;},"_restoreFromMaximized":function(){var self=this;var original=$(this).dialogExtend("_loadSnapshot");$(self).dialog("widget").css("position",original.position.mode).find(".ui-dialog-titlebar").css("white-space",original.titlebar.wrap).end().find(".ui-dialog-content").dialog("option",{"resizable":original.config.resizable,"draggable":original.config.draggable,"height":original.size.height,"width":original.size.width,"maxHeight":original.size.maxHeight,"position":[original.position.left,original.position.top]}).dialog("widget").draggable("option","handle",$(this).find(".ui-dialog-draggable-handle")).find(".ui-dialog-draggable-handle").css("cursor","move");return self;},"_restoreFromMinimized":function(){var self=this;var original=$(this).dialogExtend("_loadSnapshot");var container="#minimized-dialog-container";$(self).dialog("widget").appendTo("body").css({"float":"none","margin":0,"position":original.position.mode}).find(".ui-dialog-content").show().dialog("widget").find(".ui-dialog-buttonpane:hidden").show().end().find(".ui-dialog-titlebar").css("white-space",original.titlebar.wrap).end().find(".ui-dialog-content").dialog("option",{"resizable":original.config.resizable,"draggable":original.config.draggable,"height":original.size.height,"width":original.size.width,"maxHeight":original.size.maxHeight,"position":[original.position.left,original.position.top]}).dialog("widget").draggable("option","handle",$(this).find(".ui-dialog-draggable-handle")).find(".ui-dialog-draggable-handle").css("cursor","move");return self;},"_saveSnapshot":function(){var self=this;if($(self).data("dialog-state")=="normal"){$(self).data("original-config-resizable",$(self).dialog("option","resizable")).data("original-config-draggable",$(self).dialog("option","draggable")).data("original-size-height",$(self).dialog("widget").height()).data("original-size-width",$(self).dialog("option","width")).data("original-size-maxHeight",$(self).dialog("option","maxHeight")).data("original-position-mode",$(self).dialog("widget").css("position")).data("original-position-left",$(self).dialog("widget").offset().left).data("original-position-top",$(self).dialog("widget").offset().top).data("original-titlebar-wrap",$(self).dialog("widget").find(".ui-dialog-titlebar").css("white-space"));}
|
6
|
-
return self;},"_toggleButtons":function(){var self=this;$(self).dialog("widget").find(".ui-dialog-titlebar-maximize").toggle($(self).data("dialog-state")!="maximized"&&settings.maximize).end().find(".ui-dialog-titlebar-minimize").toggle($(self).data("dialog-state")!="minimized"&&settings.minimize).end().find(".ui-dialog-titlebar-restore").toggle($(self).data("dialog-state")!="normal"&&(settings.maximize||settings.minimize)).css({"right":$(self).data("dialog-state")=="maximized"?"1.4em":$(self).data("dialog-state")=="minimized"?!settings.maximize?"1.4em":"2.5em":"-9999em"}).end();return self;},"_trigger":function(type){var self=this;$(self).triggerHandler(type+".dialogExtend",this);return self;},"_verifySettings":function(){var self=this;if(!settings.dblclick){}else if(settings.dblclick=="maximize"){}else if(settings.dblclick=="minimize"){}else if(settings.dblclick=="collapse"){}else{$.error("jQuery.dialogExtend Error : Invalid <dblclick> value '"+settings.dblclick+"'");settings.dblclick=false;}
|
7
|
-
if(!settings.titlebar){}else if(settings.titlebar=="none"){}else if(settings.titlebar=="transparent"){}else{$.error("jQuery.dialogExtend Error : Invalid <titlebar> value '"+settings.titlebar+"'");settings.titlebar=false;}
|
1
|
+
(function($){var defaults={"maximize":false,"minimize":false,"dblclick":false,"titlebar":false,"icons":{"maximize":"ui-icon-extlink","minimize":"ui-icon-minus","restore":"ui-icon-newwin"},"events":{"load":null,"beforeCollapse":null,"beforeMaximize":null,"beforeMinimize":null,"beforeRestore":null,"collapse":null,"maximize":null,"minimize":null,"restore":null}};var settings;var methods={"init":function(options){var self=this;if(!$(self).dialog){$.error("jQuery.dialogExtend Error : Only jQuery UI Dialog element is accepted");}
|
2
|
+
options=options||{};options.icons=options.icons||{};options.events=options.events||{};settings=$.extend({},defaults,options);settings.icons=$.extend({},defaults.icons,options.icons);settings.events=$.extend({},defaults.events,options.events);$(self).each(function(){$(this).data("dialog-state","normal").dialogExtend("_verifySettings").dialogExtend("_initEvents").dialogExtend("_initStyles").dialogExtend("_initButtons").dialogExtend("_initTitleBar").dialogExtend("_trigger","load");});return self;},"collapse":function(){var self=this;var newHeight=$(this).dialog("widget").find(".ui-dialog-titlebar").height()+15;$(self).dialogExtend("_trigger","beforeCollapse").dialogExtend("_saveSnapshot").data("dialog-state","collapsed").dialog("option",{"height":newHeight,"maxHeight":newHeight}).hide().dialog("widget").find(".ui-dialog-buttonpane:visible").hide().end().find(".ui-dialog-titlebar").css("white-space","nowrap").end().find(".ui-dialog-content").dialogExtend("_trigger","collapse");return self;},"maximize":function(){var self=this;var newHeight=$(window).height()-11;var newWidth=$(window).width()-11;$(self).dialogExtend("_trigger","beforeMaximize").dialogExtend("_saveSnapshot").data("dialog-state","maximized").dialogExtend("_toggleButtons").dialog("widget").css("position","fixed").find(".ui-dialog-content").show().dialog("widget").find(".ui-dialog-buttonpane").show().end().find(".ui-dialog-content").dialog("option",{"resizable":false,"draggable":false,"height":newHeight,"width":newWidth,"position":[1,1]}).dialog("widget").draggable("option","handle",null).find(".ui-dialog-draggable-handle").css("cursor","text").end().find(".ui-dialog-content").dialogExtend("_trigger","maximize");return self;},"minimize":function(){var self=this;var container="#minimized-dialog-container";var newHeight=$(this).dialog("widget").find(".ui-dialog-titlebar").height()+15;var newWidth=200;if(!$(container).length){$("<div />").attr("id",container.replace("#","")).css({"left":1,"bottom":1,"position":"fixed"}).appendTo("body");}
|
3
|
+
$(self).dialogExtend("_trigger","beforeMinimize").dialogExtend("_saveSnapshot").data("dialog-state","minimized").dialogExtend("_toggleButtons").dialog("widget").css({"float":"left","margin":1,"position":"static"}).appendTo(container).find(".ui-dialog-content").dialog("option",{"resizable":false,"draggable":false,"height":newHeight,"width":newWidth}).hide().dialog("widget").find(".ui-dialog-buttonpane:visible").hide().end().find(".ui-dialog-titlebar").css("white-space","nowrap").end().find(".ui-dialog-content").dialog("widget").draggable("option","handle",null).find(".ui-dialog-draggable-handle").css("cursor","text").end().find(".ui-dialog-content").dialogExtend("_trigger","minimize");return self;},"restore":function(){var self=this;var beforeState=$(self).data("dialog-state");$(self).dialogExtend("_trigger","beforeRestore").data("dialog-state","normal").dialogExtend("_toggleButtons").dialogExtend(beforeState=="maximized"?"_restoreFromMaximized":beforeState=="minimized"?"_restoreFromMinimized":beforeState=="collapsed"?"_restoreFromCollapsed":$.error("jQuery.dialogExtend Error : Cannot restore dialog from unknown state '"+beforeState+"'")).dialogExtend("_trigger","restore");return self;},"_initButtons":function(){var self=this;var titlebar=$(self).dialog("widget").find(".ui-dialog-titlebar");$(titlebar).append('<a class="ui-dialog-titlebar-maximize ui-corner-all" href="#"><span class="ui-icon '+settings.icons.maximize+'">maximize</span></a>').append('<a class="ui-dialog-titlebar-minimize ui-corner-all" href="#"><span class="ui-icon '+settings.icons.minimize+'">minimize</span></a>').append('<a class="ui-dialog-titlebar-restore ui-corner-all" href="#"><span class="ui-icon '+settings.icons.restore+'">restore</span></a>').find(".ui-dialog-titlebar-maximize,.ui-dialog-titlebar-minimize,.ui-dialog-titlebar-restore").attr("role","button").mouseover(function(){$(this).addClass("ui-state-hover");}).mouseout(function(){$(this).removeClass("ui-state-hover");}).focus(function(){$(this).addClass("ui-state-focus");}).blur(function(){$(this).removeClass("ui-state-focus");}).end().find(".ui-dialog-titlebar-maximize").toggle(settings.maximize).css({"right":settings.maximize?"1.4em":"-9999em"}).click(function(e){e.preventDefault();$(self).dialogExtend("maximize");}).end().find(".ui-dialog-titlebar-minimize").toggle(settings.minimize).css({"right":settings.maximize?"2.5em":settings.minimize?"1.4em":"-9999em"}).click(function(e){e.preventDefault();$(self).dialogExtend("minimize");}).end().find(".ui-dialog-titlebar-restore").hide().css({"right":"-9999em"}).click(function(e){e.preventDefault();$(self).dialogExtend("restore");}).end().dblclick(function(evt){if(settings.dblclick&&settings.dblclick.length){$(self).dialogExtend($(self).data("dialog-state")!="normal"?"restore":settings.dblclick);}}).each(function(){$(this).select(function(){return false;});});return self;},"_initEvents":function(){var self=this;$.each(settings.events,function(type){if($.isFunction(settings.events[type])){$(self).bind(type+".dialogExtend",settings.events[type]);}});return self;},"_initStyles":function(){var self=this;var style='';style+='<style type="text/css">';style+='.ui-dialog .ui-dialog-titlebar-maximize,';style+='.ui-dialog .ui-dialog-titlebar-minimize,';style+='.ui-dialog .ui-dialog-titlebar-restore { position: absolute; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }';style+='.ui-dialog .ui-dialog-titlebar-maximize span,';style+='.ui-dialog .ui-dialog-titlebar-minimize span,';style+='.ui-dialog .ui-dialog-titlebar-restore span { display: block; margin: 1px; }';style+='.ui-dialog .ui-dialog-titlebar-maximize:hover,';style+='.ui-dialog .ui-dialog-titlebar-maximize:focus,';style+='.ui-dialog .ui-dialog-titlebar-minimize:hover,';style+='.ui-dialog .ui-dialog-titlebar-minimize:focus,';style+='.ui-dialog .ui-dialog-titlebar-restore:hover,';style+='.ui-dialog .ui-dialog-titlebar-restore:focus { padding: 0; }';style+='.ui-dialog .ui-dialog-titlebar ::selection { background-color: transparent; }';style+='</style>';$(style).appendTo("body");return self;},"_initTitleBar":function(){var self=this;switch(settings.titlebar){case false:break;case"none":if($(self).dialog("option","draggable")){var handle=$("<div />").addClass("ui-dialog-draggable-handle").css("cursor","move").height(5);$(self).dialog("widget").prepend(handle).draggable("option","handle",handle);}
|
4
|
+
$(self).dialog("widget").find(".ui-dialog-titlebar").find(".ui-dialog-title").html("").end().css({"background-color":"transparent","background-image":"none","border":0,"position":"absolute","right":0,"top":0,"z-index":9999}).end();break;case"transparent":$(self).dialog("widget").find(".ui-dialog-titlebar").css({"background-color":"transparent","background-image":"none","border":0});break;default:$.error("jQuery.dialogExtend Error : Invalid <titlebar> value '"+settings.titlebar+"'");}
|
5
|
+
return self;},"_loadSnapshot":function(){var self=this;return{"config":{"resizable":$(self).data("original-config-resizable"),"draggable":$(self).data("original-config-draggable")},"size":{"height":$(self).data("original-size-height"),"width":$(self).data("original-size-width"),"maxHeight":$(self).data("original-size-maxHeight")},"position":{"mode":$(self).data("original-position-mode"),"left":$(self).data("original-position-left"),"top":$(self).data("original-position-top")},"titlebar":{"wrap":$(self).data("original-titlebar-wrap")}};},"_restoreFromCollapsed":function(){var self=this;var original=$(this).dialogExtend("_loadSnapshot");$(self).show().dialog("widget").find(".ui-dialog-buttonpane:hidden").show().end().find(".ui-dialog-titlebar").css("white-space",original.titlebar.wrap).end().find(".ui-dialog-content").dialog("option",{"height":original.size.height,"maxHeight":original.size.maxHeight});return self;},"_restoreFromMaximized":function(){var self=this;var original=$(this).dialogExtend("_loadSnapshot");$(self).dialog("widget").css("position",original.position.mode).find(".ui-dialog-titlebar").css("white-space",original.titlebar.wrap).end().find(".ui-dialog-content").dialog("option",{"resizable":original.config.resizable,"draggable":original.config.draggable,"height":original.size.height,"width":original.size.width,"maxHeight":original.size.maxHeight,"position":[original.position.left,original.position.top]}).dialog("widget").draggable("option","handle",$(this).find(".ui-dialog-draggable-handle")).find(".ui-dialog-draggable-handle").css("cursor","move");return self;},"_restoreFromMinimized":function(){var self=this;var original=$(this).dialogExtend("_loadSnapshot");var container="#minimized-dialog-container";$(self).dialog("widget").appendTo("body").css({"float":"none","margin":0,"position":original.position.mode}).find(".ui-dialog-content").show().dialog("widget").find(".ui-dialog-buttonpane:hidden").show().end().find(".ui-dialog-titlebar").css("white-space",original.titlebar.wrap).end().find(".ui-dialog-content").dialog("option",{"resizable":original.config.resizable,"draggable":original.config.draggable,"height":original.size.height,"width":original.size.width,"maxHeight":original.size.maxHeight,"position":[original.position.left,original.position.top]}).dialog("widget").draggable("option","handle",$(this).find(".ui-dialog-draggable-handle")).find(".ui-dialog-draggable-handle").css("cursor","move");return self;},"_saveSnapshot":function(){var self=this;if($(self).data("dialog-state")=="normal"){$(self).data("original-config-resizable",$(self).dialog("option","resizable")).data("original-config-draggable",$(self).dialog("option","draggable")).data("original-size-height",$(self).dialog("widget").height()).data("original-size-width",$(self).dialog("option","width")).data("original-size-maxHeight",$(self).dialog("option","maxHeight")).data("original-position-mode",$(self).dialog("widget").css("position")).data("original-position-left",$(self).dialog("widget").offset().left).data("original-position-top",$(self).dialog("widget").offset().top).data("original-titlebar-wrap",$(self).dialog("widget").find(".ui-dialog-titlebar").css("white-space"));}
|
6
|
+
return self;},"_toggleButtons":function(){var self=this;$(self).dialog("widget").find(".ui-dialog-titlebar-maximize").toggle($(self).data("dialog-state")!="maximized"&&settings.maximize).end().find(".ui-dialog-titlebar-minimize").toggle($(self).data("dialog-state")!="minimized"&&settings.minimize).end().find(".ui-dialog-titlebar-restore").toggle($(self).data("dialog-state")!="normal"&&(settings.maximize||settings.minimize)).css({"right":$(self).data("dialog-state")=="maximized"?"1.4em":$(self).data("dialog-state")=="minimized"?!settings.maximize?"1.4em":"2.5em":"-9999em"}).end();return self;},"_trigger":function(type){var self=this;$(self).triggerHandler(type+".dialogExtend",this);return self;},"_verifySettings":function(){var self=this;if(!settings.dblclick){}else if(settings.dblclick=="maximize"){}else if(settings.dblclick=="minimize"){}else if(settings.dblclick=="collapse"){}else{$.error("jQuery.dialogExtend Error : Invalid <dblclick> value '"+settings.dblclick+"'");settings.dblclick=false;}
|
7
|
+
if(!settings.titlebar){}else if(settings.titlebar=="none"){}else if(settings.titlebar=="transparent"){}else{$.error("jQuery.dialogExtend Error : Invalid <titlebar> value '"+settings.titlebar+"'");settings.titlebar=false;}
|
8
8
|
return self;}};$.fn.dialogExtend=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1));}else if(typeof method==="object"||!method){return methods.init.apply(this,arguments);}else{$.error("jQuery.dialogExtend Error : Method <"+method+"> does not exist");}};}(jQuery));
|
data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.in-place-edit.js
RENAMED
File without changes
|
File without changes
|
data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.scrollTo-1.4.2-min.js
RENAMED
@@ -1,11 +1,11 @@
|
|
1
|
-
/**
|
2
|
-
* jQuery.ScrollTo - Easy element scrolling using jQuery.
|
3
|
-
* Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
|
4
|
-
* Dual licensed under MIT and GPL.
|
5
|
-
* Date: 5/25/2009
|
6
|
-
* @author Ariel Flesler
|
7
|
-
* @version 1.4.2
|
8
|
-
*
|
9
|
-
* http://flesler.blogspot.com/2007/10/jqueryscrollto.html
|
10
|
-
*/
|
1
|
+
/**
|
2
|
+
* jQuery.ScrollTo - Easy element scrolling using jQuery.
|
3
|
+
* Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
|
4
|
+
* Dual licensed under MIT and GPL.
|
5
|
+
* Date: 5/25/2009
|
6
|
+
* @author Ariel Flesler
|
7
|
+
* @version 1.4.2
|
8
|
+
*
|
9
|
+
* http://flesler.blogspot.com/2007/10/jqueryscrollto.html
|
10
|
+
*/
|
11
11
|
;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);
|
data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.ui.nestedSortable.js
RENAMED
File without changes
|
data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.ui.tabspaging.js
RENAMED
File without changes
|
@@ -1,203 +1,203 @@
|
|
1
|
-
/*
|
2
|
-
A simple class for displaying file information and progress
|
3
|
-
Note: This is a demonstration only and not part of SWFUpload.
|
4
|
-
Note: Some have had problems adapting this class in IE7. It may not be suitable for your application.
|
5
|
-
*/
|
6
|
-
|
7
|
-
// Constructor
|
8
|
-
// file is a SWFUpload file object
|
9
|
-
// targetID is the HTML element id attribute that the FileProgress HTML structure will be added to.
|
10
|
-
// Instantiating a new FileProgress object with an existing file will reuse/update the existing DOM elements
|
11
|
-
function FileProgress(file, targetID) {
|
12
|
-
this.fileProgressID = file.id;
|
13
|
-
|
14
|
-
this.opacity = 100;
|
15
|
-
this.height = 0;
|
16
|
-
|
17
|
-
|
18
|
-
this.fileProgressWrapper = document.getElementById(this.fileProgressID);
|
19
|
-
if (!this.fileProgressWrapper) {
|
20
|
-
this.fileProgressWrapper = document.createElement("div");
|
21
|
-
this.fileProgressWrapper.className = "progressWrapper";
|
22
|
-
this.fileProgressWrapper.id = this.fileProgressID;
|
23
|
-
|
24
|
-
this.fileProgressElement = document.createElement("div");
|
25
|
-
this.fileProgressElement.className = "progressContainer";
|
26
|
-
|
27
|
-
var progressCancel = document.createElement("a");
|
28
|
-
progressCancel.className = "progressCancel";
|
29
|
-
progressCancel.href = "#";
|
30
|
-
progressCancel.style.visibility = "hidden";
|
31
|
-
progressCancel.appendChild(document.createTextNode(" "));
|
32
|
-
|
33
|
-
var progressText = document.createElement("div");
|
34
|
-
progressText.className = "progressName";
|
35
|
-
progressText.appendChild(document.createTextNode(file.name));
|
36
|
-
|
37
|
-
var progressBarContainer = document.createElement("div");
|
38
|
-
progressBarContainer.className = "progressBarContainer";
|
39
|
-
|
40
|
-
var progressBar = document.createElement("div");
|
41
|
-
progressBar.className = "progressBarInProgress";
|
42
|
-
|
43
|
-
var progressStatus = document.createElement("div");
|
44
|
-
progressStatus.className = "progressBarStatus";
|
45
|
-
progressStatus.innerHTML = " ";
|
46
|
-
|
47
|
-
this.fileProgressElement.appendChild(progressCancel);
|
48
|
-
this.fileProgressElement.appendChild(progressText);
|
49
|
-
this.fileProgressElement.appendChild(progressStatus);
|
50
|
-
this.fileProgressElement.appendChild(progressBarContainer);
|
51
|
-
progressBarContainer.appendChild(progressBar);
|
52
|
-
|
53
|
-
this.fileProgressWrapper.appendChild(this.fileProgressElement);
|
54
|
-
|
55
|
-
document.getElementById(targetID).appendChild(this.fileProgressWrapper);
|
56
|
-
} else {
|
57
|
-
this.fileProgressElement = this.fileProgressWrapper.firstChild;
|
58
|
-
this.reset();
|
59
|
-
}
|
60
|
-
|
61
|
-
this.height = this.fileProgressWrapper.offsetHeight;
|
62
|
-
this.setTimer(null);
|
63
|
-
|
64
|
-
}
|
65
|
-
|
66
|
-
FileProgress.prototype.setTimer = function (timer) {
|
67
|
-
this.fileProgressElement["FP_TIMER"] = timer;
|
68
|
-
};
|
69
|
-
FileProgress.prototype.getTimer = function (timer) {
|
70
|
-
return this.fileProgressElement["FP_TIMER"] || null;
|
71
|
-
};
|
72
|
-
|
73
|
-
FileProgress.prototype.reset = function () {
|
74
|
-
this.fileProgressElement.className = "progressContainer";
|
75
|
-
this.fileProgressElement.childNodes[2].innerHTML = " ";
|
76
|
-
this.fileProgressElement.childNodes[2].className = "progressBarStatus";
|
77
|
-
this.fileProgressElement.childNodes[3].className = "progressBarContainer";
|
78
|
-
this.fileProgressElement.childNodes[3].childNodes[0].className = "progressBarInProgress";
|
79
|
-
this.fileProgressElement.childNodes[3].childNodes[0].style.width = "0%";
|
80
|
-
this.appear();
|
81
|
-
};
|
82
|
-
|
83
|
-
FileProgress.prototype.setProgress = function (percentage) {
|
84
|
-
this.fileProgressElement.className = "progressContainer";
|
85
|
-
this.fileProgressElement.childNodes[3].className = "progressBarContainer";
|
86
|
-
this.fileProgressElement.childNodes[3].childNodes[0].style.width = percentage + "%";
|
87
|
-
this.fileProgressElement.childNodes[3].childNodes[0].className = "progressBarInProgress";
|
88
|
-
this.appear();
|
89
|
-
};
|
90
|
-
|
91
|
-
FileProgress.prototype.setComplete = function () {
|
92
|
-
this.fileProgressElement.className = "progressContainer";
|
93
|
-
this.fileProgressElement.childNodes[3].className = "progressBarContainer";
|
94
|
-
this.fileProgressElement.childNodes[3].childNodes[0].style.width = "100%";
|
95
|
-
this.fileProgressElement.childNodes[3].childNodes[0].className = "progressBarComplete";
|
96
|
-
var oSelf = this;
|
97
|
-
this.setTimer(setTimeout(function () {
|
98
|
-
oSelf.disappear();
|
99
|
-
}, 1500));
|
100
|
-
};
|
101
|
-
|
102
|
-
FileProgress.prototype.setError = function () {
|
103
|
-
this.fileProgressElement.className = "progressContainer";
|
104
|
-
this.fileProgressElement.childNodes[3].className = "progressBarContainer";
|
105
|
-
this.fileProgressElement.childNodes[3].childNodes[0].style.width = "100%";
|
106
|
-
this.fileProgressElement.childNodes[3].childNodes[0].className = "progressBarError";
|
107
|
-
};
|
108
|
-
|
109
|
-
FileProgress.prototype.setCancelled = function () {
|
110
|
-
this.fileProgressElement.childNodes[3].className = "progressBarContainer";
|
111
|
-
this.fileProgressElement.childNodes[3].childNodes[0].style.width = "100%";
|
112
|
-
this.fileProgressElement.childNodes[3].childNodes[0].className = "progressBarCanceled";
|
113
|
-
var oSelf = this;
|
114
|
-
this.setTimer(setTimeout(function () {
|
115
|
-
oSelf.disappear();
|
116
|
-
}, 1500));
|
117
|
-
};
|
118
|
-
|
119
|
-
FileProgress.prototype.setStatus = function (status) {
|
120
|
-
this.fileProgressElement.childNodes[2].innerHTML = status;
|
121
|
-
};
|
122
|
-
|
123
|
-
// Show/Hide the cancel button
|
124
|
-
FileProgress.prototype.toggleCancel = function (show, swfUploadInstance) {
|
125
|
-
this.fileProgressElement.childNodes[0].style.visibility = show ? "visible" : "hidden";
|
126
|
-
if (swfUploadInstance) {
|
127
|
-
var fileID = this.fileProgressID;
|
128
|
-
this.fileProgressElement.childNodes[0].onclick = function () {
|
129
|
-
swfUploadInstance.cancelUpload(fileID);
|
130
|
-
return false;
|
131
|
-
};
|
132
|
-
}
|
133
|
-
};
|
134
|
-
|
135
|
-
FileProgress.prototype.appear = function () {
|
136
|
-
if (this.getTimer() !== null) {
|
137
|
-
clearTimeout(this.getTimer());
|
138
|
-
this.setTimer(null);
|
139
|
-
}
|
140
|
-
|
141
|
-
if (this.fileProgressWrapper.filters) {
|
142
|
-
try {
|
143
|
-
this.fileProgressWrapper.filters.item("DXImageTransform.Microsoft.Alpha").opacity = 100;
|
144
|
-
} catch (e) {
|
145
|
-
// If it is not set initially, the browser will throw an error. This will set it if it is not set yet.
|
146
|
-
this.fileProgressWrapper.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=100)";
|
147
|
-
}
|
148
|
-
} else {
|
149
|
-
this.fileProgressWrapper.style.opacity = 1;
|
150
|
-
}
|
151
|
-
|
152
|
-
this.fileProgressWrapper.style.height = "";
|
153
|
-
|
154
|
-
this.height = this.fileProgressWrapper.offsetHeight;
|
155
|
-
this.opacity = 100;
|
156
|
-
this.fileProgressWrapper.style.display = "";
|
157
|
-
|
158
|
-
};
|
159
|
-
|
160
|
-
// Fades out and clips away the FileProgress box.
|
161
|
-
FileProgress.prototype.disappear = function () {
|
162
|
-
|
163
|
-
var reduceOpacityBy = 15;
|
164
|
-
var reduceHeightBy = 8;
|
165
|
-
var rate = 30;// 15 fps
|
166
|
-
|
167
|
-
if (this.opacity > 0) {
|
168
|
-
this.opacity -= reduceOpacityBy;
|
169
|
-
if (this.opacity < 0) {
|
170
|
-
this.opacity = 0;
|
171
|
-
}
|
172
|
-
|
173
|
-
if (this.fileProgressWrapper.filters) {
|
174
|
-
try {
|
175
|
-
this.fileProgressWrapper.filters.item("DXImageTransform.Microsoft.Alpha").opacity = this.opacity;
|
176
|
-
} catch (e) {
|
177
|
-
// If it is not set initially, the browser will throw an error. This will set it if it is not set yet.
|
178
|
-
this.fileProgressWrapper.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + this.opacity + ")";
|
179
|
-
}
|
180
|
-
} else {
|
181
|
-
this.fileProgressWrapper.style.opacity = this.opacity / 100;
|
182
|
-
}
|
183
|
-
}
|
184
|
-
|
185
|
-
if (this.height > 0) {
|
186
|
-
this.height -= reduceHeightBy;
|
187
|
-
if (this.height < 0) {
|
188
|
-
this.height = 0;
|
189
|
-
}
|
190
|
-
|
191
|
-
this.fileProgressWrapper.style.height = this.height + "px";
|
192
|
-
}
|
193
|
-
|
194
|
-
if (this.height > 0 || this.opacity > 0) {
|
195
|
-
var oSelf = this;
|
196
|
-
this.setTimer(setTimeout(function () {
|
197
|
-
oSelf.disappear();
|
198
|
-
}, rate));
|
199
|
-
} else {
|
200
|
-
this.fileProgressWrapper.style.display = "none";
|
201
|
-
this.setTimer(null);
|
202
|
-
}
|
1
|
+
/*
|
2
|
+
A simple class for displaying file information and progress
|
3
|
+
Note: This is a demonstration only and not part of SWFUpload.
|
4
|
+
Note: Some have had problems adapting this class in IE7. It may not be suitable for your application.
|
5
|
+
*/
|
6
|
+
|
7
|
+
// Constructor
|
8
|
+
// file is a SWFUpload file object
|
9
|
+
// targetID is the HTML element id attribute that the FileProgress HTML structure will be added to.
|
10
|
+
// Instantiating a new FileProgress object with an existing file will reuse/update the existing DOM elements
|
11
|
+
function FileProgress(file, targetID) {
|
12
|
+
this.fileProgressID = file.id;
|
13
|
+
|
14
|
+
this.opacity = 100;
|
15
|
+
this.height = 0;
|
16
|
+
|
17
|
+
|
18
|
+
this.fileProgressWrapper = document.getElementById(this.fileProgressID);
|
19
|
+
if (!this.fileProgressWrapper) {
|
20
|
+
this.fileProgressWrapper = document.createElement("div");
|
21
|
+
this.fileProgressWrapper.className = "progressWrapper";
|
22
|
+
this.fileProgressWrapper.id = this.fileProgressID;
|
23
|
+
|
24
|
+
this.fileProgressElement = document.createElement("div");
|
25
|
+
this.fileProgressElement.className = "progressContainer";
|
26
|
+
|
27
|
+
var progressCancel = document.createElement("a");
|
28
|
+
progressCancel.className = "progressCancel";
|
29
|
+
progressCancel.href = "#";
|
30
|
+
progressCancel.style.visibility = "hidden";
|
31
|
+
progressCancel.appendChild(document.createTextNode(" "));
|
32
|
+
|
33
|
+
var progressText = document.createElement("div");
|
34
|
+
progressText.className = "progressName";
|
35
|
+
progressText.appendChild(document.createTextNode(file.name));
|
36
|
+
|
37
|
+
var progressBarContainer = document.createElement("div");
|
38
|
+
progressBarContainer.className = "progressBarContainer";
|
39
|
+
|
40
|
+
var progressBar = document.createElement("div");
|
41
|
+
progressBar.className = "progressBarInProgress";
|
42
|
+
|
43
|
+
var progressStatus = document.createElement("div");
|
44
|
+
progressStatus.className = "progressBarStatus";
|
45
|
+
progressStatus.innerHTML = " ";
|
46
|
+
|
47
|
+
this.fileProgressElement.appendChild(progressCancel);
|
48
|
+
this.fileProgressElement.appendChild(progressText);
|
49
|
+
this.fileProgressElement.appendChild(progressStatus);
|
50
|
+
this.fileProgressElement.appendChild(progressBarContainer);
|
51
|
+
progressBarContainer.appendChild(progressBar);
|
52
|
+
|
53
|
+
this.fileProgressWrapper.appendChild(this.fileProgressElement);
|
54
|
+
|
55
|
+
document.getElementById(targetID).appendChild(this.fileProgressWrapper);
|
56
|
+
} else {
|
57
|
+
this.fileProgressElement = this.fileProgressWrapper.firstChild;
|
58
|
+
this.reset();
|
59
|
+
}
|
60
|
+
|
61
|
+
this.height = this.fileProgressWrapper.offsetHeight;
|
62
|
+
this.setTimer(null);
|
63
|
+
|
64
|
+
}
|
65
|
+
|
66
|
+
FileProgress.prototype.setTimer = function (timer) {
|
67
|
+
this.fileProgressElement["FP_TIMER"] = timer;
|
68
|
+
};
|
69
|
+
FileProgress.prototype.getTimer = function (timer) {
|
70
|
+
return this.fileProgressElement["FP_TIMER"] || null;
|
71
|
+
};
|
72
|
+
|
73
|
+
FileProgress.prototype.reset = function () {
|
74
|
+
this.fileProgressElement.className = "progressContainer";
|
75
|
+
this.fileProgressElement.childNodes[2].innerHTML = " ";
|
76
|
+
this.fileProgressElement.childNodes[2].className = "progressBarStatus";
|
77
|
+
this.fileProgressElement.childNodes[3].className = "progressBarContainer";
|
78
|
+
this.fileProgressElement.childNodes[3].childNodes[0].className = "progressBarInProgress";
|
79
|
+
this.fileProgressElement.childNodes[3].childNodes[0].style.width = "0%";
|
80
|
+
this.appear();
|
81
|
+
};
|
82
|
+
|
83
|
+
FileProgress.prototype.setProgress = function (percentage) {
|
84
|
+
this.fileProgressElement.className = "progressContainer";
|
85
|
+
this.fileProgressElement.childNodes[3].className = "progressBarContainer";
|
86
|
+
this.fileProgressElement.childNodes[3].childNodes[0].style.width = percentage + "%";
|
87
|
+
this.fileProgressElement.childNodes[3].childNodes[0].className = "progressBarInProgress";
|
88
|
+
this.appear();
|
89
|
+
};
|
90
|
+
|
91
|
+
FileProgress.prototype.setComplete = function () {
|
92
|
+
this.fileProgressElement.className = "progressContainer";
|
93
|
+
this.fileProgressElement.childNodes[3].className = "progressBarContainer";
|
94
|
+
this.fileProgressElement.childNodes[3].childNodes[0].style.width = "100%";
|
95
|
+
this.fileProgressElement.childNodes[3].childNodes[0].className = "progressBarComplete";
|
96
|
+
var oSelf = this;
|
97
|
+
this.setTimer(setTimeout(function () {
|
98
|
+
oSelf.disappear();
|
99
|
+
}, 1500));
|
100
|
+
};
|
101
|
+
|
102
|
+
FileProgress.prototype.setError = function () {
|
103
|
+
this.fileProgressElement.className = "progressContainer";
|
104
|
+
this.fileProgressElement.childNodes[3].className = "progressBarContainer";
|
105
|
+
this.fileProgressElement.childNodes[3].childNodes[0].style.width = "100%";
|
106
|
+
this.fileProgressElement.childNodes[3].childNodes[0].className = "progressBarError";
|
107
|
+
};
|
108
|
+
|
109
|
+
FileProgress.prototype.setCancelled = function () {
|
110
|
+
this.fileProgressElement.childNodes[3].className = "progressBarContainer";
|
111
|
+
this.fileProgressElement.childNodes[3].childNodes[0].style.width = "100%";
|
112
|
+
this.fileProgressElement.childNodes[3].childNodes[0].className = "progressBarCanceled";
|
113
|
+
var oSelf = this;
|
114
|
+
this.setTimer(setTimeout(function () {
|
115
|
+
oSelf.disappear();
|
116
|
+
}, 1500));
|
117
|
+
};
|
118
|
+
|
119
|
+
FileProgress.prototype.setStatus = function (status) {
|
120
|
+
this.fileProgressElement.childNodes[2].innerHTML = status;
|
121
|
+
};
|
122
|
+
|
123
|
+
// Show/Hide the cancel button
|
124
|
+
FileProgress.prototype.toggleCancel = function (show, swfUploadInstance) {
|
125
|
+
this.fileProgressElement.childNodes[0].style.visibility = show ? "visible" : "hidden";
|
126
|
+
if (swfUploadInstance) {
|
127
|
+
var fileID = this.fileProgressID;
|
128
|
+
this.fileProgressElement.childNodes[0].onclick = function () {
|
129
|
+
swfUploadInstance.cancelUpload(fileID);
|
130
|
+
return false;
|
131
|
+
};
|
132
|
+
}
|
133
|
+
};
|
134
|
+
|
135
|
+
FileProgress.prototype.appear = function () {
|
136
|
+
if (this.getTimer() !== null) {
|
137
|
+
clearTimeout(this.getTimer());
|
138
|
+
this.setTimer(null);
|
139
|
+
}
|
140
|
+
|
141
|
+
if (this.fileProgressWrapper.filters) {
|
142
|
+
try {
|
143
|
+
this.fileProgressWrapper.filters.item("DXImageTransform.Microsoft.Alpha").opacity = 100;
|
144
|
+
} catch (e) {
|
145
|
+
// If it is not set initially, the browser will throw an error. This will set it if it is not set yet.
|
146
|
+
this.fileProgressWrapper.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=100)";
|
147
|
+
}
|
148
|
+
} else {
|
149
|
+
this.fileProgressWrapper.style.opacity = 1;
|
150
|
+
}
|
151
|
+
|
152
|
+
this.fileProgressWrapper.style.height = "";
|
153
|
+
|
154
|
+
this.height = this.fileProgressWrapper.offsetHeight;
|
155
|
+
this.opacity = 100;
|
156
|
+
this.fileProgressWrapper.style.display = "";
|
157
|
+
|
158
|
+
};
|
159
|
+
|
160
|
+
// Fades out and clips away the FileProgress box.
|
161
|
+
FileProgress.prototype.disappear = function () {
|
162
|
+
|
163
|
+
var reduceOpacityBy = 15;
|
164
|
+
var reduceHeightBy = 8;
|
165
|
+
var rate = 30;// 15 fps
|
166
|
+
|
167
|
+
if (this.opacity > 0) {
|
168
|
+
this.opacity -= reduceOpacityBy;
|
169
|
+
if (this.opacity < 0) {
|
170
|
+
this.opacity = 0;
|
171
|
+
}
|
172
|
+
|
173
|
+
if (this.fileProgressWrapper.filters) {
|
174
|
+
try {
|
175
|
+
this.fileProgressWrapper.filters.item("DXImageTransform.Microsoft.Alpha").opacity = this.opacity;
|
176
|
+
} catch (e) {
|
177
|
+
// If it is not set initially, the browser will throw an error. This will set it if it is not set yet.
|
178
|
+
this.fileProgressWrapper.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + this.opacity + ")";
|
179
|
+
}
|
180
|
+
} else {
|
181
|
+
this.fileProgressWrapper.style.opacity = this.opacity / 100;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
if (this.height > 0) {
|
186
|
+
this.height -= reduceHeightBy;
|
187
|
+
if (this.height < 0) {
|
188
|
+
this.height = 0;
|
189
|
+
}
|
190
|
+
|
191
|
+
this.fileProgressWrapper.style.height = this.height + "px";
|
192
|
+
}
|
193
|
+
|
194
|
+
if (this.height > 0 || this.opacity > 0) {
|
195
|
+
var oSelf = this;
|
196
|
+
this.setTimer(setTimeout(function () {
|
197
|
+
oSelf.disappear();
|
198
|
+
}, rate));
|
199
|
+
} else {
|
200
|
+
this.fileProgressWrapper.style.display = "none";
|
201
|
+
this.setTimer(null);
|
202
|
+
}
|
203
203
|
};
|