refinerycms-core 2.1.5 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/refinery/add.png +0 -0
- data/app/assets/images/refinery/admin_bg.png +0 -0
- data/app/assets/images/refinery/ajax-loader.gif +0 -0
- data/app/assets/images/refinery/branch-end.gif +0 -0
- data/app/assets/images/refinery/branch.gif +0 -0
- data/app/assets/images/refinery/cross.png +0 -0
- data/app/assets/images/refinery/dialogLoadingAnimation.gif +0 -0
- data/app/assets/images/refinery/header_background.png +0 -0
- data/app/assets/images/refinery/hover-gradient.jpg +0 -0
- data/app/assets/images/refinery/icons/accept.png +0 -0
- data/app/assets/images/refinery/icons/add.png +0 -0
- data/app/assets/images/refinery/icons/ajax-loader.gif +0 -0
- data/app/assets/images/refinery/icons/application_edit.png +0 -0
- data/app/assets/images/refinery/icons/application_go.png +0 -0
- data/app/assets/images/refinery/icons/arrow_left.png +0 -0
- data/app/assets/images/refinery/icons/arrow_left_right.png +0 -0
- data/app/assets/images/refinery/icons/arrow_switch.png +0 -0
- data/app/assets/images/refinery/icons/arrow_up.png +0 -0
- data/app/assets/images/refinery/icons/arrow_up_down.png +0 -0
- data/app/assets/images/refinery/icons/bin.png +0 -0
- data/app/assets/images/refinery/icons/bin_closed.png +0 -0
- data/app/assets/images/refinery/icons/cancel.png +0 -0
- data/app/assets/images/refinery/icons/cog_add.png +0 -0
- data/app/assets/images/refinery/icons/cog_edit.png +0 -0
- data/app/assets/images/refinery/icons/cross.png +0 -0
- data/app/assets/images/refinery/icons/delete.png +0 -0
- data/app/assets/images/refinery/icons/doc.png +0 -0
- data/app/assets/images/refinery/icons/down.gif +0 -0
- data/app/assets/images/refinery/icons/edit.png +0 -0
- data/app/assets/images/refinery/icons/email.png +0 -0
- data/app/assets/images/refinery/icons/email_edit.png +0 -0
- data/app/assets/images/refinery/icons/email_go.png +0 -0
- data/app/assets/images/refinery/icons/email_open.png +0 -0
- data/app/assets/images/refinery/icons/eye.png +0 -0
- data/app/assets/images/refinery/icons/folder.png +0 -0
- data/app/assets/images/refinery/icons/folder_open.png +0 -0
- data/app/assets/images/refinery/icons/folder_page_white.png +0 -0
- data/app/assets/images/refinery/icons/image_add.png +0 -0
- data/app/assets/images/refinery/icons/image_edit.png +0 -0
- data/app/assets/images/refinery/icons/img.png +0 -0
- data/app/assets/images/refinery/icons/information.png +0 -0
- data/app/assets/images/refinery/icons/layout_add.png +0 -0
- data/app/assets/images/refinery/icons/layout_edit.png +0 -0
- data/app/assets/images/refinery/icons/locale-blue.svg +15 -0
- data/app/assets/images/refinery/icons/locale.svg +11 -0
- data/app/assets/images/refinery/icons/music.png +0 -0
- data/app/assets/images/refinery/icons/page.png +0 -0
- data/app/assets/images/refinery/icons/page_add.png +0 -0
- data/app/assets/images/refinery/icons/page_edit.png +0 -0
- data/app/assets/images/refinery/icons/page_white_edit.png +0 -0
- data/app/assets/images/refinery/icons/page_white_gear.png +0 -0
- data/app/assets/images/refinery/icons/page_white_put.png +0 -0
- data/app/assets/images/refinery/icons/pdf.png +0 -0
- data/app/assets/images/refinery/icons/ppt.png +0 -0
- data/app/assets/images/refinery/icons/star.png +0 -0
- data/app/assets/images/refinery/icons/tick.png +0 -0
- data/app/assets/images/refinery/icons/up.gif +0 -0
- data/app/assets/images/refinery/icons/user_add.png +0 -0
- data/app/assets/images/refinery/icons/user_comment.png +0 -0
- data/app/assets/images/refinery/icons/user_edit.png +0 -0
- data/app/assets/images/refinery/icons/xls.png +0 -0
- data/app/assets/images/refinery/icons/zip.png +0 -0
- data/app/assets/images/refinery/icons/zoom.png +0 -0
- data/app/assets/images/refinery/logo-large.png +0 -0
- data/app/assets/images/refinery/logo-medium.png +0 -0
- data/app/assets/images/refinery/logo-site-bar.png +0 -0
- data/app/assets/images/refinery/logo-small-medium.png +0 -0
- data/app/assets/images/refinery/logo-small.png +0 -0
- data/app/assets/images/refinery/logo-tiny.png +0 -0
- data/app/assets/images/refinery/logo.png +0 -0
- data/app/assets/images/refinery/nav-3-background.gif +0 -0
- data/app/assets/images/refinery/nav_inactive_background.png +0 -0
- data/app/assets/images/refinery/orange_button.png +0 -0
- data/app/assets/images/refinery/page_bg.png +0 -0
- data/app/assets/images/refinery/text_field_background.png +0 -0
- data/app/assets/images/refinery/tooltip-nib.gif +0 -0
- data/app/assets/images/refinery/tooltip-nib.png +0 -0
- data/app/assets/javascripts/admin.js +7 -6
- data/app/assets/javascripts/refinery/admin.js.erb +99 -60
- data/app/assets/javascripts/refinery/ajaxy_pagination.js.coffee +2 -5
- data/app/assets/javascripts/refinery/application.js +8 -0
- data/app/assets/javascripts/refinery/core.js +4 -18
- data/app/assets/javascripts/refinery/interface.js.coffee.erb +5 -29
- data/app/assets/javascripts/refinery/modal_dialogs.js.erb +0 -105
- data/app/assets/javascripts/refinery/nestedsortables.js +183 -110
- data/app/assets/javascripts/refinery/refinery.js.erb +3 -9
- data/app/assets/javascripts/refinery/serializelist.js +1 -1
- data/app/assets/javascripts/refinery/site_bar.js +0 -5
- data/app/assets/javascripts/refinery/sortable_list.js +10 -11
- data/app/assets/javascripts/refinery/submit_continue.js.coffee.erb +1 -1
- data/app/assets/stylesheets/application.scss +2 -0
- data/app/assets/stylesheets/refinery/_colours.scss +18 -0
- data/app/assets/stylesheets/refinery/_icons.scss +85 -0
- data/app/assets/stylesheets/refinery/{layout.css.scss → _layout.scss} +306 -338
- data/app/assets/stylesheets/refinery/_mixins.scss +84 -0
- data/app/assets/stylesheets/refinery/{submenu.css.scss → _submenu.scss} +2 -2
- data/app/assets/stylesheets/refinery/{tooltips.css.scss → _tooltips.scss} +0 -0
- data/app/assets/stylesheets/refinery/_ui.scss +252 -0
- data/app/assets/stylesheets/refinery/{formatting.css.scss → formatting.scss} +0 -0
- data/app/assets/stylesheets/refinery/refinery.scss +10 -0
- data/app/assets/stylesheets/refinery/site_bar.scss +126 -0
- data/app/assets/stylesheets/refinery/{theme.css.scss → theme.scss} +0 -0
- data/app/controllers/refinery/admin/core_controller.rb +2 -7
- data/app/controllers/refinery/admin/dialogs_controller.rb +4 -3
- data/app/controllers/refinery/admin_controller.rb +0 -1
- data/app/controllers/refinery/fast_controller.rb +0 -4
- data/app/helpers/refinery/admin/visual_editor_helper.rb +13 -0
- data/app/helpers/refinery/admin_helper.rb +4 -0
- data/app/helpers/refinery/custom_assets_helper.rb +2 -2
- data/app/helpers/refinery/image_helper.rb +9 -8
- data/app/helpers/refinery/meta_helper.rb +1 -1
- data/app/helpers/refinery/site_bar_helper.rb +16 -2
- data/app/helpers/refinery/tag_helper.rb +38 -5
- data/app/models/refinery/core/base_model.rb +3 -1
- data/app/views/layouts/refinery/admin.html.erb +12 -10
- data/app/views/layouts/refinery/admin_dialog.html.erb +1 -4
- data/app/views/refinery/_content_page.html.erb +1 -1
- data/app/views/refinery/_google_analytics.html.erb +8 -9
- data/app/views/refinery/_head.html.erb +1 -1
- data/app/views/refinery/_javascripts.html.erb +0 -15
- data/app/views/refinery/_message.html.erb +1 -1
- data/app/views/refinery/_site_bar.html.erb +9 -6
- data/app/views/refinery/admin/_error_messages.html.erb +4 -4
- data/app/views/refinery/admin/_form_actions.html.erb +1 -0
- data/app/views/refinery/admin/_form_advanced_options_menu.html.erb +3 -4
- data/app/views/refinery/admin/_head.html.erb +3 -0
- data/app/views/refinery/admin/_image_picker.html.erb +4 -5
- data/app/views/refinery/admin/_javascripts.html.erb +4 -9
- data/app/views/refinery/admin/_locale_picker.html.erb +9 -2
- data/app/views/refinery/admin/_make_sortable.html.erb +8 -6
- data/app/views/refinery/admin/_menu.html.erb +2 -15
- data/app/views/refinery/admin/_menu_item.html.erb +3 -0
- data/app/views/refinery/admin/_resource_picker.html.erb +12 -22
- data/app/views/refinery/admin/_search.html.erb +1 -1
- data/app/views/refinery/admin/_tabbed_fields.html.erb +2 -2
- data/app/views/refinery/admin/_wysiwyg.html.erb +1 -1
- data/{lib/generators/refinery/cms/templates/app/decorators/controllers/refinery/.gitkeep → app/views/refinery/admin/dialog_success.html.erb} +0 -0
- data/app/views/refinery/admin/dialogs/show.html.erb +1 -19
- data/config/initializers/assets.rb +6 -0
- data/config/locales/ca.yml +84 -0
- data/config/locales/cs.yml +12 -5
- data/config/locales/en.yml +6 -2
- data/config/locales/fr.yml +15 -11
- data/config/locales/hu.yml +3 -1
- data/config/locales/it.yml +5 -1
- data/config/locales/ja.yml +2 -2
- data/config/locales/pt.yml +5 -3
- data/config/locales/ru.yml +7 -0
- data/config/locales/sl.yml +0 -3
- data/config/locales/tr.yml +43 -41
- data/config/routes.rb +1 -4
- data/lib/generators/refinery/cms/cms_generator.rb +68 -26
- data/lib/generators/refinery/cms/templates/app/decorators/{models/refinery/.gitkeep → controllers/refinery/.keep} +0 -0
- data/lib/generators/refinery/{form/templates/.gitkeep → cms/templates/app/decorators/models/refinery/.keep} +0 -0
- data/lib/generators/refinery/cms/templates/config/database.yml.mysql +3 -3
- data/lib/generators/refinery/cms/templates/config/database.yml.postgresql +3 -3
- data/lib/generators/refinery/core/templates/config/initializers/refinery/core.rb.erb +18 -5
- data/lib/generators/refinery/dummy/dummy_generator.rb +3 -1
- data/lib/generators/refinery/dummy/templates/rails/application.js +3 -0
- data/lib/generators/refinery/dummy/templates/rails/application.rb.erb +0 -2
- data/lib/generators/refinery/dummy/templates/rails/blank.png +0 -0
- data/lib/generators/refinery/dummy/templates/rails/routes.rb +1 -1
- data/lib/generators/refinery/engine/engine_generator.rb +3 -2
- data/lib/generators/refinery/engine/templates/Gemfile +9 -4
- data/lib/generators/refinery/engine/templates/Rakefile +3 -4
- data/lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb.erb +11 -2
- data/lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/plural_name_controller.rb.erb +2 -2
- data/lib/generators/refinery/engine/templates/app/models/refinery/namespace/singular_name.rb.erb +5 -5
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_actions.html.erb +7 -12
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_form.html.erb +8 -8
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb +3 -3
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb +6 -11
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/index.html.erb +1 -1
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/plural_name/show.html.erb +4 -4
- data/lib/generators/refinery/engine/templates/db/migrate/1_create_namespace_plural_name.rb.erb +2 -9
- data/lib/generators/refinery/engine/templates/db/seeds.rb.erb +13 -19
- data/lib/generators/refinery/engine/templates/lib/refinery/plural_name/engine.rb.erb +0 -4
- data/lib/generators/refinery/engine/templates/readme.md +3 -3
- data/lib/generators/refinery/engine/templates/refinerycms-extension_plural_name.gemspec +1 -0
- data/lib/generators/refinery/engine/templates/spec/features/refinery/namespace/admin/plural_name_spec.rb.erb +25 -28
- data/lib/generators/refinery/engine/templates/spec/models/refinery/namespace/singular_name_spec.rb.erb +1 -1
- data/lib/generators/refinery/engine/templates/spec/spec_helper.rb +1 -1
- data/lib/refinery.rb +7 -9
- data/lib/refinery/admin/base_controller.rb +42 -32
- data/lib/refinery/application_controller.rb +25 -17
- data/lib/refinery/cli.rb +54 -19
- data/lib/refinery/core.rb +5 -0
- data/lib/refinery/core/authorisation_adapter.rb +11 -0
- data/lib/refinery/core/authorisation_manager.rb +14 -0
- data/lib/refinery/core/configuration.rb +25 -4
- data/lib/refinery/core/default_route.rb +16 -0
- data/lib/refinery/core/engine.rb +44 -25
- data/lib/refinery/core/nil_user.rb +42 -0
- data/lib/refinery/crud.rb +40 -29
- data/lib/refinery/extension_generation.rb +11 -22
- data/lib/refinery/generators/generated_attribute.rb +54 -0
- data/lib/refinery/generators/named_base.rb +16 -0
- data/lib/refinery/menu.rb +3 -2
- data/lib/refinery/menu_item.rb +1 -1
- data/lib/refinery/plugin.rb +27 -43
- data/lib/refinery/plugins.rb +22 -26
- data/lib/refinery/users_manager.rb +8 -0
- data/lib/refinery/version.rb +7 -3
- data/lib/tasks/refinery.rake +7 -0
- data/license.md +1 -1
- data/refinerycms-core.gemspec +11 -8
- data/spec/controllers/refinery/admin/dummy_controller_spec.rb +23 -11
- data/spec/controllers/refinery/sitemap_controller_spec.rb +2 -2
- data/spec/features/refinery/admin/custom_assets_spec.rb +12 -10
- data/spec/features/refinery/admin/dialogs_spec.rb +5 -5
- data/spec/features/refinery/admin/xhr_paging_spec.rb +24 -38
- data/spec/features/refinery/application_layout_spec.rb +3 -3
- data/spec/features/refinery/core_spec.rb +1 -1
- data/spec/features/refinery/site_bar_spec.rb +44 -23
- data/spec/helpers/refinery/admin_helper_spec.rb +15 -0
- data/spec/helpers/refinery/custom_assets_helper_spec.rb +15 -23
- data/spec/helpers/refinery/html_truncation_helper_spec.rb +10 -5
- data/spec/helpers/refinery/meta_helper_spec.rb +3 -3
- data/spec/helpers/refinery/pagination_helper_spec.rb +7 -7
- data/spec/helpers/refinery/tag_helper_spec.rb +4 -4
- data/spec/helpers/refinery/translation_helper_spec.rb +3 -3
- data/spec/lib/generators/refinery/cms/cms_generator_spec.rb +30 -25
- data/spec/lib/generators/refinery/core/core_generator_spec.rb +1 -1
- data/spec/lib/generators/refinery/engine/engine_generator_multiple_resources_spec.rb +7 -8
- data/spec/lib/generators/refinery/engine/engine_generator_sanity_check_spec.rb +15 -15
- data/spec/lib/generators/refinery/engine/engine_generator_spec.rb +9 -9
- data/spec/lib/generators/refinery/engine/engine_generator_with_i18n_spec.rb +1 -1
- data/spec/lib/generators/refinery/engine/engine_generator_without_frontend_spec.rb +1 -1
- data/spec/lib/refinery/application_controller_spec.rb +16 -16
- data/spec/lib/refinery/authorisation_manager_spec.rb +10 -0
- data/spec/lib/refinery/cli_spec.rb +83 -21
- data/spec/lib/refinery/core/configuration_spec.rb +5 -5
- data/spec/lib/refinery/core/nil_user_spec.rb +39 -0
- data/spec/lib/refinery/core_spec.rb +39 -30
- data/spec/lib/refinery/crud_spec.rb +70 -59
- data/spec/lib/refinery/menu_spec.rb +4 -4
- data/spec/lib/refinery/plugin_spec.rb +56 -45
- data/spec/lib/refinery/plugins_spec.rb +39 -87
- data/spec/lib/refinery/users_manager_spec.rb +9 -0
- data/spec/support/refinery.rb +3 -8
- data/vendor/assets/fonts/font-awesome/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/font-awesome/fontawesome-webfont.svg +565 -0
- data/vendor/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
- data/vendor/assets/stylesheets/_font-awesome-compass.scss +5 -0
- data/vendor/assets/stylesheets/_font-awesome-sprockets.scss +5 -0
- data/vendor/assets/stylesheets/_font-awesome.scss +17 -0
- data/vendor/assets/stylesheets/font-awesome/_animated.scss +34 -0
- data/vendor/assets/stylesheets/font-awesome/_bordered-pulled.scss +16 -0
- data/vendor/assets/stylesheets/font-awesome/_core.scss +12 -0
- data/vendor/assets/stylesheets/font-awesome/_extras.scss +44 -0
- data/vendor/assets/stylesheets/font-awesome/_fixed-width.scss +6 -0
- data/vendor/assets/stylesheets/font-awesome/_icons.scss +596 -0
- data/vendor/assets/stylesheets/font-awesome/_larger.scss +13 -0
- data/vendor/assets/stylesheets/font-awesome/_list.scss +19 -0
- data/vendor/assets/stylesheets/font-awesome/_mixins.scss +26 -0
- data/vendor/assets/stylesheets/font-awesome/_path.scss +14 -0
- data/vendor/assets/stylesheets/font-awesome/_rotated-flipped.scss +20 -0
- data/vendor/assets/stylesheets/font-awesome/_stacked.scss +20 -0
- data/vendor/assets/stylesheets/font-awesome/_variables.scss +606 -0
- metadata +144 -441
- data/app/assets/images/refinery/carousel-left.png +0 -0
- data/app/assets/images/refinery/carousel-right.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/arrow_redo.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/arrow_undo.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/eye.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/article.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/aside.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/blockquote.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/command.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/details.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/figcaption.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/figure.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/footer.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h1.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h2.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h3.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h4.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h5.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/h6.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/header.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/hgroup.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/mark.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/meter.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/nav.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/p.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/pre.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/progress.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/readme.md +0 -1
- data/app/assets/images/wymeditor/skins/refinery/html5/rp.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/rt.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/ruby.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/section.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/summary.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/html5/time.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h1.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h2.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h3.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h4.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h5.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-h6.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-p.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/iframe/lbl-pre.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/link_add.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/link_break.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/page_code.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/page_paste.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/photo_add.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/right.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/style.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/table_add.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_align_center.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_align_justify.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_align_left.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_align_right.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_bold.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_1.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_2.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_3.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_4.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_5.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_heading_6.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_indent.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_indent_remove.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_italic.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_list_bullets.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_list_numbers.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_paragraph.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_strikethrough.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_subscript.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_superscript.png +0 -0
- data/app/assets/images/wymeditor/skins/refinery/text_underline.png +0 -0
- data/app/assets/images/wymeditor/skins/wymeditor_icon.png +0 -0
- data/app/assets/javascripts/refinery/boot_wym.js.erb +0 -285
- data/app/assets/javascripts/refinery/sortable_menu.js.coffee.erb +0 -20
- data/app/assets/javascripts/refinery/wymeditor.js +0 -37
- data/app/assets/javascripts/wymeditor/GPL-license.txt +0 -278
- data/app/assets/javascripts/wymeditor/MIT-license.txt +0 -20
- data/app/assets/javascripts/wymeditor/README +0 -35
- data/app/assets/javascripts/wymeditor/browsers/ie.js.erb +0 -224
- data/app/assets/javascripts/wymeditor/browsers/mozilla.js.erb +0 -292
- data/app/assets/javascripts/wymeditor/browsers/opera.js.erb +0 -123
- data/app/assets/javascripts/wymeditor/browsers/webkit.js.erb +0 -283
- data/app/assets/javascripts/wymeditor/classes.js.erb +0 -1575
- data/app/assets/javascripts/wymeditor/functions.js.erb +0 -222
- data/app/assets/javascripts/wymeditor/lang/bg.js +0 -57
- data/app/assets/javascripts/wymeditor/lang/ca.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/cs.js +0 -58
- data/app/assets/javascripts/wymeditor/lang/da.js +0 -48
- data/app/assets/javascripts/wymeditor/lang/de.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/en.js +0 -57
- data/app/assets/javascripts/wymeditor/lang/es.js +0 -58
- data/app/assets/javascripts/wymeditor/lang/fa.js +0 -46
- data/app/assets/javascripts/wymeditor/lang/fi.js +0 -57
- data/app/assets/javascripts/wymeditor/lang/fr.js +0 -58
- data/app/assets/javascripts/wymeditor/lang/he.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/hu.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/it.js +0 -48
- data/app/assets/javascripts/wymeditor/lang/ja.js +0 -47
- data/app/assets/javascripts/wymeditor/lang/lv.js +0 -47
- data/app/assets/javascripts/wymeditor/lang/nb.js +0 -48
- data/app/assets/javascripts/wymeditor/lang/nl.js +0 -57
- data/app/assets/javascripts/wymeditor/lang/nn.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/pl.js +0 -56
- data/app/assets/javascripts/wymeditor/lang/pt-BR.js +0 -58
- data/app/assets/javascripts/wymeditor/lang/pt.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/rs.js +0 -47
- data/app/assets/javascripts/wymeditor/lang/ru.js +0 -57
- data/app/assets/javascripts/wymeditor/lang/sk.js +0 -56
- data/app/assets/javascripts/wymeditor/lang/sl.js +0 -47
- data/app/assets/javascripts/wymeditor/lang/sv.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/tr.js +0 -45
- data/app/assets/javascripts/wymeditor/lang/vi.js +0 -47
- data/app/assets/javascripts/wymeditor/lang/zh-CN.js +0 -47
- data/app/assets/javascripts/wymeditor/prototypes.js.erb +0 -1103
- data/app/assets/javascripts/wymeditor/setup.js.erb +0 -622
- data/app/assets/javascripts/wymeditor/skins/refinery/skin.js +0 -45
- data/app/assets/javascripts/wymeditor/validators.js.erb +0 -777
- data/app/assets/stylesheets/refinery/refinery.css +0 -15
- data/app/assets/stylesheets/refinery/site_bar.css.scss +0 -92
- data/app/assets/stylesheets/refinery/ui.css.scss +0 -103
- data/app/assets/stylesheets/wymeditor/skins/refinery/skin.css.scss +0 -530
- data/app/assets/stylesheets/wymeditor/skins/refinery/wymiframe.css.scss +0 -156
- data/app/helpers/refinery/admin/core_helper.rb +0 -6
- data/app/helpers/refinery/admin/dialogs_helper.rb +0 -6
- data/app/helpers/refinery/fast_helper.rb +0 -4
- data/app/helpers/refinery/sitemap_helper.rb +0 -4
- data/app/views/refinery/wymiframe.html.erb +0 -14
- data/lib/generators/refinery/form/USAGE +0 -20
- data/lib/generators/refinery/form/form_generator.rb +0 -25
- data/lib/generators/refinery/form/templates/.gitignore +0 -2
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb.erb +0 -54
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/admin/settings_controller.rb.erb +0 -45
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/plural_name_controller.rb.erb +0 -53
- data/lib/generators/refinery/form/templates/app/mailers/refinery/namespace/mailer.rb.erb +0 -22
- data/lib/generators/refinery/form/templates/app/models/refinery/namespace/setting.rb.erb +0 -34
- data/lib/generators/refinery/form/templates/app/models/refinery/namespace/singular_name.rb.erb +0 -49
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb +0 -23
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb +0 -25
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_submenu.html.erb +0 -29
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/index.html.erb +0 -4
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/show.html.erb +0 -52
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb +0 -27
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/settings/_confirmation_email_form.html.erb +0 -51
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/settings/_notification_recipients_form.html.erb +0 -21
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/settings/edit.html.erb +0 -5
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/mailer/confirmation.html.erb +0 -1
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/mailer/notification.html.erb +0 -17
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/plural_name/new.html.erb +0 -43
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/plural_name/thank_you.html.erb +0 -1
- data/lib/generators/refinery/form/templates/config/locales/cs.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/da.yml +0 -66
- data/lib/generators/refinery/form/templates/config/locales/de.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/en.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/es.yml +0 -66
- data/lib/generators/refinery/form/templates/config/locales/fr.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/it.yml +0 -66
- data/lib/generators/refinery/form/templates/config/locales/lv.yml +0 -77
- data/lib/generators/refinery/form/templates/config/locales/nb.yml +0 -75
- data/lib/generators/refinery/form/templates/config/locales/nl.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/pt-BR.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/ru.yml +0 -77
- data/lib/generators/refinery/form/templates/config/locales/sk.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/sl.yml +0 -67
- data/lib/generators/refinery/form/templates/config/locales/tr.yml +0 -78
- data/lib/generators/refinery/form/templates/config/locales/zh-CN.yml +0 -78
- data/lib/generators/refinery/form/templates/config/routes.rb.erb +0 -26
- data/lib/generators/refinery/form/templates/db/migrate/1_create_plural_name.rb.erb +0 -39
- data/lib/generators/refinery/form/templates/db/seeds.rb.erb +0 -31
- data/lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb +0 -20
- data/lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb +0 -18
- data/lib/generators/refinery/form/templates/lib/refinery/plural_name/engine.rb.erb +0 -27
- data/lib/generators/refinery/form/templates/lib/refinerycms-plural_name.rb.erb +0 -1
- data/lib/generators/refinery/form/templates/refinerycms-plural_name.gemspec +0 -16
- data/lib/generators/refinery/form/templates/script/rails +0 -10
- data/lib/refinery/activity.rb +0 -113
- data/lib/refinery/ext/action_view/helpers/form_builder.rb +0 -9
- data/lib/refinery/ext/action_view/helpers/form_helper.rb +0 -20
- data/lib/refinery/ext/action_view/helpers/form_tag_helper.rb +0 -10
- data/spec/controllers/refinery/admin/refinery_core_controller_spec.rb +0 -19
- data/spec/controllers/refinery/fast_controller_spec.rb +0 -12
- data/spec/lib/generators/refinery/form/form_generator_spec.rb +0 -99
- data/spec/lib/refinery/activity_spec.rb +0 -46
- data/spec/support/background_selenium_firefox_driver.rb +0 -14
- data/vendor/assets/javascripts/jquery/jquery.jcarousel.js +0 -900
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90e1c05265241163cb45f678be671e6f47e9c08a
|
4
|
+
data.tar.gz: cf712355daac2a6c825b866573eb7ae3d81bc989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ddca26c94421aad545b5a13aac760707d8eb40d1bb74f79b3d64d745f43f072cb1d3db2df7dce2e8f66ecdf7b614960eb886d71197724f3b922ca92516fc8be
|
7
|
+
data.tar.gz: baab49eae1449aba6df2131ee303e916b0f7e2033496ff94621c4173d62977a94b593887c156961eebb23d09abcae3f02b27cb32df83cdd7bfaf555e5b44c2c5
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg width="380px" height="380px" viewBox="0 0 380 380" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
3
|
+
<!-- Generator: Sketch 3.1.1 (8761) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>Locale - blue</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="speech_bubble" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
8
|
+
<g id="locale" sketch:type="MSLayerGroup" fill="#CDE6FB">
|
9
|
+
<g id="speech_bubble" sketch:type="MSShapeGroup">
|
10
|
+
<path d="M190,323 C323,323 380,266 380,161.5 C380,57 323,1.58224371e-14 190,0 C57,-1.58224371e-14 7.52797591e-15,57 0,161.5 C7.52797622e-15,266 57,323 190,323 L190,323 Z" id="bubble"></path>
|
11
|
+
<path d="M323,280.490927 C323,361 247.741684,380.000008 209,380 C247.741684,342 247.741684,341.999997 247.741683,286.289719 C247.741682,230.579441 323,199.981853 323,280.490927 L323,280.490927 Z" id="tail"></path>
|
12
|
+
</g>
|
13
|
+
</g>
|
14
|
+
</g>
|
15
|
+
</svg>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
3
|
+
<!-- Generator: Sketch 3.1.1 (8761) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>Speech Bubble</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="speech_bubble" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
8
|
+
<path d="M200,340 C340,340 400,280 400,170 C400,60 340,1.6655197e-14 200,0 C60,-1.6655197e-14 7.92418517e-15,60 0,170 C7.9241855e-15,280 60,340 200,340 Z" id="bubble" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
|
9
|
+
<path d="M340,295.253607 C340,380 260.78072,400.000008 220,400 C260.78072,360 260.78072,359.999997 260.780719,301.357599 C260.780718,242.715201 340,210.507214 340,295.253607 Z" id="tail" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
|
10
|
+
</g>
|
11
|
+
</svg>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,6 +1,7 @@
|
|
1
|
-
// Use this to customize the
|
2
|
-
// Just mirror the options specified in
|
3
|
-
// This will completely override anything specified in
|
4
|
-
// e.g. skin: 'something_else'
|
5
|
-
if (typeof(
|
6
|
-
|
1
|
+
// Use this to customize the visual editor boot process
|
2
|
+
// Just mirror the options specified in your visual editor's config with the new
|
3
|
+
// options here. This will completely override anything specified in your visual
|
4
|
+
// editor's boot process for that key, e.g. skin: 'something_else'
|
5
|
+
if (typeof(custom_visual_editor_options) == "undefined") {
|
6
|
+
custom_visual_editor_options = {};
|
7
|
+
}
|
@@ -3,7 +3,7 @@ var initialLoad = true;
|
|
3
3
|
|
4
4
|
init_refinery_admin = function(){
|
5
5
|
init_interface();
|
6
|
-
|
6
|
+
init_flash_messages();
|
7
7
|
init_submit_continue();
|
8
8
|
init_modal_dialogs();
|
9
9
|
init_tooltips();
|
@@ -33,13 +33,15 @@ $.fn.paginateTo = function(stateUrl) {
|
|
33
33
|
// remove caching _ argument.
|
34
34
|
$('.pagination_container .pagination a').each(function(i, a){
|
35
35
|
$(this).attr('href', $(this).attr('href').replace(/\?\_\=[^&]+&/, '?'));
|
36
|
-
})
|
36
|
+
});
|
37
|
+
|
38
|
+
init_ajaxy_pagination();
|
37
39
|
},
|
38
40
|
error: function(data) {
|
39
41
|
window.location = popstate_location;
|
40
42
|
}
|
41
43
|
});
|
42
|
-
}
|
44
|
+
};
|
43
45
|
|
44
46
|
$.fn.slideTo = function(response) {
|
45
47
|
$(this).html(response);
|
@@ -48,7 +50,7 @@ $.fn.slideTo = function(response) {
|
|
48
50
|
init_modal_dialogs();
|
49
51
|
init_tooltips();
|
50
52
|
return $(this);
|
51
|
-
}
|
53
|
+
};
|
52
54
|
|
53
55
|
$.fn.applyMinimumHeightFromChildren = function() {
|
54
56
|
child_heights = 0;
|
@@ -60,7 +62,7 @@ $.fn.applyMinimumHeightFromChildren = function() {
|
|
60
62
|
});
|
61
63
|
$(this).css('min-height', child_heights);
|
62
64
|
return $(this);
|
63
|
-
}
|
65
|
+
};
|
64
66
|
|
65
67
|
init_modal_dialogs = function(){
|
66
68
|
$('a[href*="dialog=true"]').not('#dialog_container a').each(function(i, anchor) {
|
@@ -94,6 +96,24 @@ init_modal_dialogs = function(){
|
|
94
96
|
});
|
95
97
|
};
|
96
98
|
|
99
|
+
onOpenDialog = function(dialog) {
|
100
|
+
if ($('.ui-dialog').height() < $(window).height()) {
|
101
|
+
if(iframed()) {
|
102
|
+
$(parent.document.body).addClass('hide-overflow');
|
103
|
+
} else {
|
104
|
+
$(document.body).addClass('hide-overflow');
|
105
|
+
}
|
106
|
+
}
|
107
|
+
};
|
108
|
+
|
109
|
+
onCloseDialog = function(dialog) {
|
110
|
+
if(iframed()) {
|
111
|
+
$(parent.document.body).removeClass('hide-overflow');
|
112
|
+
} else {
|
113
|
+
$(document.body).removeClass('hide-overflow');
|
114
|
+
}
|
115
|
+
};
|
116
|
+
|
97
117
|
refinery_dialog_success = function(e) {
|
98
118
|
close_dialog();
|
99
119
|
|
@@ -106,7 +126,7 @@ refinery_dialog_success = function(e) {
|
|
106
126
|
$('#flash_container > #flash').remove();
|
107
127
|
$('#flash_container').append($('.pagination_container').find('#flash'));
|
108
128
|
|
109
|
-
$('#flash').css({'width': 'auto', 'visibility': ''}).
|
129
|
+
$('#flash').css({'width': 'auto', 'visibility': ''}).show();
|
110
130
|
init_refinery_admin();
|
111
131
|
}
|
112
132
|
});
|
@@ -116,10 +136,10 @@ trigger_reordering = function(e, enable) {
|
|
116
136
|
$menu = $("#menu");
|
117
137
|
e.preventDefault();
|
118
138
|
$('#menu_reorder, #menu_reorder_done').toggle();
|
119
|
-
$('#site_bar, #content').fadeTo(
|
139
|
+
$('#site_bar, #content').fadeTo(0, enable ? 0.35 : 1);
|
120
140
|
|
121
141
|
if(enable) {
|
122
|
-
$menu.find('.tab a').click
|
142
|
+
$menu.find('.tab a').on('click', function(ev){
|
123
143
|
ev.preventDefault();
|
124
144
|
});
|
125
145
|
} else {
|
@@ -134,7 +154,7 @@ trigger_reordering_content_section = function(e, enable) {
|
|
134
154
|
e.preventDefault();
|
135
155
|
$('#reorder_page_part, #reorder_page_part_done').toggle();
|
136
156
|
$('#site_bar, #menu, .field:not(:has(#page-tabs)), .page_part:visible, #more_options_field, .form-actions')
|
137
|
-
.fadeTo(
|
157
|
+
.fadeTo(0, enable ? 0.35 : 1);
|
138
158
|
|
139
159
|
$menu.sortable(enable ? 'enable' : 'disable').sortable({
|
140
160
|
items: 'li',
|
@@ -147,16 +167,10 @@ trigger_reordering_content_section = function(e, enable) {
|
|
147
167
|
};
|
148
168
|
|
149
169
|
submit_and_continue = function(e, redirect_to) {
|
150
|
-
|
151
|
-
if ($(this).hasClass('wymupdate')) {
|
152
|
-
$.each(WYMeditor.INSTANCES, function(index, wym)
|
153
|
-
{
|
154
|
-
wym.update();
|
155
|
-
});
|
156
|
-
}
|
170
|
+
visual_editor_update();
|
157
171
|
|
158
172
|
$('#continue_editing').val(true);
|
159
|
-
$('#flash').
|
173
|
+
$('#flash').hide();
|
160
174
|
|
161
175
|
$('.fieldWithErrors').removeClass('fieldWithErrors').addClass('field');
|
162
176
|
$('#flash_container .errorExplanation').remove();
|
@@ -168,7 +182,7 @@ submit_and_continue = function(e, redirect_to) {
|
|
168
182
|
if (($flash_container = $('#flash_container')).length > 0) {
|
169
183
|
$flash_container.html(data);
|
170
184
|
|
171
|
-
$('#flash').css({'width': 'auto', 'visibility': null}).
|
185
|
+
$('#flash').css({'width': 'auto', 'visibility': null}).show();
|
172
186
|
|
173
187
|
$('.errorExplanation').not($('#flash_container .errorExplanation')).remove();
|
174
188
|
|
@@ -186,8 +200,15 @@ submit_and_continue = function(e, redirect_to) {
|
|
186
200
|
|
187
201
|
init_flash_messages();
|
188
202
|
|
189
|
-
//updates the form action with new
|
203
|
+
//updates the form action and locale picker links with new URLs
|
190
204
|
$('form').attr('action', $('#new_action').attr('value'));
|
205
|
+
$('#switch_locale_picker > li > a').each(function(i, anchor) {
|
206
|
+
($anchor = $(anchor)).attr('href',
|
207
|
+
$('#new_refinery_edit_page_path').attr('value')
|
208
|
+
+ "?switch_locale="
|
209
|
+
+ $anchor.attr('href').split('?switch_locale=').slice(-1)[0]
|
210
|
+
);
|
211
|
+
});
|
191
212
|
}
|
192
213
|
}, 'html'
|
193
214
|
);
|
@@ -206,8 +227,8 @@ init_tooltips = function(args){
|
|
206
227
|
tooltip = $("<div class='tooltip'><div><span></span></div></div>").appendTo('#tooltip_container');
|
207
228
|
tooltip.find("span").html($(this).attr('tooltip'));
|
208
229
|
|
209
|
-
|
210
|
-
nib = $("<img src='
|
230
|
+
tooltip_nib_image_src = $.browser.msie ? "<%= asset_path 'refinery/tooltip-nib.gif' %>" : "<%= asset_path 'refinery/tooltip-nib.png' %>";
|
231
|
+
nib = $("<img src='" + tooltip_nib_image_src + "' class='tooltip-nib'/>").appendTo('#tooltip_container');
|
211
232
|
|
212
233
|
tooltip.css({
|
213
234
|
'opacity': 0
|
@@ -425,14 +446,14 @@ var link_dialog = {
|
|
425
446
|
},
|
426
447
|
|
427
448
|
init_close: function(){
|
428
|
-
$('.form-actions-dialog #cancel_button').not('.
|
449
|
+
$('.form-actions-dialog #cancel_button').not('.visual_editor_iframe_body .form-actions-dialog #cancel_button').click(close_dialog);
|
429
450
|
|
430
451
|
if (parent
|
431
452
|
&& parent.document.location.href != document.location.href
|
432
|
-
&& parent.document.getElementById('
|
453
|
+
&& parent.document.getElementById('visual_editor_dialog_submit') != null) {
|
433
454
|
$('#dialog_container .form-actions input#submit_button').click(function(e) {
|
434
455
|
e.preventDefault();
|
435
|
-
$(parent.document.getElementById('
|
456
|
+
$(parent.document.getElementById('visual_editor_dialog_submit')).click();
|
436
457
|
});
|
437
458
|
$('#dialog_container .form-actions a.close_dialog').click(close_dialog);
|
438
459
|
}
|
@@ -502,14 +523,14 @@ var link_dialog = {
|
|
502
523
|
|
503
524
|
update_parent: function(url, title, target) {
|
504
525
|
if (parent != null) {
|
505
|
-
if ((
|
506
|
-
|
526
|
+
if ((visual_editor_href = parent.document.getElementById('visual_editor_href')) != null) {
|
527
|
+
visual_editor_href.value = url;
|
507
528
|
}
|
508
|
-
if ((
|
509
|
-
|
529
|
+
if ((visual_editor_title = parent.document.getElementById('visual_editor_title')) != null) {
|
530
|
+
visual_editor_title.value = title;
|
510
531
|
}
|
511
|
-
if ((
|
512
|
-
|
532
|
+
if ((visual_editor_target = parent.document.getElementById('visual_editor_target')) != null) {
|
533
|
+
visual_editor_target.value = target || "";
|
513
534
|
}
|
514
535
|
}
|
515
536
|
}
|
@@ -520,7 +541,7 @@ var page_options = {
|
|
520
541
|
, init: function(enable_parts, new_part_url, del_part_url){
|
521
542
|
|
522
543
|
if (!this.initialised) {
|
523
|
-
// set the page tabs up, but ensure that all tabs are shown so that when
|
544
|
+
// set the page tabs up, but ensure that all tabs are shown so that when the visual editor loads it has a proper height.
|
524
545
|
page_options.tabs = $('#page-tabs').tabs();
|
525
546
|
|
526
547
|
part_shown = $('#page-tabs .page_part.field').not('.ui-tabs-hide');
|
@@ -555,13 +576,17 @@ var page_options = {
|
|
555
576
|
},
|
556
577
|
|
557
578
|
page_part_dialog: function(){
|
579
|
+
var slugOptions = {
|
580
|
+
separator: '_'
|
581
|
+
}
|
582
|
+
|
558
583
|
$('#new_page_part_dialog').dialog({
|
559
584
|
title: 'Create Content Section',
|
560
585
|
modal: true,
|
561
586
|
resizable: false,
|
562
587
|
autoOpen: false,
|
563
588
|
width: 600,
|
564
|
-
height:
|
589
|
+
height: 300
|
565
590
|
});
|
566
591
|
|
567
592
|
$('#add_page_part').click(function(e){
|
@@ -569,25 +594,36 @@ var page_options = {
|
|
569
594
|
$('#new_page_part_dialog').dialog('open');
|
570
595
|
});
|
571
596
|
|
597
|
+
$('#new_page_part_title').on('input propertychange', function() {
|
598
|
+
var part_title = $(this).val();
|
599
|
+
|
600
|
+
if(part_title.length > 0) {
|
601
|
+
var part_slug = getSlug(part_title, slugOptions);
|
602
|
+
$('#new_page_part_slug').val(part_slug);
|
603
|
+
}
|
604
|
+
});
|
605
|
+
|
572
606
|
$('#new_page_part_save').click(function(e){
|
573
607
|
e.preventDefault();
|
574
608
|
|
575
609
|
var part_title = $('#new_page_part_title').val();
|
610
|
+
var part_slug = $('#new_page_part_slug').val();
|
576
611
|
|
577
|
-
if(
|
578
|
-
var
|
612
|
+
if(part_slug.length > 0){
|
613
|
+
var tab_slug = getSlug(part_slug, slugOptions);
|
579
614
|
|
580
|
-
if ($('#page_part_' +
|
615
|
+
if ($('#page_part_' + tab_slug).size() === 0) {
|
581
616
|
$.get(page_options.new_part_url, {
|
582
|
-
title: part_title
|
583
|
-
|
584
|
-
|
617
|
+
title: part_title,
|
618
|
+
part_index: $('#new_page_part_index').val(),
|
619
|
+
slug: tab_slug,
|
620
|
+
body: ''
|
585
621
|
}, function(data, status){
|
586
622
|
$('#submit_continue_button').remove();
|
587
623
|
// Add a new tab for the new content section.
|
588
624
|
$('#page_part_editors').append(data);
|
589
625
|
|
590
|
-
page_options.tabs.find("ul").append("<li><a href='#page_part_new_"+$('#new_page_part_index').val()+"'>"+part_title+"</a></li>");
|
626
|
+
page_options.tabs.find("ul#page_parts").append("<li><a href='#page_part_new_"+$('#new_page_part_index').val()+"'>"+part_title+"</a></li>");
|
591
627
|
page_options.tabs.tabs("refresh");
|
592
628
|
|
593
629
|
// this is here because of https://github.com/refinery/refinerycms/issues/2060
|
@@ -595,20 +631,21 @@ var page_options = {
|
|
595
631
|
|
596
632
|
page_options.tabs.tabs("option", "active", -1);
|
597
633
|
|
598
|
-
|
634
|
+
visual_editor_init();
|
599
635
|
|
600
636
|
// Wipe the title and increment the index counter by one.
|
601
637
|
$('#new_page_part_index').val(parseInt($('#new_page_part_index').val(), 10) + 1);
|
602
638
|
$('#new_page_part_title').val('');
|
639
|
+
$('#new_page_part_slug').val('');
|
603
640
|
|
604
641
|
$('#new_page_part_dialog').dialog('close');
|
605
642
|
}, 'html'
|
606
643
|
);
|
607
644
|
}else{
|
608
|
-
alert("A content section with that
|
645
|
+
alert("A content section with that slug already exists, please choose another.");
|
609
646
|
}
|
610
647
|
}else{
|
611
|
-
alert("You have not entered a
|
648
|
+
alert("You have not entered a slug for the content section, please enter one.");
|
612
649
|
}
|
613
650
|
});
|
614
651
|
|
@@ -616,6 +653,7 @@ var page_options = {
|
|
616
653
|
e.preventDefault();
|
617
654
|
$('#new_page_part_dialog').dialog('close');
|
618
655
|
$('#new_page_part_title').val('');
|
656
|
+
$('#new_page_part_slug').val('');
|
619
657
|
});
|
620
658
|
|
621
659
|
$('#delete_page_part').click(function(e){
|
@@ -654,7 +692,8 @@ var page_options = {
|
|
654
692
|
|
655
693
|
};
|
656
694
|
|
657
|
-
// TODO: Need to rewrite
|
695
|
+
// TODO: Need to rewrite the visual editors to accept multiple images.
|
696
|
+
// As it stands, only
|
658
697
|
// the callback is useful when inserting multiple -- helpful for
|
659
698
|
// the page-images and portfolio engines.
|
660
699
|
|
@@ -725,18 +764,18 @@ function ImageDialog(options) {
|
|
725
764
|
image_url = resize ? img.attr('data-' + size) : img.attr('data-original');
|
726
765
|
|
727
766
|
if (parent) {
|
728
|
-
if ((
|
729
|
-
|
767
|
+
if ((visual_editor_src = parent.document.getElementById('visual_editor_src')) != null) {
|
768
|
+
visual_editor_src.value = image_url;
|
730
769
|
}
|
731
|
-
if ((
|
732
|
-
|
770
|
+
if ((visual_editor_title = parent.document.getElementById('visual_editor_title')) != null) {
|
771
|
+
visual_editor_title.value = img.attr('title');
|
733
772
|
}
|
734
|
-
if ((
|
735
|
-
|
773
|
+
if ((visual_editor_alt = parent.document.getElementById('visual_editor_alt')) != null) {
|
774
|
+
visual_editor_alt.value = img.attr('alt');
|
736
775
|
}
|
737
|
-
if ((
|
776
|
+
if ((visual_editor_size = parent.document.getElementById('visual_editor_size')) != null
|
738
777
|
&& typeof(geometry) != 'undefined') {
|
739
|
-
|
778
|
+
visual_editor_size.value = geometry.replace(/[<>=]/g, '');
|
740
779
|
}
|
741
780
|
}
|
742
781
|
}
|
@@ -756,14 +795,14 @@ function ImageDialog(options) {
|
|
756
795
|
};
|
757
796
|
|
758
797
|
this.init_actions = function() {
|
759
|
-
// get submit buttons not inside a
|
798
|
+
// get submit buttons not inside a visual editor iframe
|
760
799
|
$('#existing_image_area .form-actions-dialog #submit_button')
|
761
|
-
.not('.
|
800
|
+
.not('.visual_editor_iframe_body #existing_image_area .form-actions-dialog #submit_button')
|
762
801
|
.click($.proxy(self.submit_image_choice, self));
|
763
802
|
|
764
|
-
// get cancel buttons not inside a
|
803
|
+
// get cancel buttons not inside a visual editor iframe
|
765
804
|
$('.form-actions-dialog #cancel_button')
|
766
|
-
.not('.
|
805
|
+
.not('.visual_editor_iframe_body .form-actions-dialog #cancel_button')
|
767
806
|
.click($.proxy(close_dialog, self));
|
768
807
|
|
769
808
|
$('#existing_image_size_area ul li a').click(function(e) {
|
@@ -783,10 +822,10 @@ function ImageDialog(options) {
|
|
783
822
|
}
|
784
823
|
});
|
785
824
|
|
786
|
-
image_area = $('#existing_image_area').not('#
|
825
|
+
image_area = $('#existing_image_area').not('#visual_editor_iframe_body #existing_image_area');
|
787
826
|
image_area.find('.form-actions input#submit_button').click($.proxy(function(e) {
|
788
827
|
e.preventDefault();
|
789
|
-
$(this.document.getElementById('
|
828
|
+
$(this.document.getElementById('visual_editor_dialog_submit')).click();
|
790
829
|
}, parent));
|
791
830
|
image_area.find('.form-actions a.close_dialog').click(close_dialog);
|
792
831
|
};
|
@@ -852,7 +891,7 @@ var image_picker = {
|
|
852
891
|
this.image.src = $(this.image).attr('data-' + size);
|
853
892
|
current_image = $(this.container).find(this.picker.options.image_display);
|
854
893
|
current_image.replaceWith(
|
855
|
-
$("<img src='"+this.image.src+"
|
894
|
+
$("<img src='"+this.image.src+"' id='"+current_image.attr('id')+"' class='"+this.picker.options.image_display.replace(/^./, '')+" brown_border' />")
|
856
895
|
);
|
857
896
|
|
858
897
|
$(this.container).find(this.picker.options.remove_image_button).show();
|
@@ -885,8 +924,8 @@ close_dialog = function(e) {
|
|
885
924
|
the_dialog.remove();
|
886
925
|
}
|
887
926
|
|
888
|
-
// if there's a
|
889
|
-
if (!$(document.body).hasClass('
|
927
|
+
// if there's a visual editor involved don't try to close the dialog as visual editor will.
|
928
|
+
if (!$(document.body).hasClass('visual_editor_iframe_body')) {
|
890
929
|
the_body.removeClass('hide-overflow');
|
891
930
|
the_dialog.filter(':data(dialog)').dialog('close');
|
892
931
|
the_dialog.remove();
|