noodall-ui 0.4.11 → 0.5.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/Gemfile +2 -1
- data/MIT-LICENSE +20 -0
- data/Rakefile +50 -10
- data/{public → app/assets}/images/admin/add-small.png +0 -0
- data/{public → app/assets}/images/admin/add.png +0 -0
- data/{public → app/assets}/images/admin/add_file.gif +0 -0
- data/{public → app/assets}/images/admin/advanced.gif +0 -0
- data/{public → app/assets}/images/admin/back.png +0 -0
- data/{public → app/assets}/images/admin/cancel-small.gif +0 -0
- data/{public → app/assets}/images/admin/cancel.gif +0 -0
- data/{public → app/assets}/images/admin/change-bg.gif +0 -0
- data/{public → app/assets}/images/admin/change.gif +0 -0
- data/{public → app/assets}/images/admin/check.png +0 -0
- data/{public → app/assets}/images/admin/clear.gif +0 -0
- data/{public → app/assets}/images/admin/close.png +0 -0
- data/{public → app/assets}/images/admin/create.gif +0 -0
- data/{public → app/assets}/images/admin/delete.gif +0 -0
- data/{public → app/assets}/images/admin/delete.png +0 -0
- data/{public → app/assets}/images/admin/doc-icon.png +0 -0
- data/{public → app/assets}/images/admin/document.png +0 -0
- data/{public → app/assets}/images/admin/down.png +0 -0
- data/{public → app/assets}/images/admin/download.png +0 -0
- data/{public → app/assets}/images/admin/draft.gif +0 -0
- data/{public → app/assets}/images/admin/edit.gif +0 -0
- data/{public → app/assets}/images/admin/edit.png +0 -0
- data/{public → app/assets}/images/admin/hidden.png +0 -0
- data/{public → app/assets}/images/admin/hide.gif +0 -0
- data/{public → app/assets}/images/admin/image.png +0 -0
- data/{public → app/assets}/images/admin/image_choices.png +0 -0
- data/{public → app/assets}/images/admin/image_small.png +0 -0
- data/{public → app/assets}/images/admin/info-white.png +0 -0
- data/{public → app/assets}/images/admin/info.png +0 -0
- data/{public → app/assets}/images/admin/media.gif +0 -0
- data/{public → app/assets}/images/admin/nav-2.gif +0 -0
- data/{public → app/assets}/images/admin/nav.gif +0 -0
- data/{public → app/assets}/images/admin/next.png +0 -0
- data/{public → app/assets}/images/admin/no-type-icon.png +0 -0
- data/{public → app/assets}/images/admin/pagination.gif +0 -0
- data/{public → app/assets}/images/admin/pdf-icon.png +0 -0
- data/{public → app/assets}/images/admin/prev.png +0 -0
- data/{public → app/assets}/images/admin/preview.gif +0 -0
- data/{public → app/assets}/images/admin/publish.gif +0 -0
- data/{public → app/assets}/images/admin/remove.gif +0 -0
- data/{public → app/assets}/images/admin/reset.gif +0 -0
- data/{public → app/assets}/images/admin/select_image.gif +0 -0
- data/{public → app/assets}/images/admin/select_images.gif +0 -0
- data/{public → app/assets}/images/admin/set.gif +0 -0
- data/{public → app/assets}/images/admin/sort.png +0 -0
- data/{public → app/assets}/images/admin/tag.png +0 -0
- data/{public → app/assets}/images/admin/templates/article-page.gif +0 -0
- data/{public → app/assets}/images/admin/templates/articles-list.gif +0 -0
- data/{public → app/assets}/images/admin/templates/course-page.gif +0 -0
- data/{public → app/assets}/images/admin/templates/event-page.gif +0 -0
- data/{public → app/assets}/images/admin/templates/events-list.gif +0 -0
- data/{public → app/assets}/images/admin/templates/home.gif +0 -0
- data/{public → app/assets}/images/admin/templates/landing-page.gif +0 -0
- data/{public → app/assets}/images/admin/templates/page-a.gif +0 -0
- data/{public → app/assets}/images/admin/templates/page-b.gif +0 -0
- data/{public → app/assets}/images/admin/templates/school-landing-page.gif +0 -0
- data/{public → app/assets}/images/admin/templates/study-landing-page.gif +0 -0
- data/{public → app/assets}/images/admin/top-level.png +0 -0
- data/{public → app/assets}/images/admin/top-level_small.png +0 -0
- data/{public → app/assets}/images/admin/txt-icon.png +0 -0
- data/{public → app/assets}/images/admin/uncheck.png +0 -0
- data/{public → app/assets}/images/admin/up.png +0 -0
- data/{public → app/assets}/images/admin/update.gif +0 -0
- data/{public → app/assets}/images/admin/upload.png +0 -0
- data/{public → app/assets}/images/admin/versions.gif +0 -0
- data/{public → app/assets}/images/admin/video.png +0 -0
- data/{public → app/assets}/images/admin/view.png +0 -0
- data/{public → app/assets}/images/admin/xls-icon.png +0 -0
- data/{public → app/assets}/images/admin/youtube.gif +0 -0
- data/{public → app/assets}/javascripts/admin/application.js +10 -4
- data/{public → app/assets}/javascripts/admin/asset_edit.js +0 -0
- data/{public → app/assets}/javascripts/admin/assets.js +7 -7
- data/{public → app/assets}/javascripts/admin/nodes.js +0 -0
- data/{public → app/assets}/javascripts/admin/tiny_mce_config.js +7 -7
- data/app/assets/javascripts/admin.js +4 -0
- data/{public → app/assets}/javascripts/ajaxify.js +0 -0
- data/{public → app/assets}/javascripts/rails.js +0 -0
- data/{public → app/assets}/stylesheets/admin/forms.css +20 -20
- data/{public → app/assets}/stylesheets/admin/handheld.css +0 -0
- data/{public → app/assets}/stylesheets/admin/ie.css +0 -0
- data/{public → app/assets}/stylesheets/admin/ie6.css +0 -0
- data/{public → app/assets}/stylesheets/admin/ie8.css +0 -0
- data/{public → app/assets}/stylesheets/admin/layout.css +1 -1
- data/{public → app/assets}/stylesheets/admin/print.css +0 -0
- data/{public → app/assets}/stylesheets/admin/reset.css +0 -0
- data/{public → app/assets}/stylesheets/admin/skin.css +27 -27
- data/{public → app/assets}/stylesheets/admin/tinymce.css +0 -0
- data/{public → app/assets}/stylesheets/admin/typography.css +0 -0
- data/app/assets/stylesheets/admin.css +8 -0
- data/{log/.gitignore → app/controllers/.gitkeep} +0 -0
- data/app/controllers/noodall/admin/assets_controller.rb +3 -3
- data/app/controllers/noodall/admin/nodes_controller.rb +8 -0
- data/app/controllers/noodall/nodes_controller.rb +2 -1
- data/{public/favicon.ico → app/helpers/.gitkeep} +0 -0
- data/app/helpers/noodall/admin/nodes_helper.rb +1 -1
- data/{tmp/.gitignore → app/mailers/.gitkeep} +0 -0
- data/app/models/.gitkeep +0 -0
- data/app/views/.gitkeep +0 -0
- data/app/views/layouts/noodall_admin.html.erb +5 -5
- data/app/views/noodall/admin/nodes/_branch.html.erb +5 -10
- data/app/views/noodall/admin/nodes/tree.html.erb +1 -1
- data/app/views/noodall/nodes/{sitemap.xml.rxml → sitemap.xml.builder} +2 -2
- data/config/routes.rb +2 -0
- data/features/sitemap.feature +1 -1
- data/features/step_definitions/asset_steps.rb +1 -1
- data/features/step_definitions/cms_node_steps.rb +1 -1
- data/features/step_definitions/component_steps.rb +4 -4
- data/features/support/env.rb +1 -1
- data/features/support/mm_factory_steps.rb +3 -0
- data/lib/noodall/engine.rb +6 -2
- data/lib/noodall/ui/version.rb +1 -1
- data/lib/tasks/noodall-ui_tasks.rake +4 -0
- data/noodall-ui.gemspec +1 -1
- data/public/javascripts/admin.js +0 -0
- data/public/stylesheets/admin.css +2822 -0
- data/script/rails +3 -3
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +7 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/{demo → spec/dummy/app}/controllers/application_controller.rb +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/{demo → spec/dummy/app}/models/gallery.rb +0 -0
- data/{demo → spec/dummy/app}/models/page_a.rb +0 -0
- data/{demo → spec/dummy/app}/models/page_b.rb +0 -0
- data/{demo → spec/dummy/app}/models/page_c.rb +0 -0
- data/{demo → spec/dummy/app}/models/promo.rb +0 -0
- data/{demo → spec/dummy/app}/models/user.rb +0 -0
- data/{demo → spec/dummy/app}/views/admin/components/_gallery.html.erb +0 -0
- data/{demo → spec/dummy/app}/views/admin/components/_promo.html.erb +0 -0
- data/{demo → spec/dummy/app}/views/admin/nodes/_home.html.erb +0 -0
- data/{demo → spec/dummy/app}/views/admin/nodes/_page_a.html.erb +0 -0
- data/{demo → spec/dummy/app}/views/admin/nodes/_page_b.html.erb +0 -0
- data/{demo → spec/dummy/app}/views/admin/nodes/_page_c.html.erb +0 -0
- data/{demo → spec/dummy/app}/views/components/_gallery.html.erb +0 -0
- data/{demo → spec/dummy/app}/views/components/_promo.html.erb +0 -0
- data/{demo → spec/dummy/app}/views/layouts/application.html.erb +0 -0
- data/{demo → spec/dummy/app}/views/nodes/page_a.html.erb +0 -0
- data/{demo → spec/dummy/app}/views/nodes/page_a.rss.builder +0 -0
- data/{demo → spec/dummy/app}/views/nodes/page_b.html.erb +0 -0
- data/{demo → spec/dummy/app}/views/nodes/page_c.html.erb +0 -0
- data/spec/dummy/config/application.rb +50 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/{config → spec/dummy/config}/database.yml +0 -0
- data/{config → spec/dummy/config}/environment.rb +1 -1
- data/{config → spec/dummy/config}/environments/development.rb +10 -7
- data/{config → spec/dummy/config}/environments/production.rb +25 -15
- data/{config → spec/dummy/config}/environments/test.rb +9 -31
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/{demo → spec/dummy/config}/initializers/mongo_mapper.rb +0 -0
- data/{demo → spec/dummy/config}/initializers/noodall.rb +0 -0
- data/{demo → spec/dummy/config}/initializers/secret_token.rb +1 -1
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/{demo → spec/dummy/config}/initializers/zdragonfly.rb +0 -0
- data/{config → spec/dummy/config}/locales/en.yml +1 -1
- data/spec/dummy/config/routes.rb +3 -0
- data/{config.ru → spec/dummy/config.ru} +1 -1
- data/{demo → spec/dummy/db}/seeds.rb +0 -0
- data/spec/{factories → dummy/factories}/asset.rb +4 -4
- data/spec/{factories → dummy/factories}/node.rb +0 -0
- data/spec/{factories → dummy/factories}/user.rb +0 -0
- data/spec/{files → dummy/files}/beef.png +0 -0
- data/spec/{files → dummy/files}/get_video.flv +0 -0
- data/spec/{files → dummy/files}/test.pdf +0 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/{public → vendor/assets}/images/fancybox/blank.gif +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_close.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_loading.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_nav_left.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_nav_right.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_shadow_e.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_shadow_n.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_shadow_ne.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_shadow_nw.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_shadow_s.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_shadow_se.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_shadow_sw.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_shadow_w.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_title_left.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_title_main.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_title_over.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancy_title_right.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancybox-x.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancybox-y.png +0 -0
- data/{public → vendor/assets}/images/fancybox/fancybox.png +0 -0
- data/{public → vendor/assets}/images/plupload/backgrounds.gif +0 -0
- data/{public → vendor/assets}/images/plupload/buttons-disabled.png +0 -0
- data/{public → vendor/assets}/images/plupload/buttons.png +0 -0
- data/{public → vendor/assets}/images/plupload/delete.gif +0 -0
- data/{public → vendor/assets}/images/plupload/done.gif +0 -0
- data/{public → vendor/assets}/images/plupload/error.gif +0 -0
- data/{public → vendor/assets}/images/plupload/throbber.gif +0 -0
- data/{public → vendor/assets}/images/plupload/transp50.png +0 -0
- data/{public → vendor/assets}/javascripts/carousel.lite.js +0 -0
- data/vendor/assets/javascripts/fancybox.js +1156 -0
- data/{public → vendor/assets}/javascripts/plupload/gears_init.js +0 -0
- data/{public → vendor/assets}/javascripts/plupload/jquery.plupload.queue.min.js +0 -0
- data/{public → vendor/assets}/javascripts/plupload/plupload.flash.swf +0 -0
- data/{public → vendor/assets}/javascripts/plupload/plupload.full.min.js +0 -0
- data/{public → vendor/assets}/javascripts/plupload/plupload.silverlight.xap +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/jquery.tinymce.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/langs/en.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/license.txt +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/addvideo/addvideo.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/addvideo/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/addvideo/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/addvideo/img/youtube.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/addvideo/js/addvideo.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/addvideo/langs/en.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/addvideo/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advhr/css/advhr.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advhr/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advhr/js/rule.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advhr/rule.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advimage/css/advimage.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advimage/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advimage/image.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advimage/js/image.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advlink/css/advlink.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advlink/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advlink/js/advlink.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advlink/link.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advlist/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/advlist/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/autolink/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/autolink/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/autoresize/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/autosave/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/autosave/langs/en.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/bbcode/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/directionality/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/directionality/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/emotions.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/js/emotions.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/fullpage/css/fullpage.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/fullpage/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/fullpage/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/fullpage/fullpage.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/fullpage/js/fullpage.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/fullpage/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/iespell/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/template.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/layer/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/layer/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/legacyoutput/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/lists/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/lists/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/css/content.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/css/media.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/img/trans.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/js/embed.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/js/media.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/media.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/media/moxieplayer.swf +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/noneditable/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/pagebreak/css/content.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/pagebreak/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/pagebreak/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/pagebreak/img/pagebreak.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/pagebreak/img/trans.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/paste/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/paste/js/pastetext.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/paste/js/pasteword.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/paste/pastetext.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/paste/pasteword.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/preview/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/preview/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/preview/example.html +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/preview/jscripts/embed.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/preview/preview.html +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/print/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/print/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/save/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/save/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/searchreplace/css/searchreplace.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/searchreplace/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/searchreplace/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/searchreplace/js/searchreplace.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/searchreplace/searchreplace.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/spellchecker/css/content.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/spellchecker/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/style/css/props.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/style/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/style/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/style/js/props.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/style/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/style/props.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/tabfocus/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/cell.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/css/cell.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/css/row.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/css/table.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/js/cell.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/js/merge_cells.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/js/row.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/js/table.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/merge_cells.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/row.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/table/table.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/template/blank.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/template/css/template.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/template/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/template/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/template/js/template.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/template/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/template/template.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/wordcount/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/wordcount/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/about.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/anchor.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/charmap.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/color_picker.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/editor_template.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/editor_template_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/image.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/flash.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/iframe.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/trans.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/video.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/about.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/anchor.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/charmap.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/color_picker.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/image.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/link.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/source_editor.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/en.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/link.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/shortcuts.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/content.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/highcontrast/content.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/highcontrast/ui.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/advanced/source_editor.htm +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/simple/editor_template.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/simple/editor_template_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/simple/langs/en.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/simple/skins/default/content.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/simple/skins/default/ui.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/tiny_mce.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/tiny_mce_popup.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/tiny_mce_src.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/utils/editable_selects.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/utils/form_utils.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/utils/mctabs.js +0 -0
- data/{public → vendor/assets}/javascripts/tiny_mce/utils/validate.js +0 -0
- data/{public → vendor/assets}/stylesheets/ellipsis.xml +0 -0
- data/vendor/assets/stylesheets/fancybox.css +359 -0
- data/{public → vendor/assets}/stylesheets/plupload.queue.css +0 -0
- metadata +475 -465
- data/config/application.rb +0 -31
- data/config/boot.rb +0 -13
- data/demo/initializers/session_store.rb +0 -8
- data/demo/routes.rb +0 -3
- data/public/404.html +0 -77
- data/public/422.html +0 -76
- data/public/500.html +0 -77
- data/public/features.html +0 -252
- data/public/images/404-search.png +0 -0
- data/public/javascripts/admin/jquery.jqtransform.js +0 -366
- data/public/javascripts/admin/tiny_mce_config.js.orig +0 -147
- data/public/javascripts/application.js +0 -32
- data/public/javascripts/fancybox.js +0 -1078
- data/public/stylesheets/admin/fancybox.css +0 -341
- data/public/stylesheets/fancybox.css +0 -313
- data/public/stylesheets/forms.css +0 -7
- data/public/stylesheets/ie.css +0 -12
- data/public/stylesheets/ie8.css +0 -8
- data/public/stylesheets/layout.css +0 -31
- data/public/stylesheets/reset.css +0 -84
- data/public/stylesheets/skin.css +0 -22
- data/public/stylesheets/typography.css +0 -162
@@ -1,366 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
*
|
3
|
-
* jqTransform
|
4
|
-
* by mathieu vilaplana mvilaplana@dfc-e.com
|
5
|
-
* Designer ghyslain armand garmand@dfc-e.com
|
6
|
-
*
|
7
|
-
*
|
8
|
-
* Version 1.0 25.09.08
|
9
|
-
* Version 1.1 06.08.09
|
10
|
-
* Add event click on Checkbox and Radio
|
11
|
-
* Auto calculate the size of a select element
|
12
|
-
* Can now, disabled the elements
|
13
|
-
* Correct bug in ff if click on select (overflow=hidden)
|
14
|
-
* No need any more preloading !!
|
15
|
-
*
|
16
|
-
******************************************** */
|
17
|
-
|
18
|
-
(function($){
|
19
|
-
var defaultOptions = {preloadImg:true};
|
20
|
-
var jqTransformImgPreloaded = false;
|
21
|
-
|
22
|
-
var jqTransformPreloadHoverFocusImg = function(strImgUrl) {
|
23
|
-
//guillemets to remove for ie
|
24
|
-
strImgUrl = strImgUrl.replace(/^url\((.*)\)/,'$1').replace(/^\"(.*)\"$/,'$1');
|
25
|
-
var imgHover = new Image();
|
26
|
-
imgHover.src = strImgUrl.replace(/\.([a-zA-Z]*)$/,'-hover.$1');
|
27
|
-
var imgFocus = new Image();
|
28
|
-
imgFocus.src = strImgUrl.replace(/\.([a-zA-Z]*)$/,'-focus.$1');
|
29
|
-
};
|
30
|
-
|
31
|
-
|
32
|
-
/***************************
|
33
|
-
Labels
|
34
|
-
***************************/
|
35
|
-
var jqTransformGetLabel = function(objfield){
|
36
|
-
var selfForm = $(objfield.get(0).form);
|
37
|
-
var oLabel = objfield.next();
|
38
|
-
if(!oLabel.is('label')) {
|
39
|
-
oLabel = objfield.prev();
|
40
|
-
if(oLabel.is('label')){
|
41
|
-
var inputname = objfield.attr('id');
|
42
|
-
if(inputname){
|
43
|
-
oLabel = selfForm.find('label[for="'+inputname+'"]');
|
44
|
-
}
|
45
|
-
}
|
46
|
-
}
|
47
|
-
if(oLabel.is('label')){return oLabel.css('cursor','pointer');}
|
48
|
-
return false;
|
49
|
-
};
|
50
|
-
|
51
|
-
/* Hide all open selects */
|
52
|
-
var jqTransformHideSelect = function(oTarget){
|
53
|
-
var ulVisible = $('.jqTransformSelectWrapper ul:visible');
|
54
|
-
ulVisible.each(function(){
|
55
|
-
var oSelect = $(this).parents(".jqTransformSelectWrapper:first").find("select").get(0);
|
56
|
-
//do not hide if click on the label object associated to the select
|
57
|
-
if( !(oTarget && oSelect.oLabel && oSelect.oLabel.get(0) == oTarget.get(0)) ){$(this).hide();}
|
58
|
-
});
|
59
|
-
};
|
60
|
-
/* Check for an external click */
|
61
|
-
var jqTransformCheckExternalClick = function(event) {
|
62
|
-
if ($(event.target).parents('.jqTransformSelectWrapper').length === 0) { jqTransformHideSelect($(event.target)); }
|
63
|
-
};
|
64
|
-
|
65
|
-
/* Apply document listener */
|
66
|
-
var jqTransformAddDocumentListener = function (){
|
67
|
-
$(document).mousedown(jqTransformCheckExternalClick);
|
68
|
-
};
|
69
|
-
|
70
|
-
/* Add a new handler for the reset action */
|
71
|
-
var jqTransformReset = function(f){
|
72
|
-
var sel;
|
73
|
-
$('.jqTransformSelectWrapper select', f).each(function(){sel = (this.selectedIndex<0) ? 0 : this.selectedIndex; $('ul', $(this).parent()).each(function(){$('a:eq('+ sel +')', this).click();});});
|
74
|
-
$('a.jqTransformCheckbox, a.jqTransformRadio', f).removeClass('jqTransformChecked');
|
75
|
-
$('input:checkbox, input:radio', f).each(function(){if(this.checked){$('a', $(this).parent()).addClass('jqTransformChecked');}});
|
76
|
-
};
|
77
|
-
|
78
|
-
/***************************
|
79
|
-
Buttons
|
80
|
-
***************************/
|
81
|
-
$.fn.jqTransInputButton = function(){
|
82
|
-
return this.each(function(){
|
83
|
-
var newBtn = $('<button id="'+ this.id +'" name="'+ this.name +'" type="'+ this.type +'" class="'+ this.className +' jqTransformButton"><span><span>'+ $(this).attr('value') +'</span></span>')
|
84
|
-
.hover(function(){newBtn.addClass('jqTransformButton_hover');},function(){newBtn.removeClass('jqTransformButton_hover')})
|
85
|
-
.mousedown(function(){newBtn.addClass('jqTransformButton_click')})
|
86
|
-
.mouseup(function(){newBtn.removeClass('jqTransformButton_click')})
|
87
|
-
;
|
88
|
-
$(this).replaceWith(newBtn);
|
89
|
-
});
|
90
|
-
};
|
91
|
-
|
92
|
-
/***************************
|
93
|
-
Text Fields
|
94
|
-
***************************/
|
95
|
-
$.fn.jqTransInputText = function(){
|
96
|
-
return this.each(function(){
|
97
|
-
var $input = $(this);
|
98
|
-
|
99
|
-
if($input.hasClass('jqtranformdone') || !$input.is('input')) {return;}
|
100
|
-
$input.addClass('jqtranformdone');
|
101
|
-
|
102
|
-
var oLabel = jqTransformGetLabel($(this));
|
103
|
-
oLabel && oLabel.bind('click',function(){$input.focus();});
|
104
|
-
|
105
|
-
var inputSize=$input.width();
|
106
|
-
if($input.attr('size')){
|
107
|
-
inputSize = $input.attr('size')*10;
|
108
|
-
$input.css('width',inputSize);
|
109
|
-
}
|
110
|
-
|
111
|
-
$input.addClass("jqTransformInput").wrap('<div class="jqTransformInputWrapper"><div class="jqTransformInputInner"><div></div></div></div>');
|
112
|
-
var $wrapper = $input.parent().parent().parent();
|
113
|
-
$wrapper.css("width", inputSize+10);
|
114
|
-
$input
|
115
|
-
.focus(function(){$wrapper.addClass("jqTransformInputWrapper_focus");})
|
116
|
-
.blur(function(){$wrapper.removeClass("jqTransformInputWrapper_focus");})
|
117
|
-
.hover(function(){$wrapper.addClass("jqTransformInputWrapper_hover");},function(){$wrapper.removeClass("jqTransformInputWrapper_hover");})
|
118
|
-
;
|
119
|
-
|
120
|
-
/* If this is safari we need to add an extra class */
|
121
|
-
$.browser.safari && $wrapper.addClass('jqTransformSafari');
|
122
|
-
$.browser.safari && $input.css('width',$wrapper.width()+16);
|
123
|
-
this.wrapper = $wrapper;
|
124
|
-
|
125
|
-
});
|
126
|
-
};
|
127
|
-
|
128
|
-
/***************************
|
129
|
-
Check Boxes
|
130
|
-
***************************/
|
131
|
-
$.fn.jqTransCheckBox = function(){
|
132
|
-
return this.each(function(){
|
133
|
-
if($(this).hasClass('jqTransformHidden')) {return;}
|
134
|
-
|
135
|
-
var $input = $(this);
|
136
|
-
var inputSelf = this;
|
137
|
-
|
138
|
-
//set the click on the label
|
139
|
-
var oLabel=jqTransformGetLabel($input);
|
140
|
-
oLabel && oLabel.click(function(){aLink.trigger('click');});
|
141
|
-
|
142
|
-
var aLink = $('<a href="#" class="jqTransformCheckbox"></a>');
|
143
|
-
//wrap and add the link
|
144
|
-
$input.addClass('jqTransformHidden').wrap('<span class="jqTransformCheckboxWrapper"></span>').parent().prepend(aLink);
|
145
|
-
//on change, change the class of the link
|
146
|
-
$input.change(function(){
|
147
|
-
this.checked && aLink.addClass('jqTransformChecked') || aLink.removeClass('jqTransformChecked');
|
148
|
-
return true;
|
149
|
-
});
|
150
|
-
// Click Handler, trigger the click and change event on the input
|
151
|
-
aLink.click(function(){
|
152
|
-
//do nothing if the original input is disabled
|
153
|
-
if($input.attr('disabled')){return false;}
|
154
|
-
//trigger the envents on the input object
|
155
|
-
$input.trigger('click').trigger("change");
|
156
|
-
return false;
|
157
|
-
});
|
158
|
-
|
159
|
-
// set the default state
|
160
|
-
this.checked && aLink.addClass('jqTransformChecked');
|
161
|
-
});
|
162
|
-
};
|
163
|
-
/***************************
|
164
|
-
Radio Buttons
|
165
|
-
***************************/
|
166
|
-
$.fn.jqTransRadio = function(){
|
167
|
-
return this.each(function(){
|
168
|
-
if($(this).hasClass('jqTransformHidden')) {return;}
|
169
|
-
|
170
|
-
var $input = $(this);
|
171
|
-
var inputSelf = this;
|
172
|
-
|
173
|
-
oLabel = jqTransformGetLabel($input);
|
174
|
-
oLabel && oLabel.click(function(){aLink.trigger('click');});
|
175
|
-
|
176
|
-
var aLink = $('<a href="#" class="jqTransformRadio" rel="'+ this.name +'"></a>');
|
177
|
-
$input.addClass('jqTransformHidden').wrap('<span class="jqTransformRadioWrapper"></span>').parent().prepend(aLink);
|
178
|
-
|
179
|
-
$input.change(function(){
|
180
|
-
inputSelf.checked && aLink.addClass('jqTransformChecked') || aLink.removeClass('jqTransformChecked');
|
181
|
-
return true;
|
182
|
-
});
|
183
|
-
// Click Handler
|
184
|
-
aLink.click(function(){
|
185
|
-
if($input.attr('disabled')){return false;}
|
186
|
-
$input.trigger('click').trigger('change');
|
187
|
-
|
188
|
-
// uncheck all others of same name input radio elements
|
189
|
-
$('input[name="'+$input.attr('name')+'"]',inputSelf.form).not($input).each(function(){
|
190
|
-
$(this).attr('type')=='radio' && $(this).trigger('change');
|
191
|
-
});
|
192
|
-
|
193
|
-
return false;
|
194
|
-
});
|
195
|
-
// set the default state
|
196
|
-
inputSelf.checked && aLink.addClass('jqTransformChecked');
|
197
|
-
});
|
198
|
-
};
|
199
|
-
|
200
|
-
/***************************
|
201
|
-
TextArea
|
202
|
-
***************************/
|
203
|
-
$.fn.jqTransTextarea = function(){
|
204
|
-
return this.each(function(){
|
205
|
-
var textarea = $(this);
|
206
|
-
|
207
|
-
if(textarea.hasClass('jqtransformdone')) {return;}
|
208
|
-
textarea.addClass('jqtransformdone');
|
209
|
-
|
210
|
-
oLabel = jqTransformGetLabel(textarea);
|
211
|
-
oLabel && oLabel.click(function(){textarea.focus();});
|
212
|
-
|
213
|
-
var strTable = '<table cellspacing="0" cellpadding="0" border="0" class="jqTransformTextarea">';
|
214
|
-
strTable +='<tr><td id="jqTransformTextarea-tl"></td><td id="jqTransformTextarea-tm"></td><td id="jqTransformTextarea-tr"></td></tr>';
|
215
|
-
strTable +='<tr><td id="jqTransformTextarea-ml"> </td><td id="jqTransformTextarea-mm"><div></div></td><td id="jqTransformTextarea-mr"> </td></tr>';
|
216
|
-
strTable +='<tr><td id="jqTransformTextarea-bl"></td><td id="jqTransformTextarea-bm"></td><td id="jqTransformTextarea-br"></td></tr>';
|
217
|
-
strTable +='</table>';
|
218
|
-
var oTable = $(strTable)
|
219
|
-
.insertAfter(textarea)
|
220
|
-
.hover(function(){
|
221
|
-
!oTable.hasClass('jqTransformTextarea-focus') && oTable.addClass('jqTransformTextarea-hover');
|
222
|
-
},function(){
|
223
|
-
oTable.removeClass('jqTransformTextarea-hover');
|
224
|
-
})
|
225
|
-
;
|
226
|
-
|
227
|
-
textarea
|
228
|
-
.focus(function(){oTable.removeClass('jqTransformTextarea-hover').addClass('jqTransformTextarea-focus');})
|
229
|
-
.blur(function(){oTable.removeClass('jqTransformTextarea-focus');})
|
230
|
-
.appendTo($('#jqTransformTextarea-mm div',oTable))
|
231
|
-
;
|
232
|
-
this.oTable = oTable;
|
233
|
-
if($.browser.safari){
|
234
|
-
$('#jqTransformTextarea-mm',oTable)
|
235
|
-
.addClass('jqTransformSafariTextarea')
|
236
|
-
.find('div')
|
237
|
-
.css('height',textarea.height())
|
238
|
-
.css('width',textarea.width())
|
239
|
-
;
|
240
|
-
}
|
241
|
-
});
|
242
|
-
};
|
243
|
-
|
244
|
-
/***************************
|
245
|
-
Select
|
246
|
-
***************************/
|
247
|
-
$.fn.jqTransSelect = function(){
|
248
|
-
return this.each(function(index){
|
249
|
-
var $select = $(this);
|
250
|
-
|
251
|
-
if($select.hasClass('jqTransformHidden')) {return;}
|
252
|
-
if($select.attr('multiple')) {return;}
|
253
|
-
|
254
|
-
var oLabel = jqTransformGetLabel($select);
|
255
|
-
/* First thing we do is Wrap it */
|
256
|
-
var $wrapper = $select
|
257
|
-
.addClass('jqTransformHidden')
|
258
|
-
.wrap('<div class="jqTransformSelectWrapper"></div>')
|
259
|
-
.parent()
|
260
|
-
.css({zIndex: 10-index})
|
261
|
-
;
|
262
|
-
|
263
|
-
/* Now add the html for the select */
|
264
|
-
$wrapper.prepend('<div><span></span><a href="#" class="jqTransformSelectOpen"></a></div><ul></ul>');
|
265
|
-
var $ul = $('ul', $wrapper).css('width',$select.width()).hide();
|
266
|
-
/* Now we add the options */
|
267
|
-
$('option', this).each(function(i){
|
268
|
-
var oLi = $('<li><a href="#" index="'+ i +'">'+ $(this).html() +'</a></li>');
|
269
|
-
$ul.append(oLi);
|
270
|
-
});
|
271
|
-
|
272
|
-
/* Add click handler to the a */
|
273
|
-
$ul.find('a').click(function(){
|
274
|
-
$('a.selected', $wrapper).removeClass('selected');
|
275
|
-
$(this).addClass('selected');
|
276
|
-
/* Fire the onchange event */
|
277
|
-
if ($select[0].selectedIndex != $(this).attr('index')) {
|
278
|
-
$select[0].selectedIndex = $(this).attr('index');
|
279
|
-
$($select[0]).trigger('change');
|
280
|
-
}
|
281
|
-
$select[0].selectedIndex = $(this).attr('index');
|
282
|
-
$('span:eq(0)', $wrapper).html($(this).html());
|
283
|
-
$ul.hide();
|
284
|
-
return false;
|
285
|
-
});
|
286
|
-
/* Set the default */
|
287
|
-
$('a:eq('+ this.selectedIndex +')', $ul).click();
|
288
|
-
$('span:first', $wrapper).click(function(){$("a.jqTransformSelectOpen",$wrapper).trigger('click');});
|
289
|
-
oLabel && oLabel.click(function(){$("a.jqTransformSelectOpen",$wrapper).trigger('click');});
|
290
|
-
this.oLabel = oLabel;
|
291
|
-
|
292
|
-
/* Apply the click handler to the Open */
|
293
|
-
var oLinkOpen = $('a.jqTransformSelectOpen', $wrapper)
|
294
|
-
.click(function(){
|
295
|
-
//Check if box is already open to still allow toggle, but close all other selects
|
296
|
-
if( $ul.css('display') == 'none' ) {jqTransformHideSelect();}
|
297
|
-
if($select.attr('disabled')){return false;}
|
298
|
-
|
299
|
-
$ul.slideToggle('fast', function(){
|
300
|
-
var offSet = ($('a.selected', $ul).offset().top - $ul.offset().top);
|
301
|
-
$ul.animate({scrollTop: offSet});
|
302
|
-
});
|
303
|
-
return false;
|
304
|
-
})
|
305
|
-
;
|
306
|
-
|
307
|
-
// Set the new width
|
308
|
-
var iSelectWidth = $select.outerWidth();
|
309
|
-
var oSpan = $('span:first',$wrapper);
|
310
|
-
var newWidth = (iSelectWidth > oSpan.innerWidth())?iSelectWidth+oLinkOpen.outerWidth():$wrapper.width();
|
311
|
-
$wrapper.css('width',newWidth);
|
312
|
-
$ul.css('width',newWidth-2);
|
313
|
-
oSpan.css({width:iSelectWidth});
|
314
|
-
|
315
|
-
// Calculate the height if necessary, less elements that the default height
|
316
|
-
//show the ul to calculate the block, if ul is not displayed li height value is 0
|
317
|
-
$ul.css({display:'block',visibility:'hidden'});
|
318
|
-
var iSelectHeight = ($('li',$ul).length)*($('li:first',$ul).height());//+1 else bug ff
|
319
|
-
(iSelectHeight < $ul.height()) && $ul.css({height:iSelectHeight,'overflow':'scroll'});//hidden else bug with ff
|
320
|
-
$ul.css({display:'none',visibility:'visible'});
|
321
|
-
|
322
|
-
});
|
323
|
-
};
|
324
|
-
$.fn.jqTransform = function(options){
|
325
|
-
var opt = $.extend({},defaultOptions,options);
|
326
|
-
|
327
|
-
/* each form */
|
328
|
-
return this.each(function(){
|
329
|
-
var selfForm = $(this);
|
330
|
-
if(selfForm.hasClass('jqtransformdone')) {return;}
|
331
|
-
selfForm.addClass('jqtransformdone');
|
332
|
-
|
333
|
-
$('input:checkbox', this).jqTransCheckBox();
|
334
|
-
$('input:radio', this).jqTransRadio();
|
335
|
-
|
336
|
-
if( $('select', this).jqTransSelect().length > 0 ){jqTransformAddDocumentListener();}
|
337
|
-
selfForm.bind('reset',function(){var action = function(){jqTransformReset(this);}; window.setTimeout(action, 10);});
|
338
|
-
|
339
|
-
//preloading dont needed anymore since normal, focus and hover image are the same one
|
340
|
-
/*if(opt.preloadImg && !jqTransformImgPreloaded){
|
341
|
-
jqTransformImgPreloaded = true;
|
342
|
-
var oInputText = $('input:text:first', selfForm);
|
343
|
-
if(oInputText.length > 0){
|
344
|
-
//pour ie on eleve les ""
|
345
|
-
var strWrapperImgUrl = oInputText.get(0).wrapper.css('background-image');
|
346
|
-
jqTransformPreloadHoverFocusImg(strWrapperImgUrl);
|
347
|
-
var strInnerImgUrl = $('div.jqTransformInputInner',$(oInputText.get(0).wrapper)).css('background-image');
|
348
|
-
jqTransformPreloadHoverFocusImg(strInnerImgUrl);
|
349
|
-
}
|
350
|
-
|
351
|
-
var oTextarea = $('textarea',selfForm);
|
352
|
-
if(oTextarea.length > 0){
|
353
|
-
var oTable = oTextarea.get(0).oTable;
|
354
|
-
$('td',oTable).each(function(){
|
355
|
-
var strImgBack = $(this).css('background-image');
|
356
|
-
jqTransformPreloadHoverFocusImg(strImgBack);
|
357
|
-
});
|
358
|
-
}
|
359
|
-
}*/
|
360
|
-
|
361
|
-
|
362
|
-
}); /* End Form each */
|
363
|
-
|
364
|
-
};/* End the Plugin */
|
365
|
-
|
366
|
-
})(jQuery);
|
@@ -1,147 +0,0 @@
|
|
1
|
-
lite_tiny_mce_config = {
|
2
|
-
script_url : '/javascripts/tiny_mce/tiny_mce.js',
|
3
|
-
|
4
|
-
content_css : "/stylesheets/admin/tinymce.css",
|
5
|
-
|
6
|
-
theme : "advanced",
|
7
|
-
mode : "specific_textareas",
|
8
|
-
editor_selector : "lite-editor",
|
9
|
-
strict_loading_mode : 1,
|
10
|
-
convert_urls : false,
|
11
|
-
plugins : "safari,inlinepopups,xhtmlxtras,paste,media,advimage,table,media,addvideo",
|
12
|
-
//"safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking",
|
13
|
-
// Theme options
|
14
|
-
theme_advanced_blockformats : "h2,h3,h4,p",
|
15
|
-
theme_advanced_buttons1 : "bold,italic,underline,|,bullist,numlist,|,link,unlink,|,table,delete_table,tablecontrols,col_before,col_after,row_before,row_after,delete_col,delete_row",
|
16
|
-
theme_advanced_buttons2 : "",
|
17
|
-
theme_advanced_buttons3 : "",
|
18
|
-
theme_advanced_buttons4 : "",
|
19
|
-
theme_advanced_path : false,
|
20
|
-
theme_advanced_toolbar_location : "top",
|
21
|
-
theme_advanced_toolbar_align : "left",
|
22
|
-
theme_advanced_statusbar_location : "bottom",
|
23
|
-
theme_advanced_resizing : true,
|
24
|
-
theme_advanced_styles : "Footnote=footnote",
|
25
|
-
|
26
|
-
paste_auto_cleanup_on_paste : true,
|
27
|
-
paste_strip_class_attributes : "all",
|
28
|
-
paste_remove_spans : true,
|
29
|
-
paste_remove_styles : true
|
30
|
-
|
31
|
-
};
|
32
|
-
|
33
|
-
tiny_mce_config = {};
|
34
|
-
|
35
|
-
// add in some bits for the advanced editor
|
36
|
-
$.extend(tiny_mce_config, lite_tiny_mce_config, {
|
37
|
-
editor_selector : "editor",
|
38
|
-
theme_advanced_buttons1 : "bold,italic,underline,|,formatselect,removeformat ,|,bullist,numlist,|,link,unlink,anchor,|,outdent,indent,blockquote,|,justifyleft,justifycenter,justifyright,justifyfull",
|
39
|
-
theme_advanced_buttons2 : "table,delete_table,tablecontrols,col_before,col_after,row_before,row_after,delete_col,delete_row,|,code,attribs,image,media, assetbrowser,nodebrowser,addvideo",
|
40
|
-
|
41
|
-
setup : function(ed) {
|
42
|
-
// Add a custom button
|
43
|
-
ed.addButton('assetbrowser', {
|
44
|
-
title : 'Insert Asset',
|
45
|
-
image : '/images/admin/image_small.png',
|
46
|
-
href: '#asset-browser',
|
47
|
-
onclick : function() {
|
48
|
-
<<<<<<< HEAD
|
49
|
-
tinyMCE.activeEditor.focus();
|
50
|
-
tinyMCE.activeEditor.windowManager.bookmark = tinyMCE.activeEditor.selection.getBookmark();
|
51
|
-
Browser.action = function(e) {
|
52
|
-
e.stopImmediatePropagation();
|
53
|
-
asset_id = Browser.assets_to_add[0]
|
54
|
-
=======
|
55
|
-
Browser.do_action_and_close = function() {
|
56
|
-
asset_id = Browser.assets_to_add[0];
|
57
|
-
>>>>>>> 2979ba1... added addvideo plugin, and makes link
|
58
|
-
if (asset_id) {
|
59
|
-
add_url = $('#asset-' + asset_id).siblings('a.show').attr('href').split('?')[0] + '/add';
|
60
|
-
$.get(add_url, { node_id: NoodallNode.id() }, function(data) {
|
61
|
-
$('#asset-browser').html(data);
|
62
|
-
|
63
|
-
choices = $('#asset-browser .choice');
|
64
|
-
if (choices.length > 0) {
|
65
|
-
$.each(choices, function(i, choice){
|
66
|
-
$(choice).click(function(e){
|
67
|
-
tinyMCE.activeEditor.selection.moveToBookmark(tinyMCE.activeEditor.windowManager.bookmark);
|
68
|
-
tinyMCE.activeEditor.selection.setContent($(this).html());
|
69
|
-
$.fancybox.close();
|
70
|
-
return false;
|
71
|
-
});
|
72
|
-
});
|
73
|
-
} else {
|
74
|
-
tinyMCE.activeEditor.selection.moveToBookmark(tinyMCE.activeEditor.windowManager.bookmark);
|
75
|
-
tinyMCE.activeEditor.selection.setContent(data);
|
76
|
-
$.fancybox.close();
|
77
|
-
return false;
|
78
|
-
}
|
79
|
-
}, 'html');
|
80
|
-
}
|
81
|
-
return false;
|
82
|
-
};
|
83
|
-
Browser.open();
|
84
|
-
}
|
85
|
-
});
|
86
|
-
|
87
|
-
ed.addButton('nodebrowser', {
|
88
|
-
title : 'Insert an internal link',
|
89
|
-
image : '/images/admin/top-level_small.png',
|
90
|
-
href: '#asset-browser',
|
91
|
-
onclick : function() {
|
92
|
-
tinyMCE.activeEditor.focus();
|
93
|
-
tinyMCE.activeEditor.windowManager.bookmark = tinyMCE.activeEditor.selection.getBookmark();
|
94
|
-
// open asset lightbox
|
95
|
-
$.get("/admin/nodes/tree", function() {
|
96
|
-
// reopen the opening form if you close this form
|
97
|
-
$.fancybox({
|
98
|
-
href: '#tree-browser',
|
99
|
-
title: "Link to content"
|
100
|
-
});
|
101
|
-
$('#tree-browser').attr('class', 'tinymce');
|
102
|
-
},
|
103
|
-
'script');
|
104
|
-
}
|
105
|
-
});
|
106
|
-
|
107
|
-
ed.onPostProcess.add(function(ed, o) {
|
108
|
-
if(o.save){
|
109
|
-
// remove mce empty spans
|
110
|
-
o.content = o.content.replace(/<span id=._mce_start. .*?><\/span>/ig, '');
|
111
|
-
}
|
112
|
-
});
|
113
|
-
|
114
|
-
// wow what a hack: insert a containing span for the page name if nothing is selected,
|
115
|
-
// then insert the link, then remove containing span after all is good
|
116
|
-
$('#tree-browser.tinymce li a').live('click', function(event) {
|
117
|
-
add_url = $(this).attr('href').split('?')[0];
|
118
|
-
tinyMCE.activeEditor.selection.moveToBookmark(tinyMCE.activeEditor.windowManager.bookmark);
|
119
|
-
|
120
|
-
if(tinyMCE.activeEditor.selection.getContent().length === 0){
|
121
|
-
tinyMCE.execInstanceCommand(tinyMCE.activeEditor.id, 'mceInsertRawHTML', false, '<span class="tmp_tag">' + $(this).text() + '</span>');
|
122
|
-
spans = tinyMCE.activeEditor.dom.select('span');
|
123
|
-
|
124
|
-
$.each(spans, function(i, span){
|
125
|
-
if($(span).hasClass('tmp_tag')) {
|
126
|
-
tinyMCE.activeEditor.selection.select(span);
|
127
|
-
}
|
128
|
-
});
|
129
|
-
}
|
130
|
-
|
131
|
-
tinyMCE.execInstanceCommand(tinyMCE.activeEditor.id, 'mceInsertLink', false, add_url, true);
|
132
|
-
$.fancybox.close();
|
133
|
-
|
134
|
-
tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent().replace(/<span class="tmp_tag">(.*?)<\/span>/i, "$1"));
|
135
|
-
|
136
|
-
event.stopImmediatePropagation();
|
137
|
-
return false;
|
138
|
-
});
|
139
|
-
|
140
|
-
}
|
141
|
-
});
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
$(function() {
|
146
|
-
$('textarea.editor').tinymce(tiny_mce_config);
|
147
|
-
});
|
@@ -1,32 +0,0 @@
|
|
1
|
-
// APPLICATION.JS
|
2
|
-
// In jQuery if you dont mind.
|
3
|
-
|
4
|
-
$(document).ready(function () {
|
5
|
-
|
6
|
-
// Gallery
|
7
|
-
if($("ul.gallery li").length > 3) {
|
8
|
-
$("#gallery").prepend("<a class='carousel-back'>Backward</a>");
|
9
|
-
$("#gallery").append("<a class='carousel-forward'>Forward</a>");
|
10
|
-
|
11
|
-
$(".image-gallery").jCarouselLite({
|
12
|
-
visible: 3,
|
13
|
-
btnNext: ".carousel-forward",
|
14
|
-
btnPrev: ".carousel-back"
|
15
|
-
});
|
16
|
-
};
|
17
|
-
|
18
|
-
// Use fancy box on all images that link to an image
|
19
|
-
$("a[href$=jpg], a[href$=png], a[href$=gif]").fancybox({
|
20
|
-
'zoomOpacity' : true,
|
21
|
-
'overlayShow' : true,
|
22
|
-
'zoomSpeedIn' : 500,
|
23
|
-
'zoomSpeedOut' : 500,
|
24
|
-
'overlayOpacity' : 0.8,
|
25
|
-
'overlayColor' : '#000'
|
26
|
-
});
|
27
|
-
|
28
|
-
// External links open in a new tab/window
|
29
|
-
$("a[href^=http]").attr('target', '_blank');
|
30
|
-
|
31
|
-
|
32
|
-
}); // close document.ready
|