gnuside-aloha-rails 0.23.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +18 -0
- data/README.md +48 -0
- data/Rakefile +69 -0
- data/app/assets/javascripts/aloha.js +3 -0
- data/app/assets/javascripts/aloha/preinit.js.erb +1 -0
- data/lib/aloha-rails.rb +1 -0
- data/lib/aloha/rails.rb +2 -0
- data/lib/aloha/rails/engine.rb +9 -0
- data/lib/aloha/rails/version.rb +7 -0
- data/lib/tasks/aloha-assets.rake +9 -0
- data/vendor/assets/javascripts/aloha/css/aloha.scss +31 -0
- data/vendor/assets/javascripts/aloha/img/arrow-down.png +0 -0
- data/vendor/assets/javascripts/aloha/img/arrow-left.png +0 -0
- data/vendor/assets/javascripts/aloha/img/arrow.png +0 -0
- data/vendor/assets/javascripts/aloha/img/base-multi.png +0 -0
- data/vendor/assets/javascripts/aloha/img/base.png +0 -0
- data/vendor/assets/javascripts/aloha/img/bg.png +0 -0
- data/vendor/assets/javascripts/aloha/img/breadcrumb-divider.png +0 -0
- data/vendor/assets/javascripts/aloha/img/gentics-logo.png +0 -0
- data/vendor/assets/javascripts/aloha/img/grabhandle.png +0 -0
- data/vendor/assets/javascripts/aloha/img/maximize.png +0 -0
- data/vendor/assets/javascripts/aloha/img/multisplit-base.jpg +0 -0
- data/vendor/assets/javascripts/aloha/img/multisplit-close.gif +0 -0
- data/vendor/assets/javascripts/aloha/img/multisplit-open.gif +0 -0
- data/vendor/assets/javascripts/aloha/img/pin.png +0 -0
- data/vendor/assets/javascripts/aloha/img/removeformat.png +0 -0
- data/vendor/assets/javascripts/aloha/img/text_indent.png +0 -0
- data/vendor/assets/javascripts/aloha/img/text_indent_remove.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/aloha-jquery-noconflict.js +14 -0
- data/vendor/assets/javascripts/aloha/lib/aloha.js +595 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/block-jump.js +153 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/command.js +287 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/console.js +347 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/contenthandlermanager.js +104 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/copypaste.js +108 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/core.js +623 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ecma5shims.js +326 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/editable.js +1042 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/engine.js +8646 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ephemera.js +492 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/ierange-m2.js +29 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/jquery.aloha.js +542 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/markup.js +1276 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/ca/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/de/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/i18n.js +20 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/mk/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/pt-br/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/ru/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/uk/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/nls/zh-hans/i18n.js +11 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/observable.js +113 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/plugin.js +281 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/pluginmanager.js +203 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/rangy-core.js +30 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/registry.js +137 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/repository.js +255 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/repositorymanager.js +742 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/repositoryobjects.js +162 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/selection.js +2402 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/sidebar.js +1045 -0
- data/vendor/assets/javascripts/aloha/lib/aloha/state-override.js +147 -0
- data/vendor/assets/javascripts/aloha/lib/css.js +455 -0
- data/vendor/assets/javascripts/aloha/lib/i18n.js +192 -0
- data/vendor/assets/javascripts/aloha/lib/require.js +2053 -0
- data/vendor/assets/javascripts/aloha/lib/text.js +288 -0
- data/vendor/assets/javascripts/aloha/lib/util/arrays.js +287 -0
- data/vendor/assets/javascripts/aloha/lib/util/boundary-markers.js +86 -0
- data/vendor/assets/javascripts/aloha/lib/util/browser.js +32 -0
- data/vendor/assets/javascripts/aloha/lib/util/class.js +78 -0
- data/vendor/assets/javascripts/aloha/lib/util/dom.js +1888 -0
- data/vendor/assets/javascripts/aloha/lib/util/dom2.js +908 -0
- data/vendor/assets/javascripts/aloha/lib/util/functions.js +62 -0
- data/vendor/assets/javascripts/aloha/lib/util/html.js +311 -0
- data/vendor/assets/javascripts/aloha/lib/util/json2.js +464 -0
- data/vendor/assets/javascripts/aloha/lib/util/keys.js +65 -0
- data/vendor/assets/javascripts/aloha/lib/util/lang.js +89 -0
- data/vendor/assets/javascripts/aloha/lib/util/maps.js +130 -0
- data/vendor/assets/javascripts/aloha/lib/util/misc.js +51 -0
- data/vendor/assets/javascripts/aloha/lib/util/position.js +176 -0
- data/vendor/assets/javascripts/aloha/lib/util/range-context.js +776 -0
- data/vendor/assets/javascripts/aloha/lib/util/range.js +917 -0
- data/vendor/assets/javascripts/aloha/lib/util/strings.js +122 -0
- data/vendor/assets/javascripts/aloha/lib/util/trees.js +336 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/3rdparty.txt +70 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/amplify.store.js +298 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/class.js +76 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/grid.locale.de.js +138 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/grid.locale.en.js +133 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/ierange-m2.js +508 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery-1.7.2.js +9421 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery-ui-1.9.0.custom-aloha.js +14711 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery.jqgrid.js +474 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery.jstree.js +4549 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/jquery.layout-1.3.0-rc30.7.js +5924 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/pubsub/js/pubsub-unminified.js +187 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/pubsub/js/pubsub.js +2 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/rangy-core.js +3295 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/css/jstree.css +88 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/css/repository-browser.css +744 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow-000-medium.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow-180.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow-315-medium.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow-stop-180.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow-stop.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/arrow.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/control-stop-square-small.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/folder-horizontal-open.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/folder-open.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/magnifier-left.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/page.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/picture.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/sort-alphabet-descending.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/sort-alphabet.png +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/throbber.gif +0 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/js/repository-browser-unminified.js +1450 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/js/repository-browser.js +32 -0
- data/vendor/assets/javascripts/aloha/lib/vendor/sanitize.js +278 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/css/abbr.css +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/img/remabbr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/lib/abbr-plugin.js +304 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/ca/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/de/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/i18n.js +15 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/mk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/pt-br/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/ru/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/uk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/zh-hans/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/abbr/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/LICENSE +166 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/README +12 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/css/align.css +31 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/img/align.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/lib/align-plugin.js +465 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/ca/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/de/i18n.js +9 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/i18n.js +18 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/mk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/pt-br/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/ru/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/uk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/nls/zh-hans/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/common/align/package.json +2 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/css/block.css +110 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/img/toolbar-draghandle.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/block-plugin.js +347 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/block.js +1277 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/blockcontenthandler.js +118 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/blockmanager.js +621 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/editor.js +331 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/editormanager.js +55 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/lib/sidebarattributeeditor.js +126 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/nls/zh-hans/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/block/package.json +11 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/css/characterpicker.css +44 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/img/icon.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/lib/characterpicker-plugin.js +466 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/zh-hans/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/commands/css/abbr.css +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/commands/lib/commands-plugin.js +33 -0
- data/vendor/assets/javascripts/aloha/plugins/common/commands/lib/inserthtml.js +126 -0
- data/vendor/assets/javascripts/aloha/plugins/common/commands/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/README.md +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/blockelementcontenthandler.js +144 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/contenthandler-plugin.js +65 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/contenthandler-utils.js +58 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/genericcontenthandler.js +359 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/oembedcontenthandler.js +461 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/sanitizecontenthandler.js +186 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/wordcontenthandler.js +461 -0
- data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/dom-to-xhtml/lib/dom-to-xhtml-plugin.js +74 -0
- data/vendor/assets/javascripts/aloha/plugins/common/dom-to-xhtml/lib/dom-to-xhtml.js +415 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/img/em.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/img/strong.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/lib/format-plugin.js +594 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/ca/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/de/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/i18n.js +61 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/mk/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/pt-br/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/ru/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/uk/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/format/nls/zh-hans/i18n.js +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/css/highlighteditables.css +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/lib/highlighteditables-plugin.js +100 -0
- data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/css/horizontalruler.css +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/img/icon.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/lib/horizontalruler-plugin.js +95 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/zh-hans/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/README.md +66 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/css/image.css +133 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/blank.jpg +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/crop-buttons.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/cropnresize.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/handle-sw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-left.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-none.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-right.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-border.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-title.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/image.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/padding-decrease.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/padding-increase.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/page.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/size-decrease.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/img/size-increase.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/lib/image-floatingMenu.js +308 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/lib/image-plugin-actions.js +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/lib/image-plugin.js +1341 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/ca/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/de/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/i18n.js +41 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/mk/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/pt-br/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/ru/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/uk/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/nls/zh-hans/i18n.js +32 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jcrop.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jquery.jcrop.css +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jquery.jcrop.min.js +165 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/mousewheel/mousewheel.js +85 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/css/link.css +52 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/extra/delicious.js +264 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/extra/linklist.js +247 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/extra/slowlinklist.js +247 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/lib/link-plugin.js +958 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/ca/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/de/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/i18n.js +23 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/mk/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/pt-br/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/ru/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/uk/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/link/nls/zh-hans/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/lib/list-plugin.js +878 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/ca/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/de/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/i18n.js +16 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/mk/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/pt-br/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/ru/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/uk/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/nls/zh-hans/i18n.js +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/list/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/paste/lib/paste-plugin.js +457 -0
- data/vendor/assets/javascripts/aloha/plugins/common/paste/package.json +8 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/css/table.css +125 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/img/down.cur +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/img/left.cur +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/img/table_layout.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/img/wai-green.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/img/wai-red.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-cell.js +542 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-create-layer.js +213 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-plugin-utils.js +494 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-plugin.js +1596 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-selection.js +468 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table.js +2110 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/ca/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/de/i18n.js +29 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/i18n.js +38 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/mk/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/pt-br/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/ru/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/uk/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/nls/zh-hans/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/common/table/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/css/jquery-ui-1.9m6.css +430 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/css/ui.css +689 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/blockquote.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/character-picker.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/em.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/format-block.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/format-inline.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/indent.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/jqueryui/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/justify.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/language-annotation.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/anchor.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/blockquote.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/caption.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/cite.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/dd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/div.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/dl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/dt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h1.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h2.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h3.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h4.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h5.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/h6.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/p.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/pre.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/q.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/table.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/td.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/metaview/th.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/multisplit-close.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/multisplit-open.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/outdent.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/quote.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/removeformat.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/strong.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/img/tree.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/arena.js +11 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/autocomplete.js +70 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/button.js +114 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/component.js +121 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/container.js +210 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/context.js +53 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/dialog.js +215 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/floating.js +405 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/menuButton.js +169 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/multiSplit.js +237 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/port-helper-attribute-field.js +440 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/port-helper-multi-split.js +71 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/scopes.js +187 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/settings.js +202 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/subguarded.js +183 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/surface.js +106 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/tab.js +316 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/text.js +33 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/toggleButton.js +57 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/toolbar.js +251 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/ui-plugin.js +169 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/ui.js +181 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/lib/utils.js +104 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/ca/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/de/i18n.js +48 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/i18n.js +75 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/mk/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/pt-br/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/ru/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/uk/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/nls/zh-hans/i18n.js +46 -0
- data/vendor/assets/javascripts/aloha/plugins/common/ui/vendor/jquery-ui-autocomplete-html.js +42 -0
- data/vendor/assets/javascripts/aloha/plugins/common/undo/lib/undo-plugin.js +165 -0
- data/vendor/assets/javascripts/aloha/plugins/common/undo/package.json +7 -0
- data/vendor/assets/javascripts/aloha/plugins/common/undo/vendor/diff_match_patch_uncompressed.js +2155 -0
- data/vendor/assets/javascripts/aloha/plugins/common/undo/vendor/undo.js +121 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/css/attributes.css +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/lib/attributes-plugin.js +237 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/ca/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/de/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/i18n.js +14 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/mk/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/pt-br/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/ru/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/uk/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/zh-hans/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/captioned-image/css/captioned-image.css +15 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/captioned-image/lib/captioned-image-plugin.js +555 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/css/cite.css +39 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/img/blockquote.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/img/icon_cite.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/lib/cite-plugin.js +614 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/ca/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/de/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/i18n.js +13 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/mk/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/pt-br/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/ru/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/uk/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/zh-hans/i18n.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/cite/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/add-icon.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/add.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/comments.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/hr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/textbox.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/lib/comments-plugin.js +692 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/lib/comments.css +442 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/comments/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/README.md +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/TODO.md +2 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/cross.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/hourglass.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/loading.gif +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/page.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/tick.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/draganddropfiles-plugin.js +4 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dragndropfiles.css +110 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dragndropfiles.js +363 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dropfilesrepository.js +365 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/nls/zh-hans/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/README.md +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/css/formatless.css +7 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/img/button.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/lib/formatlesshandler.js +97 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/lib/formatlesspaste-plugin.js +230 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/zh-hans/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/package.json +8 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/css/headerids.css +8 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/lib/headerids-plugin.js +254 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/ca/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/de/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/i18n.js +15 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/mk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/pt-br/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/ru/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/uk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/zh-hans/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/README.md +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/css/hints.css +29 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/lib/hints-plugin.js +97 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/package.json +9 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/hints/vendor/tipsy.js +242 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/lib/imagebrowser-plugin.js +160 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/ca/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/de/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/i18n.js +15 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/mk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/pt-br/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/ru/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/uk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/imagebrowser/nls/zh-hans/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ad.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ae.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/af.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ag.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ai.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/al.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/am.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/an.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ao.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ar.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/as.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/at.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/au.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/aw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ax.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/az.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ba.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bb.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/be.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bi.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bj.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bo.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/br.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bs.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/by.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ca.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/catalonia.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ch.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ci.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ck.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/co.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cs.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cx.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cy.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/de.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dj.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/do.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ec.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ee.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/eg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/eh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/en.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/er.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/es.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/et.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/europeanunion.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fam.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fi.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fj.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fo.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ga.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gb.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ge.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gi.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gp.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gq.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gs.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gy.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ht.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/id.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ie.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/il.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/in.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/io.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/iq.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ir.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/is.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/it.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jo.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jp.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ke.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ki.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/km.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kp.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ky.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/la.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lb.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/li.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ls.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ly.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ma.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/md.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/me.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ml.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mo.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mp.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mq.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ms.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mx.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/my.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/na.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ne.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ng.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ni.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/no.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/np.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/om.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pa.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pe.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ph.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ps.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/py.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/qa.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/re.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ro.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/rs.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ru.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/rw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sa.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sb.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/scotland.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/se.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sh.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/si.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sj.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/so.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/st.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sy.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/td.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/th.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tj.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tk.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/to.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tv.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ua.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ug.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/um.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/us.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/uy.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/uz.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/va.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vc.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ve.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vg.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vi.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vn.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vu.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/wales.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/wf.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ws.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ye.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/yt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/za.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/zm.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/zw.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/lib/linkbrowser-plugin.js +161 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/ca/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/de/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/i18n.js +15 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/mk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/pt-br/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/ru/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/uk/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/zh-hans/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/ca/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/de/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/i18n.js +37 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/mk/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/pt-br/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/ru/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/uk/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/nls/zh-hans/i18n.js +28 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/proxy.php.example +244 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/src/linkchecker.css +14 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/src/linkchecker.js +269 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/listenforcer/lib/listenforcer-plugin.js +190 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/css/metaview.css +78 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/anchor.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/blockquote.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/button.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/caption.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/cite.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dd.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/div.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dl.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dt.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h1.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h2.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h3.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h4.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h5.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h6.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/hr.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/icon_cite.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/p.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/pre.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/table.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/td.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/th.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/lib/metaview-plugin.js +185 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/zh-hans/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/README +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/css/numerated-headers.css +7 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/img/headers.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/lib/numerated-headers-plugin.js +421 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/ca/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/de/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/i18n.js +15 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/mk/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/pt-br/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/ru/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/uk/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/zh-hans/i18n.js +5 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/profiler/css/profiler.css +34 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/profiler/lib/profiler-plugin.js +304 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/README.md +8 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/css/ribbon.css +54 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/img/fade-in.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/img/fade-out.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/lib/ribbon-plugin.js +144 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/sourceview/css/sourceview.css +18 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/sourceview/lib/sourceview-plugin.js +252 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/sourceview/vendor/htmlbeautifier.js +468 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/textcolor/css/textcolor.css +65 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/textcolor/img/icon.png +0 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/textcolor/lib/textcolor-plugin.js +420 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/textcolor/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/textcolor/nls/i18n.js +6 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/lib/toc-plugin.js +399 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/ca/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/de/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/i18n.js +12 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/mk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/pt-br/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/ru/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/uk/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/nls/zh-hans/i18n.js +3 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/toc/package.json +1 -0
- data/vendor/assets/javascripts/aloha/plugins/extra/validation/lib/validation-plugin.js +277 -0
- data/vendor/assets/stylesheets/aloha-common-extra.css +24 -0
- data/vendor/assets/stylesheets/aloha-core.css +19 -0
- data/vendor/assets/stylesheets/aloha-reset.css +24 -0
- data/vendor/assets/stylesheets/aloha-sidebar.css +296 -0
- data/vendor/assets/stylesheets/aloha.css +31 -0
- metadata +898 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/control-stop-square-small.png
ADDED
Binary file
|
data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/folder-horizontal-open.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/assets/javascripts/aloha/lib/vendor/repository-browser/img/sort-alphabet-descending.png
ADDED
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,1450 @@
|
|
1
|
+
/*!
|
2
|
+
* Aloha Editor
|
3
|
+
* Author & Copyright (c) 2012 Gentics Software GmbH
|
4
|
+
* aloha-sales@gentics.com
|
5
|
+
* Licensed under the terms of http://www.aloha-editor.com/license.html
|
6
|
+
*/
|
7
|
+
define('RepositoryBrowser', [
|
8
|
+
'jquery',
|
9
|
+
'Class',
|
10
|
+
'PubSub',
|
11
|
+
'repository-browser-i18n-' + (
|
12
|
+
(window && window.__DEPS__ && window.__DEPS__.lang) || 'en'
|
13
|
+
),
|
14
|
+
'jstree',
|
15
|
+
'jqgrid',
|
16
|
+
'jquery-layout'
|
17
|
+
], function (
|
18
|
+
$,
|
19
|
+
Class,
|
20
|
+
PubSub,
|
21
|
+
i18n
|
22
|
+
) {
|
23
|
+
'use strict';
|
24
|
+
|
25
|
+
var jQuery = $;
|
26
|
+
var browserInstances = [];
|
27
|
+
var numOpenedBrowsers = 0;
|
28
|
+
var uid = (new Date()).getTime();
|
29
|
+
var DEFAULTS = {
|
30
|
+
repositoryManager: null,
|
31
|
+
repositoryFilter: [],
|
32
|
+
objectTypeFilter: [],
|
33
|
+
renditionFilter: ['cmis:none'], // ['*']
|
34
|
+
filter: ['url'],
|
35
|
+
element: null,
|
36
|
+
isFloating: false,
|
37
|
+
verticalPadding: 100,
|
38
|
+
horizontalPadding: 50,
|
39
|
+
maxHeight: 1000,
|
40
|
+
minHeight: 400,
|
41
|
+
minWidth: 400,
|
42
|
+
maxWidth: 1200,
|
43
|
+
treeWidth: 300,
|
44
|
+
listWidth: 'auto',
|
45
|
+
pageSize: 8,
|
46
|
+
adaptPageSize: false,
|
47
|
+
rowHeight: 32,
|
48
|
+
rootPath: '',
|
49
|
+
rootFolderId: 'aloha',
|
50
|
+
columns: {
|
51
|
+
icon: {title: '', width: 30, sortable: false, resizable: false},
|
52
|
+
name: {title: 'Name', width: 200, sorttype: 'text'},
|
53
|
+
url: {title: 'URL', width: 220, sorttype: 'text'},
|
54
|
+
preview: {title: 'Preview', width: 150, sorttype: 'text'}
|
55
|
+
},
|
56
|
+
i18n: {
|
57
|
+
'Browsing': 'Browsing',
|
58
|
+
'Close': 'Close',
|
59
|
+
'in': 'in',
|
60
|
+
'Input search text...': 'Input search text...',
|
61
|
+
'numerous': 'numerous',
|
62
|
+
'of': 'of',
|
63
|
+
'Repository Browser': 'Repository Browser',
|
64
|
+
'Search': 'Search',
|
65
|
+
'Searching for': 'Searching for',
|
66
|
+
'Viewing': 'Viewing'
|
67
|
+
}
|
68
|
+
};
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Prevents native browser selection on the given element.
|
72
|
+
*
|
73
|
+
* @param {jQuery.<HTMLElement>} element An element on which to prevent
|
74
|
+
* selection.
|
75
|
+
*/
|
76
|
+
function disableSelection($element) {
|
77
|
+
$element.each(function () {
|
78
|
+
jQuery(this)
|
79
|
+
.attr('unselectable', 'on')
|
80
|
+
.css({
|
81
|
+
'-moz-user-select': 'none',
|
82
|
+
'-webkit-user-select': 'none',
|
83
|
+
'user-select': 'none'
|
84
|
+
})
|
85
|
+
.each(function () {
|
86
|
+
this.onselectstart = function () { return false; };
|
87
|
+
});
|
88
|
+
});
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Get icon name from given resource type.
|
93
|
+
*
|
94
|
+
* @param {string} type Resource type.
|
95
|
+
* @return {string} Icon name.
|
96
|
+
*/
|
97
|
+
function getIcon(type) {
|
98
|
+
switch (type) {
|
99
|
+
case 'folder':
|
100
|
+
return 'folder';
|
101
|
+
case 'document':
|
102
|
+
return 'document';
|
103
|
+
default:
|
104
|
+
return '';
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
/**
|
109
|
+
* Return unique id.
|
110
|
+
*
|
111
|
+
* @return {number}
|
112
|
+
*/
|
113
|
+
function uniqueId() {
|
114
|
+
return ++uid;
|
115
|
+
}
|
116
|
+
|
117
|
+
/**
|
118
|
+
* FIXME: free cache
|
119
|
+
*
|
120
|
+
* @param {RepositoryBrowser} browser
|
121
|
+
* @param {object} obj
|
122
|
+
*/
|
123
|
+
function cacheWrite(browser, obj) {
|
124
|
+
browser._cachedRepositoryObjects[obj.uid] = obj;
|
125
|
+
}
|
126
|
+
|
127
|
+
/**
|
128
|
+
* @param {RepositoryBrowser} browser
|
129
|
+
* @param {object} obj
|
130
|
+
* @return {object}
|
131
|
+
*/
|
132
|
+
function cacheRead(browser, uid) {
|
133
|
+
return browser._cachedRepositoryObjects[uid];
|
134
|
+
}
|
135
|
+
|
136
|
+
/**
|
137
|
+
* @param {jQuery.<HTMLElement>} $node
|
138
|
+
* @return {string} Id of repository object tethered to the given DOM
|
139
|
+
* element.
|
140
|
+
*/
|
141
|
+
function getIdFromTreeNode($node) {
|
142
|
+
return $node.find('a:first').attr('data-repo-obj');
|
143
|
+
}
|
144
|
+
|
145
|
+
/**
|
146
|
+
* Composite for jqGrid and jsTree
|
147
|
+
*
|
148
|
+
* Convert a repository object into an object that can be used with our tree
|
149
|
+
* component. Also add a reference to this object in the cache. According
|
150
|
+
* to the Repository specification, each object will at least have the
|
151
|
+
* following properties: id, name, url, and type. Any and all other
|
152
|
+
* attributes are optional.
|
153
|
+
*/
|
154
|
+
function createComposite(props, browser) {
|
155
|
+
var uid = uniqueId();
|
156
|
+
|
157
|
+
var state =
|
158
|
+
(false === props.hasMoreItems || 'folder' !== props.baseType)
|
159
|
+
? null
|
160
|
+
: 'closed';
|
161
|
+
|
162
|
+
// Initialize as array instead? will jstree accept empty list?
|
163
|
+
var children = null;
|
164
|
+
|
165
|
+
if (props.children) {
|
166
|
+
state = 'open';
|
167
|
+
children = [];
|
168
|
+
var i;
|
169
|
+
var child;
|
170
|
+
for (i = 0; i < props.children.length; i++) {
|
171
|
+
child = createComposite(props.children[i], browser);
|
172
|
+
children.push(child);
|
173
|
+
cacheWrite(browser, child.resource);
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
var treeResource = $.extend(props, {
|
178
|
+
uid: uid,
|
179
|
+
loaded: false
|
180
|
+
});
|
181
|
+
|
182
|
+
return {
|
183
|
+
state: state,
|
184
|
+
resource: treeResource,
|
185
|
+
children: children,
|
186
|
+
// jsTreee <li> attributes
|
187
|
+
attr: {
|
188
|
+
rel: props.type,
|
189
|
+
'data-repo-obj': uid
|
190
|
+
},
|
191
|
+
data: {
|
192
|
+
title: props.name,
|
193
|
+
icon: getIcon(props.baseType),
|
194
|
+
attr: {
|
195
|
+
'data-repo-obj': uid
|
196
|
+
}
|
197
|
+
}
|
198
|
+
};
|
199
|
+
}
|
200
|
+
|
201
|
+
var RepositoryBrowser = Class.extend({
|
202
|
+
|
203
|
+
/**
|
204
|
+
* @private
|
205
|
+
* @type <object> The repository objects queried through this browser.
|
206
|
+
*/
|
207
|
+
_cachedRepositoryObjects: {},
|
208
|
+
|
209
|
+
/**
|
210
|
+
* @private
|
211
|
+
* @type <string> The last search query.
|
212
|
+
*/
|
213
|
+
_searchQuery: null,
|
214
|
+
|
215
|
+
/**
|
216
|
+
* @private
|
217
|
+
* @type <?>
|
218
|
+
*/
|
219
|
+
_orderBy: null,
|
220
|
+
|
221
|
+
/**
|
222
|
+
* @private
|
223
|
+
* @type <string> prefilled value of the search field
|
224
|
+
*/
|
225
|
+
_prefilledValue: null,
|
226
|
+
|
227
|
+
/**
|
228
|
+
* @type {jsGrid<HTMLElement>}
|
229
|
+
*/
|
230
|
+
$_grid: null,
|
231
|
+
|
232
|
+
/**
|
233
|
+
* @type {jsTree<HTMLElement>}
|
234
|
+
*/
|
235
|
+
$_tree: null,
|
236
|
+
|
237
|
+
/**
|
238
|
+
* @type {jQuery.<HTMLElement>} The layout of the browser panels.
|
239
|
+
*/
|
240
|
+
$_list: null,
|
241
|
+
|
242
|
+
/**
|
243
|
+
* @type {boolean} Whether or not the browser is visibly opened. This
|
244
|
+
* flag is set to true when the show() function is
|
245
|
+
* called.
|
246
|
+
*/
|
247
|
+
_isOpened: true,
|
248
|
+
|
249
|
+
/**
|
250
|
+
* @constructor
|
251
|
+
*/
|
252
|
+
_constructor: function () {
|
253
|
+
this.init.apply(this, arguments);
|
254
|
+
},
|
255
|
+
|
256
|
+
/**
|
257
|
+
* Process the given browser configurations, and renders a hidden
|
258
|
+
* instance of this browser.
|
259
|
+
*
|
260
|
+
* @param {object} options User defined custom browser configurations.
|
261
|
+
*/
|
262
|
+
init: function (options) {
|
263
|
+
options = jQuery.extend({}, DEFAULTS, options, {i18n: i18n});
|
264
|
+
|
265
|
+
// If no element was specified on which to render the browser, then
|
266
|
+
// we will create an overlay and render the browser on it.
|
267
|
+
if (!options.element || 0 === options.element.length) {
|
268
|
+
options.isFloating = true;
|
269
|
+
options.element = this._createOverlay();
|
270
|
+
}
|
271
|
+
|
272
|
+
if (options.maxWidth < options.minWidth) {
|
273
|
+
options.maxWidth = options.minWidth;
|
274
|
+
}
|
275
|
+
|
276
|
+
jQuery.extend(this, options);
|
277
|
+
|
278
|
+
this._prefilledValue = this._i18n('Input search text...');
|
279
|
+
this._cachedRepositoryObjects = {};
|
280
|
+
this._searchQuery = null;
|
281
|
+
this._orderBy = null;
|
282
|
+
this._pagingCount = null;
|
283
|
+
this._pagingOffset = 0;
|
284
|
+
this._pagingBtns = {
|
285
|
+
first: null,
|
286
|
+
end: null,
|
287
|
+
next: null,
|
288
|
+
prev: null
|
289
|
+
};
|
290
|
+
|
291
|
+
this._initializeUI();
|
292
|
+
browserInstances.push(this);
|
293
|
+
PubSub.pub('repository-browser.initialized', {data: this});
|
294
|
+
},
|
295
|
+
|
296
|
+
/**
|
297
|
+
* Retrieves the corresponding internationalization string for the
|
298
|
+
* given keyword.
|
299
|
+
*
|
300
|
+
* @param {string} key The key for which a full i18n string is
|
301
|
+
* retrieved.
|
302
|
+
* @return {string} The return value is either the i18n value matched
|
303
|
+
* by the given key, or else the key.
|
304
|
+
*/
|
305
|
+
_i18n: function (key) {
|
306
|
+
return this.i18n[key] || key;
|
307
|
+
},
|
308
|
+
|
309
|
+
/**
|
310
|
+
* Prepares the browser UI.
|
311
|
+
*/
|
312
|
+
_initializeUI: function () {
|
313
|
+
this.element.attr('data-repository-browser', ++uid); //.html('');
|
314
|
+
this.element.width(this.maxWidth);
|
315
|
+
|
316
|
+
this.$_grid = this._createGrid(this.element).resize();
|
317
|
+
this._setInitialHeight();
|
318
|
+
this.$_tree = this._createTree(this.$_grid.find('.ui-layout-west'));
|
319
|
+
this.$_list = this._createList(this.$_grid.find('.ui-layout-center'));
|
320
|
+
|
321
|
+
var that = this;
|
322
|
+
var give = this.treeWidth / 5;
|
323
|
+
|
324
|
+
this.$_grid.layout({
|
325
|
+
// Disable cursor hot keys since they interfere with text
|
326
|
+
// editing. For example, CTRL+left (wordwise left) and
|
327
|
+
// CTRL+SHIFT+left (select wordwise left) would stop working.
|
328
|
+
enableCursorHotkey: false,
|
329
|
+
west__size: this.treeWidth - 1,
|
330
|
+
west__minSize: this.treeWidth - give,
|
331
|
+
west__maxSize: this.treeWidth + give,
|
332
|
+
center__size: 'auto',
|
333
|
+
paneClass: 'ui-layout-pane',
|
334
|
+
resizerClass: 'ui-layout-resizer',
|
335
|
+
togglerClass: 'ui-layout-toggler',
|
336
|
+
onresize: function (name, $element) {
|
337
|
+
if ('center' === name) {
|
338
|
+
that.$_list.setGridWidth($element.width());
|
339
|
+
}
|
340
|
+
}
|
341
|
+
// , applyDefaultStyles: true
|
342
|
+
}).sizePane('west', this.treeWidth); // Fix for a ui-layout bug in
|
343
|
+
// chrome.
|
344
|
+
disableSelection(this.$_grid);
|
345
|
+
this._preloadImages();
|
346
|
+
|
347
|
+
jQuery(function () {
|
348
|
+
jQuery(window).resize(function () {
|
349
|
+
that._onWindowResized();
|
350
|
+
});
|
351
|
+
});
|
352
|
+
|
353
|
+
this.element.mousedown(function () {
|
354
|
+
jQuery.each(browserInstances, function (index) {
|
355
|
+
this.element.css('z-index', 99999 + index);
|
356
|
+
});
|
357
|
+
jQuery(this).css('z-index',
|
358
|
+
99999 + browserInstances.length + 1);
|
359
|
+
});
|
360
|
+
|
361
|
+
// IE7 Work-around: Otherwise tree will not be displayed correctly.
|
362
|
+
jQuery('.repository-browser-grid').css('width', this.maxWidth);
|
363
|
+
|
364
|
+
this.close();
|
365
|
+
|
366
|
+
// adapt the page size
|
367
|
+
this._adaptPageSize();
|
368
|
+
},
|
369
|
+
|
370
|
+
/**
|
371
|
+
* Sets the initial height of the repository browser using the minHeight maxHeight setting.
|
372
|
+
*/
|
373
|
+
_setInitialHeight: function () {
|
374
|
+
|
375
|
+
var overflow = this.maxHeight - jQuery(window).height() + this.verticalPadding;
|
376
|
+
var targetHeight = overflow > 0 ? Math.max(this.minHeight, this.maxHeight - overflow) : this.maxHeight;
|
377
|
+
|
378
|
+
this.$_grid.height(targetHeight);
|
379
|
+
},
|
380
|
+
|
381
|
+
/**
|
382
|
+
* Automatically resize the browser modal, constraining its dimensions
|
383
|
+
* between minWidth and maxWidth.
|
384
|
+
*/
|
385
|
+
_onWindowResized: function () {
|
386
|
+
var overflow = this.maxWidth - jQuery(window).width() + this.horizontalPadding, $header, $container;
|
387
|
+
var target = overflow > 0
|
388
|
+
? Math.max(this.minWidth, this.maxWidth - overflow)
|
389
|
+
: this.maxWidth;
|
390
|
+
this.element.width(target);
|
391
|
+
this.$_grid.width(target);
|
392
|
+
|
393
|
+
this._setInitialHeight();
|
394
|
+
|
395
|
+
// adapt tree
|
396
|
+
$header = this.$_grid.find('.repository-browser-tree-header');
|
397
|
+
this.$_tree.height(this.$_grid.height() - $header.outerHeight(true));
|
398
|
+
|
399
|
+
// adapt list
|
400
|
+
$container = this.$_grid.find('.ui-layout-center');
|
401
|
+
$container.find('.ui-jqgrid-bdiv').height(this.$_grid.height() - (
|
402
|
+
$container.find('.ui-jqgrid-titlebar').height() +
|
403
|
+
$container.find('.ui-jqgrid-hdiv').height() +
|
404
|
+
$container.find('.ui-jqgrid-pager').height()
|
405
|
+
));
|
406
|
+
|
407
|
+
// adapt paging
|
408
|
+
if (this._adaptPageSize()) {
|
409
|
+
// if the pagesize changed, we need to refresh the list
|
410
|
+
if (this._currentFolder) {
|
411
|
+
this._fetchItems(this._currentFolder);
|
412
|
+
}
|
413
|
+
}
|
414
|
+
},
|
415
|
+
|
416
|
+
/**
|
417
|
+
* Preload images used by the browser UI.
|
418
|
+
*/
|
419
|
+
_preloadImages: function () {
|
420
|
+
var path = this.rootPath + 'img/';
|
421
|
+
var imgs = [
|
422
|
+
'arrow-000-medium.png',
|
423
|
+
'arrow-180.png',
|
424
|
+
'arrow-315-medium.png',
|
425
|
+
'arrow-stop-180.png',
|
426
|
+
'arrow-stop.png',
|
427
|
+
'arrow.png',
|
428
|
+
'control-stop-square-small.png',
|
429
|
+
'folder-horizontal-open.png',
|
430
|
+
'folder-open.png',
|
431
|
+
'magnifier-left.png',
|
432
|
+
'page.png',
|
433
|
+
'picture.png',
|
434
|
+
'sort-alphabet-descending.png',
|
435
|
+
'sort-alphabet.png'
|
436
|
+
];
|
437
|
+
var j = imgs.length;
|
438
|
+
while (j) {
|
439
|
+
var img = document.createElement('img');
|
440
|
+
img.src = path + imgs[--j];
|
441
|
+
}
|
442
|
+
},
|
443
|
+
|
444
|
+
/**
|
445
|
+
* Process the received repository items.
|
446
|
+
*
|
447
|
+
* @param {Array.<object>} items List objects retrieved by repository
|
448
|
+
* manager.
|
449
|
+
* @param {TODO} metainfo
|
450
|
+
* @param {function} callback Function to receive the processed items.
|
451
|
+
*/
|
452
|
+
_processRepoResponse: function (items, metainfo, callback) {
|
453
|
+
// If the second parameter is a function, it is the callback;
|
454
|
+
if (typeof metainfo === 'function') {
|
455
|
+
callback = metainfo;
|
456
|
+
metainfo = undefined;
|
457
|
+
}
|
458
|
+
|
459
|
+
var repobrowser = this;
|
460
|
+
var collection = [];
|
461
|
+
var currentFolder = repobrowser._currentFolder
|
462
|
+
&& repobrowser._currentFolder.id;
|
463
|
+
var open = null;
|
464
|
+
var composite;
|
465
|
+
var i;
|
466
|
+
|
467
|
+
for (i = 0; i < items.length; i++) {
|
468
|
+
composite = createComposite(items[i], repobrowser);
|
469
|
+
collection.push(composite);
|
470
|
+
cacheWrite(repobrowser, composite.resource);
|
471
|
+
|
472
|
+
if (currentFolder === composite.resource.id) {
|
473
|
+
open = composite.resource;
|
474
|
+
}
|
475
|
+
}
|
476
|
+
|
477
|
+
callback(collection, metainfo);
|
478
|
+
|
479
|
+
if (open) {
|
480
|
+
window.setTimeout(function () {
|
481
|
+
repobrowser.$_tree.jstree(
|
482
|
+
'select_node',
|
483
|
+
'li[data-repo-obj="' + open.uid + '"]'
|
484
|
+
);
|
485
|
+
}, 0); // Is this timeout still necessary
|
486
|
+
}
|
487
|
+
},
|
488
|
+
|
489
|
+
/**
|
490
|
+
* Retrieve the root node, and its children.
|
491
|
+
*
|
492
|
+
* @param {function(object)} callback A function to receive the
|
493
|
+
* retrieved folder structure.
|
494
|
+
*/
|
495
|
+
_fetchRepoRoot: function (callback) {
|
496
|
+
if (!this._currentFolder) {
|
497
|
+
// get the selected folder
|
498
|
+
this._currentFolder = this.getSelectedFolder();
|
499
|
+
}
|
500
|
+
|
501
|
+
if (this.repositoryManager) {
|
502
|
+
this.getRepoChildren({
|
503
|
+
inFolderId: this.rootFolderId,
|
504
|
+
repositoryFilter: this.repositoryFilter
|
505
|
+
}, callback);
|
506
|
+
}
|
507
|
+
},
|
508
|
+
|
509
|
+
/**
|
510
|
+
* Retrieves a cached repository object that is associated with the
|
511
|
+
* given node element.
|
512
|
+
*
|
513
|
+
* @param {jQuery.<HTMLElement> $node The element whose corresponding
|
514
|
+
* repository object is to be
|
515
|
+
* retreived.
|
516
|
+
* @return {!Object} The cached repository object or null if none is
|
517
|
+
* found in the cache.
|
518
|
+
*/
|
519
|
+
_getObjectFromCache: function ($node) {
|
520
|
+
if ($node && $node.length) {
|
521
|
+
var id = $node.find('a:first').attr('data-repo-obj');
|
522
|
+
return this._cachedRepositoryObjects[id];
|
523
|
+
}
|
524
|
+
return null;
|
525
|
+
},
|
526
|
+
|
527
|
+
/**
|
528
|
+
* Queries the repository manager for items contained in folder that
|
529
|
+
* was clicked.
|
530
|
+
*
|
531
|
+
* @param {jQuery.<Event>} $event jQuery event object. Unused.
|
532
|
+
* @param {object} data An object containing information about the
|
533
|
+
* jstree node that was clicked.
|
534
|
+
*/
|
535
|
+
_onTreeNodeSelected: function ($event, data) {
|
536
|
+
// Suppress a bug in jsTree.
|
537
|
+
if (data.args[0].context) {
|
538
|
+
return;
|
539
|
+
}
|
540
|
+
|
541
|
+
var repobrowser = this;
|
542
|
+
var folder = cacheRead(repobrowser,
|
543
|
+
getIdFromTreeNode(data.rslt.obj));
|
544
|
+
|
545
|
+
if (folder) {
|
546
|
+
// Reset paging and search
|
547
|
+
repobrowser._pagingOffset = 0;
|
548
|
+
repobrowser._currentFolder = folder;
|
549
|
+
repobrowser._clearSearch();
|
550
|
+
repobrowser._fetchItems(folder);
|
551
|
+
repobrowser.folderSelected(folder);
|
552
|
+
}
|
553
|
+
},
|
554
|
+
|
555
|
+
/**
|
556
|
+
* Render and initialize a jstree instance for the given container
|
557
|
+
* element.
|
558
|
+
*
|
559
|
+
* @param {jQuery.<HTMLElement>} $container The element in which the
|
560
|
+
* jstree instance will be
|
561
|
+
* rendered.
|
562
|
+
* @return {jQuery.<HTMLElement>} $tree Element which has been
|
563
|
+
* initialized for jstree.
|
564
|
+
*/
|
565
|
+
_createTree: function ($container) {
|
566
|
+
var $tree = jQuery('<div class="repository-browser-tree">');
|
567
|
+
var $header = jQuery('<div class="repository-browser-tree-header' +
|
568
|
+
' repository-browser-grab-handle">' +
|
569
|
+
this._i18n('Repository Browser') + '</div>');
|
570
|
+
|
571
|
+
$container.append($header, $tree);
|
572
|
+
|
573
|
+
$tree.height(this.$_grid.height() - $header.outerHeight(true));
|
574
|
+
|
575
|
+
$tree.bind('loaded.jstree', function ($event, data) {
|
576
|
+
$(this).find('>ul>li:first').css('padding-top', 5);
|
577
|
+
// Because jstree `open_node' will add substree items to every
|
578
|
+
// item matched by the selector, we need to ensure that
|
579
|
+
// `open_node' is invoked for one item at a time.
|
580
|
+
$(this).find('li[rel="repository"]:first').each(
|
581
|
+
function (i, li) {
|
582
|
+
$tree.jstree('open_node', li);
|
583
|
+
});
|
584
|
+
});
|
585
|
+
|
586
|
+
var that = this;
|
587
|
+
|
588
|
+
// Bind the jsree select node event
|
589
|
+
$tree.bind('select_node.jstree', function ($event, data) {
|
590
|
+
that._onTreeNodeSelected($event, data);
|
591
|
+
});
|
592
|
+
|
593
|
+
// Bind the jsree open node event
|
594
|
+
$tree.bind('open_node.jstree', function ($event, data) {
|
595
|
+
that.folderOpened(data.rslt.obj);
|
596
|
+
});
|
597
|
+
|
598
|
+
// Bind the jsree close node event
|
599
|
+
$tree.bind('close_node.jstree', function ($event, data) {
|
600
|
+
that.folderClosed(data.rslt.obj);
|
601
|
+
});
|
602
|
+
|
603
|
+
$tree.jstree({
|
604
|
+
types: this.types,
|
605
|
+
rootFolderId: this.rootFolderId,
|
606
|
+
plugins: ['themes', 'json_data', 'ui', 'types'],
|
607
|
+
core: {animation: 250},
|
608
|
+
themes: {
|
609
|
+
url: this.rootPath + 'css/jstree.css',
|
610
|
+
dots: true,
|
611
|
+
icons: true,
|
612
|
+
theme: 'browser'
|
613
|
+
},
|
614
|
+
json_data: {
|
615
|
+
data: function (nodes, callback) {
|
616
|
+
if (that.repositoryManager) {
|
617
|
+
that.jstree_callback = callback;
|
618
|
+
that._fetchSubnodes(nodes, callback);
|
619
|
+
} else {
|
620
|
+
callback();
|
621
|
+
}
|
622
|
+
},
|
623
|
+
correct_state: true
|
624
|
+
},
|
625
|
+
ui: {select_limit: 1}
|
626
|
+
});
|
627
|
+
|
628
|
+
return $tree;
|
629
|
+
},
|
630
|
+
|
631
|
+
/**
|
632
|
+
* Creates a grid inside the given element. The grid provides panels
|
633
|
+
* in which we render the folder list tree, and a the folder items
|
634
|
+
* list.
|
635
|
+
*
|
636
|
+
* @param {jQuery.<HTMLElement>} $container A DOM element in which to
|
637
|
+
* render the grid.
|
638
|
+
* @return {jQuery.<HTMLElement} The grid element.
|
639
|
+
*/
|
640
|
+
_createGrid: function ($container) {
|
641
|
+
var $grid = jQuery(
|
642
|
+
'<div class="repository-browser-grid\
|
643
|
+
repository-browser-shadow\
|
644
|
+
repository-browser-rounded-top">\
|
645
|
+
<div class="ui-layout-west"></div>\
|
646
|
+
<div class="ui-layout-center"></div>\
|
647
|
+
</div>'
|
648
|
+
);
|
649
|
+
$container.append($grid);
|
650
|
+
return $grid;
|
651
|
+
},
|
652
|
+
|
653
|
+
/**
|
654
|
+
* Creates a table inwhich to render repository items.
|
655
|
+
*
|
656
|
+
* @param {jQuery.<HTMLElement>} $container A DOM element in which to
|
657
|
+
* render the list.
|
658
|
+
* @return {jQuery.<HTMLElement} The list element.
|
659
|
+
*/
|
660
|
+
_createList: function ($container) {
|
661
|
+
var $list = jQuery('<table id="repository-browser-list-' + (++uid)
|
662
|
+
+ '" class="repository-browser-list"></table>');
|
663
|
+
|
664
|
+
// This is a hidden utility column to help us with auto sorting.
|
665
|
+
var model = [{
|
666
|
+
name: 'id',
|
667
|
+
sorttype: 'int',
|
668
|
+
firstsortorder: 'asc',
|
669
|
+
hidden: true
|
670
|
+
}];
|
671
|
+
|
672
|
+
var names = [''];
|
673
|
+
|
674
|
+
jQuery.each(this.columns, function (key, value) {
|
675
|
+
names.push(value.title || ' ');
|
676
|
+
model.push({
|
677
|
+
name: key,
|
678
|
+
width: value.width,
|
679
|
+
sortable: value.sortable,
|
680
|
+
sorttype: value.sorttype,
|
681
|
+
resizable: value.resizable,
|
682
|
+
fixed: value.fixed
|
683
|
+
});
|
684
|
+
});
|
685
|
+
|
686
|
+
/*
|
687
|
+
* jqGrid requires that we use an id, despite what the
|
688
|
+
* documentation says
|
689
|
+
* (http://www.trirand.com/jqgridwiki/doku.php?id=wiki:pager&s[]=pager).
|
690
|
+
* We need a unique id, however, in order to distinguish pager
|
691
|
+
* elements for each browser instance.
|
692
|
+
*/
|
693
|
+
var pagerUID = 'repository-browser-list-page-' + (++uid);
|
694
|
+
$container.append($list, jQuery('<div id="' + pagerUID + '">'));
|
695
|
+
|
696
|
+
$list.jqGrid({
|
697
|
+
datatype: 'local',
|
698
|
+
width: $container.width(),
|
699
|
+
shrinkToFit: true,
|
700
|
+
colNames: names,
|
701
|
+
colModel: model,
|
702
|
+
caption: ' ',
|
703
|
+
altRows: true,
|
704
|
+
altclass: 'repository-browser-list-altrow',
|
705
|
+
resizeclass: 'repository-browser-list-resizable',
|
706
|
+
|
707
|
+
// http://www.trirand.com/jqgridwiki/doku.php?id=wiki:pager&s[]=pager
|
708
|
+
pager: '#' + pagerUID,
|
709
|
+
|
710
|
+
// # of records to view in the grid. Passed as parameter to url
|
711
|
+
// when retrieving data from server.
|
712
|
+
//rowNum: this.pageSize,
|
713
|
+
viewrecords: true,
|
714
|
+
|
715
|
+
// Event handlers:
|
716
|
+
// http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events
|
717
|
+
// Fires after click on [page button] and before populating the
|
718
|
+
// data.
|
719
|
+
onPaging: function (button) {},
|
720
|
+
|
721
|
+
// Called if the request fails.
|
722
|
+
loadError: function (xhr, status, error) {},
|
723
|
+
|
724
|
+
// Raised immediately after row was double clicked.
|
725
|
+
ondblClickRow: function (rowid, iRow, iCol, e) {},
|
726
|
+
|
727
|
+
// Fires after all the data is loaded into the grid and all
|
728
|
+
// other processes are complete.
|
729
|
+
gridComplete: function () {},
|
730
|
+
|
731
|
+
// Executed immediately after every server request.
|
732
|
+
loadComplete: function (data) {}
|
733
|
+
});
|
734
|
+
|
735
|
+
$container.find('.ui-jqgrid-bdiv').height(this.$_grid.height() - (
|
736
|
+
$container.find('.ui-jqgrid-titlebar').height() +
|
737
|
+
$container.find('.ui-jqgrid-hdiv').height() +
|
738
|
+
$container.find('.ui-jqgrid-pager').height()
|
739
|
+
));
|
740
|
+
|
741
|
+
var that = this;
|
742
|
+
|
743
|
+
$list.click(function () {
|
744
|
+
that.rowClicked.apply(that, arguments);
|
745
|
+
});
|
746
|
+
|
747
|
+
// Override jqGrid paging.
|
748
|
+
$container
|
749
|
+
.find('.ui-pg-button').unbind()
|
750
|
+
.find('>span.ui-icon').each(function () {
|
751
|
+
var dir = this.className.match(/ui\-icon\-seek\-([a-z]+)/)[1];
|
752
|
+
that._pagingBtns[dir] =
|
753
|
+
jQuery(this)
|
754
|
+
.parent()
|
755
|
+
.addClass('ui-state-disabled')
|
756
|
+
.click(function () {
|
757
|
+
if (!jQuery(this).hasClass('ui-state-disabled')) {
|
758
|
+
that._doPaging(dir);
|
759
|
+
}
|
760
|
+
});
|
761
|
+
});
|
762
|
+
|
763
|
+
// TODO: Implement this once repositories can handle it; hiding it
|
764
|
+
// for now.
|
765
|
+
$container.find('.ui-pg-input').parent().hide();
|
766
|
+
$container.find('.ui-separator').parent().css('opacity', 0).first().hide();
|
767
|
+
//$container.find('#repository-browser-list-pager-left').hide();
|
768
|
+
|
769
|
+
this._createTitlebar($container);
|
770
|
+
|
771
|
+
//this.$_grid.find('.loading').html('Loading...');
|
772
|
+
|
773
|
+
// Override jqGrid sorting.
|
774
|
+
var listProps = $list[0].p;
|
775
|
+
$container.find('.ui-jqgrid-view tr:first th div').each(function (i) {
|
776
|
+
if (false !== listProps.colModel[i].sortable) {
|
777
|
+
jQuery(this).css('cursor', 'pointer');
|
778
|
+
jQuery(this).unbind().click(function (event) {
|
779
|
+
event.stopPropagation();
|
780
|
+
that._sortList(listProps.colModel[i], this);
|
781
|
+
});
|
782
|
+
}
|
783
|
+
});
|
784
|
+
|
785
|
+
return $list;
|
786
|
+
},
|
787
|
+
|
788
|
+
/**
|
789
|
+
* Clear the search
|
790
|
+
*/
|
791
|
+
_clearSearch: function () {
|
792
|
+
var $searchField = this.$_grid.find('.repository-browser-search-field');
|
793
|
+
$searchField.val(this._prefilledValue).addClass('repository-browser-search-field-empty');
|
794
|
+
this._searchQuery = null;
|
795
|
+
},
|
796
|
+
|
797
|
+
_createTitlebar: function ($container) {
|
798
|
+
var $bar = $container.find('.ui-jqgrid-titlebar');
|
799
|
+
|
800
|
+
var $btns = jQuery(
|
801
|
+
'<div class="repository-browser-btns">\
|
802
|
+
<input type="text" class="repository-browser-search-field" />\
|
803
|
+
<span class="repository-browser-btn repository-browser-search-btn">\
|
804
|
+
<span class="repository-browser-search-icon"></span>\
|
805
|
+
</span>\
|
806
|
+
<span class="repository-browser-btn repository-browser-close-btn">' +
|
807
|
+
this._i18n('Close') +
|
808
|
+
'</span>\
|
809
|
+
<div class="repository-browser-clear"></div>\
|
810
|
+
</div>'
|
811
|
+
);
|
812
|
+
|
813
|
+
var that = this;
|
814
|
+
|
815
|
+
$bar.addClass('repository-browser-grab-handle').append($btns);
|
816
|
+
|
817
|
+
$bar.find('.repository-browser-search-btn')
|
818
|
+
.html(this._i18n('Search'))
|
819
|
+
.click(function () {
|
820
|
+
that._triggerSearch();
|
821
|
+
});
|
822
|
+
|
823
|
+
var $searchField = $bar.find('.repository-browser-search-field');
|
824
|
+
|
825
|
+
this._clearSearch();
|
826
|
+
|
827
|
+
$searchField.keypress(function (event) {
|
828
|
+
// On ENTER.
|
829
|
+
if (13 === event.keyCode) {
|
830
|
+
that._triggerSearch();
|
831
|
+
}
|
832
|
+
});
|
833
|
+
|
834
|
+
$searchField.focus(function () {
|
835
|
+
if (jQuery(this).val() === that._prefilledValue) {
|
836
|
+
jQuery(this)
|
837
|
+
.val('')
|
838
|
+
.removeClass('repository-browser-search-field-empty');
|
839
|
+
}
|
840
|
+
});
|
841
|
+
|
842
|
+
$searchField.blur(function () {
|
843
|
+
if (jQuery(this).val() === '') {
|
844
|
+
that._clearSearch();
|
845
|
+
}
|
846
|
+
});
|
847
|
+
|
848
|
+
$bar.find('.repository-browser-close-btn')
|
849
|
+
.click(function () {
|
850
|
+
that.close();
|
851
|
+
});
|
852
|
+
|
853
|
+
$bar.find('.repository-browser-btn')
|
854
|
+
.mousedown(function () {
|
855
|
+
jQuery(this).addClass('repository-browser-pressed');
|
856
|
+
})
|
857
|
+
.mouseup(function () {
|
858
|
+
jQuery(this).removeClass('repository-browser-pressed');
|
859
|
+
});
|
860
|
+
},
|
861
|
+
|
862
|
+
_triggerSearch: function () {
|
863
|
+
var $searchField = this.$_grid.find('input.repository-browser-search-field');
|
864
|
+
var searchValue = $searchField.val();
|
865
|
+
|
866
|
+
if (jQuery($searchField).hasClass('aloha-browser-search-field-empty') ||
|
867
|
+
'' === searchValue) {
|
868
|
+
searchValue = null;
|
869
|
+
}
|
870
|
+
this._pagingOffset = 0;
|
871
|
+
this._searchQuery = searchValue;
|
872
|
+
this._fetchItems(this._currentFolder);
|
873
|
+
},
|
874
|
+
|
875
|
+
/**
|
876
|
+
* TODO: Fix this so that sorting does toggle between desc and asc when
|
877
|
+
* you click on a column on which we were not sorting.
|
878
|
+
*/
|
879
|
+
_sortList: function (columnModel, element){
|
880
|
+
// Reset sort properties in all column headers.
|
881
|
+
this.$_grid.find('span.ui-grid-ico-sort').addClass('ui-state-disabled');
|
882
|
+
|
883
|
+
columnModel.sortorder = ('asc' === columnModel.sortorder)
|
884
|
+
? 'desc'
|
885
|
+
: 'asc';
|
886
|
+
|
887
|
+
jQuery(element)
|
888
|
+
.find('span.s-ico').show()
|
889
|
+
.find('.ui-icon-' + columnModel.sortorder)
|
890
|
+
.removeClass('ui-state-disabled');
|
891
|
+
|
892
|
+
this._setSortOrder(columnModel.name, columnModel.sortorder);
|
893
|
+
this._fetchItems(this._currentFolder);
|
894
|
+
},
|
895
|
+
|
896
|
+
_doPaging: function (dir) {
|
897
|
+
switch (dir) {
|
898
|
+
case 'first':
|
899
|
+
this._pagingOffset = 0;
|
900
|
+
break;
|
901
|
+
case 'end':
|
902
|
+
if ((this._pagingCount % this.pageSize) === 0) {
|
903
|
+
// item count is exactly divisible by page size
|
904
|
+
this._pagingOffset = this._pagingCount - this.pageSize;
|
905
|
+
} else {
|
906
|
+
this._pagingOffset = this._pagingCount - (this._pagingCount % this.pageSize);
|
907
|
+
}
|
908
|
+
break;
|
909
|
+
case 'next':
|
910
|
+
this._pagingOffset += this.pageSize;
|
911
|
+
break;
|
912
|
+
case 'prev':
|
913
|
+
this._pagingOffset -= this.pageSize;
|
914
|
+
// avoid "ot of bounds" situation
|
915
|
+
if (this._pagingOffset < 0) {
|
916
|
+
this._pagingOffset = 0;
|
917
|
+
}
|
918
|
+
break;
|
919
|
+
}
|
920
|
+
this._fetchItems(this._currentFolder);
|
921
|
+
},
|
922
|
+
|
923
|
+
/**
|
924
|
+
* Adds new sort fields into the _orderBy array. If a field already
|
925
|
+
* exists, it will be spliced from where it is and unshifted to the end
|
926
|
+
* of the array.
|
927
|
+
*/
|
928
|
+
_setSortOrder: function (by, order) {
|
929
|
+
var sortItem = {};
|
930
|
+
var isFound = false;
|
931
|
+
var orderBy = this._orderBy || [];
|
932
|
+
var orderItem;
|
933
|
+
var field;
|
934
|
+
var i;
|
935
|
+
sortItem[by] = order || 'asc';
|
936
|
+
|
937
|
+
for (i = 0; i < orderBy.length; ++i) {
|
938
|
+
orderItem = orderBy[i];
|
939
|
+
|
940
|
+
for (field in orderItem) {
|
941
|
+
if (orderItem.hasOwnProperty(field)) {
|
942
|
+
if (field === by) {
|
943
|
+
orderBy.splice(i, 1);
|
944
|
+
orderBy.unshift(sortItem);
|
945
|
+
isFound = true;
|
946
|
+
break;
|
947
|
+
}
|
948
|
+
}
|
949
|
+
}
|
950
|
+
|
951
|
+
if (isFound) {
|
952
|
+
break;
|
953
|
+
}
|
954
|
+
}
|
955
|
+
|
956
|
+
if (isFound) {
|
957
|
+
orderBy.unshift(sortItem);
|
958
|
+
}
|
959
|
+
|
960
|
+
this._orderBy = orderBy;
|
961
|
+
},
|
962
|
+
|
963
|
+
_listItems: function (items) {
|
964
|
+
var $list = this.$_list.clearGridData();
|
965
|
+
var i;
|
966
|
+
var obj;
|
967
|
+
for (i = 0; i < items.length; i++) {
|
968
|
+
obj = items[i].resource;
|
969
|
+
$list.addRowData(
|
970
|
+
obj.uid,
|
971
|
+
jQuery.extend({id: obj.id}, this.renderRowCols(obj))
|
972
|
+
);
|
973
|
+
}
|
974
|
+
},
|
975
|
+
|
976
|
+
/**
|
977
|
+
* Handle repository timeouts
|
978
|
+
*/
|
979
|
+
handleTimeout: function () {
|
980
|
+
},
|
981
|
+
|
982
|
+
_processItems: function (data, metainfo) {
|
983
|
+
// If the total number of items is known, we can calculate the
|
984
|
+
// number of pages.
|
985
|
+
this._pagingCount = (metainfo && jQuery.isNumeric(metainfo.numItems))
|
986
|
+
? metainfo.numItems
|
987
|
+
: null; // TODO: should we use undefined?
|
988
|
+
|
989
|
+
this.$_grid.find('.loading').hide();
|
990
|
+
this.$_list.show();
|
991
|
+
this._listItems(data);
|
992
|
+
|
993
|
+
var CSS_DISABLED = 'ui-state-disabled';
|
994
|
+
var $btns = this._pagingBtns;
|
995
|
+
|
996
|
+
if (this._pagingOffset <= 0) {
|
997
|
+
$btns.first.add($btns.prev).addClass(CSS_DISABLED);
|
998
|
+
} else {
|
999
|
+
$btns.first.add($btns.prev).removeClass(CSS_DISABLED);
|
1000
|
+
}
|
1001
|
+
|
1002
|
+
if (!jQuery.isNumeric(this._pagingCount)) {
|
1003
|
+
$btns.end.addClass(CSS_DISABLED);
|
1004
|
+
|
1005
|
+
if (data.length <= this.pageSize) {
|
1006
|
+
$btns.next.addClass(CSS_DISABLED);
|
1007
|
+
} else {
|
1008
|
+
$btns.next.removeClass(CSS_DISABLED);
|
1009
|
+
}
|
1010
|
+
} else if (this._pagingOffset + this.pageSize >= this._pagingCount) {
|
1011
|
+
$btns.end.add($btns.next).addClass(CSS_DISABLED);
|
1012
|
+
} else {
|
1013
|
+
$btns.end.add($btns.next).removeClass(CSS_DISABLED);
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
var from;
|
1017
|
+
var to;
|
1018
|
+
|
1019
|
+
if (0 === data.length && 0 === this._pagingOffset) {
|
1020
|
+
from = 0;
|
1021
|
+
to = 0;
|
1022
|
+
} else {
|
1023
|
+
from = this._pagingOffset + 1;
|
1024
|
+
to = from + data.length - 1;
|
1025
|
+
}
|
1026
|
+
|
1027
|
+
this.$_grid.find('.ui-paging-info').html(
|
1028
|
+
this._i18n('Viewing') + ' ' +
|
1029
|
+
(from) + ' - ' +
|
1030
|
+
(to) + ' ' + this._i18n('of') + ' ' +
|
1031
|
+
(jQuery.isNumeric(this._pagingCount)
|
1032
|
+
? this._pagingCount : this._i18n('numerous'))
|
1033
|
+
);
|
1034
|
+
|
1035
|
+
// when the repository manager reports a timeout, we handle it
|
1036
|
+
if (metainfo && metainfo.timeout) {
|
1037
|
+
this.handleTimeout();
|
1038
|
+
}
|
1039
|
+
},
|
1040
|
+
|
1041
|
+
_createOverlay: function () {
|
1042
|
+
// We only want one overlay element.
|
1043
|
+
if (0 === jQuery('.repository-browser-modal-overlay').length) {
|
1044
|
+
jQuery('body').append(
|
1045
|
+
'<div class="repository-browser-modal-overlay" ' +
|
1046
|
+
'style="top: -99999px; z-index: 99999;"></div>');
|
1047
|
+
}
|
1048
|
+
|
1049
|
+
var that = this;
|
1050
|
+
|
1051
|
+
// Register a close procedure for each browser instance.
|
1052
|
+
jQuery('.repository-browser-modal-overlay').click(function () {
|
1053
|
+
that.close();
|
1054
|
+
});
|
1055
|
+
|
1056
|
+
var $container = jQuery(
|
1057
|
+
'<div class="repository-browser-modal-window"' +
|
1058
|
+
' style="top: -99999px; z-index: 99999;">');
|
1059
|
+
|
1060
|
+
jQuery('body').append($container);
|
1061
|
+
|
1062
|
+
return $container;
|
1063
|
+
},
|
1064
|
+
|
1065
|
+
_fetchSubnodes: function (nodes, callback) {
|
1066
|
+
if (-1 === nodes) {
|
1067
|
+
this._fetchRepoRoot(callback);
|
1068
|
+
} else {
|
1069
|
+
var i;
|
1070
|
+
for (i = 0; i < nodes.length; i++) {
|
1071
|
+
var obj = this._getObjectFromCache(nodes.eq(i));
|
1072
|
+
if (obj) {
|
1073
|
+
this.fetchChildren(obj, callback);
|
1074
|
+
}
|
1075
|
+
}
|
1076
|
+
}
|
1077
|
+
},
|
1078
|
+
|
1079
|
+
// ====================================================================
|
1080
|
+
// API Methods
|
1081
|
+
// ====================================================================
|
1082
|
+
|
1083
|
+
/**
|
1084
|
+
* Get child folders of a specified repository node.
|
1085
|
+
*
|
1086
|
+
* @param {object} params An object containing parameters with which to
|
1087
|
+
* fetch the objects.
|
1088
|
+
* @param {function} callback Function to receive fetched items.
|
1089
|
+
*/
|
1090
|
+
getRepoChildren: function (params, callback) {
|
1091
|
+
if (this.repositoryManager) {
|
1092
|
+
var that = this;
|
1093
|
+
this.repositoryManager.getChildren(params, function (items) {
|
1094
|
+
that._processRepoResponse(items, callback);
|
1095
|
+
});
|
1096
|
+
}
|
1097
|
+
},
|
1098
|
+
|
1099
|
+
/**
|
1100
|
+
* Query repositories for items matching the given parameters.
|
1101
|
+
*
|
1102
|
+
* @param {object} params An object containing parameters with which to
|
1103
|
+
* fetch the objects.
|
1104
|
+
* @param {function} callback Function to receive fetched items.
|
1105
|
+
*/
|
1106
|
+
queryRepository: function (params, callback) {
|
1107
|
+
if (this.repositoryManager) {
|
1108
|
+
var that = this;
|
1109
|
+
this.repositoryManager.query(params, function (response) {
|
1110
|
+
that._processRepoResponse(
|
1111
|
+
(response.results > 0) ? response.items : [], {
|
1112
|
+
numItems: response.numItems,
|
1113
|
+
hasMoreItems: response.hasMoreItems,
|
1114
|
+
timeout: response.timeout
|
1115
|
+
}, callback
|
1116
|
+
);
|
1117
|
+
});
|
1118
|
+
}
|
1119
|
+
},
|
1120
|
+
|
1121
|
+
/**
|
1122
|
+
* Builds a row that an be rendered in the grid layout from the given
|
1123
|
+
* repository item.
|
1124
|
+
*
|
1125
|
+
* @param {object} item The repository resource to render.
|
1126
|
+
* @returns {object} An object representing the rendered row such that
|
1127
|
+
* it can be used to populate the grid layout.
|
1128
|
+
*/
|
1129
|
+
renderRowCols: function (item) {
|
1130
|
+
var row = {};
|
1131
|
+
|
1132
|
+
jQuery.each(this.columns, function (name, value) {
|
1133
|
+
switch (name) {
|
1134
|
+
case 'icon':
|
1135
|
+
row.icon = '<div class="repository-browser-icon '
|
1136
|
+
+ 'repository-browser-icon-' + item.type
|
1137
|
+
+ '"></div>';
|
1138
|
+
break;
|
1139
|
+
default:
|
1140
|
+
row[name] = item[name] || '--';
|
1141
|
+
}
|
1142
|
+
});
|
1143
|
+
|
1144
|
+
return row;
|
1145
|
+
},
|
1146
|
+
|
1147
|
+
/**
|
1148
|
+
* User should implement this according to their needs.
|
1149
|
+
*
|
1150
|
+
* @param {object} item Repository resource for a row.
|
1151
|
+
*/
|
1152
|
+
onSelect: function (item) {},
|
1153
|
+
|
1154
|
+
/**
|
1155
|
+
* Fetch an object's children if we haven't already done so.
|
1156
|
+
*
|
1157
|
+
* @param {object} obj
|
1158
|
+
* @param {function} callback A function to receive the fetched
|
1159
|
+
* children object.
|
1160
|
+
*/
|
1161
|
+
fetchChildren: function (obj, callback) {
|
1162
|
+
if (true === obj.hasMoreItems || 'folder' === obj.baseType) {
|
1163
|
+
if (false === obj.loaded) {
|
1164
|
+
var that = this;
|
1165
|
+
this.getRepoChildren({
|
1166
|
+
inFolderId: obj.id,
|
1167
|
+
repositoryId: obj.repositoryId
|
1168
|
+
}, function (data) {
|
1169
|
+
that._cachedRepositoryObjects[obj.uid].loaded = true;
|
1170
|
+
if (typeof callback === 'function') {
|
1171
|
+
callback(data);
|
1172
|
+
}
|
1173
|
+
});
|
1174
|
+
}
|
1175
|
+
}
|
1176
|
+
},
|
1177
|
+
|
1178
|
+
/**
|
1179
|
+
* Handles click events on rows.
|
1180
|
+
*
|
1181
|
+
* @param {jQuery.<Event>} jQuery event object.
|
1182
|
+
* @return {jQuery.<HTMLElement>} The clicked row of null.
|
1183
|
+
*/
|
1184
|
+
rowClicked: function ($event) {
|
1185
|
+
var row = jQuery($event.target).parent('tr');
|
1186
|
+
|
1187
|
+
if (row.length) {
|
1188
|
+
var uid = row.attr('id');
|
1189
|
+
var item = this._cachedRepositoryObjects[uid];
|
1190
|
+
this.onSelect(item);
|
1191
|
+
return item;
|
1192
|
+
}
|
1193
|
+
|
1194
|
+
return null;
|
1195
|
+
},
|
1196
|
+
|
1197
|
+
getFieldOfHeader: function ($th) {
|
1198
|
+
return $th.find('div.ui-jqgrid-sortable').attr('id').replace('jqgh_', '');
|
1199
|
+
},
|
1200
|
+
|
1201
|
+
_fetchItems: function (folder) {
|
1202
|
+
if (!folder) {
|
1203
|
+
return;
|
1204
|
+
}
|
1205
|
+
|
1206
|
+
// When searching, we do this recursively.
|
1207
|
+
var recursive = (typeof this._searchQuery === 'string');
|
1208
|
+
|
1209
|
+
this.$_list.setCaption((typeof this._searchQuery === 'string')
|
1210
|
+
? this._i18n('Searching for') + ' "' + this._searchQuery + '" ' +
|
1211
|
+
this._i18n('in') + ' ' + folder.name
|
1212
|
+
: this._i18n('Browsing') + ': ' + folder.name);
|
1213
|
+
|
1214
|
+
this.$_list.hide();
|
1215
|
+
this.$_grid.find('.loading').show();
|
1216
|
+
|
1217
|
+
var that = this;
|
1218
|
+
|
1219
|
+
this.queryRepository({
|
1220
|
+
repositoryId: folder.repositoryId,
|
1221
|
+
inFolderId: folder.id,
|
1222
|
+
queryString: this._searchQuery,
|
1223
|
+
orderBy: this._orderBy,
|
1224
|
+
skipCount: this._pagingOffset,
|
1225
|
+
maxItems: this.pageSize,
|
1226
|
+
objectTypeFilter: this.objectTypeFilter,
|
1227
|
+
renditionFilter: this.renditionFilter,
|
1228
|
+
filter: this.filter,
|
1229
|
+
recursive: recursive
|
1230
|
+
}, function (data, metainfo) {
|
1231
|
+
that._processItems(data, metainfo);
|
1232
|
+
});
|
1233
|
+
},
|
1234
|
+
|
1235
|
+
setObjectTypeFilter: function (otf) {
|
1236
|
+
this.objectTypeFilter = (typeof otf === 'string') ? [otf] : otf;
|
1237
|
+
},
|
1238
|
+
|
1239
|
+
getObjectTypeFilter: function () {
|
1240
|
+
return this.objectTypeFilter;
|
1241
|
+
},
|
1242
|
+
|
1243
|
+
show: function () {
|
1244
|
+
this.open();
|
1245
|
+
},
|
1246
|
+
|
1247
|
+
open: function () {
|
1248
|
+
if (this._isOpened) {
|
1249
|
+
return;
|
1250
|
+
}
|
1251
|
+
|
1252
|
+
this._isOpened = true;
|
1253
|
+
var $element = this.element;
|
1254
|
+
|
1255
|
+
if (this.isFloating) {
|
1256
|
+
//$element.find('.repository-browser-close-btn').show();
|
1257
|
+
jQuery('.repository-browser-modal-overlay')
|
1258
|
+
.stop()
|
1259
|
+
.css({top: 0, left: 0})
|
1260
|
+
.show();
|
1261
|
+
|
1262
|
+
$element.stop().show();
|
1263
|
+
|
1264
|
+
// recalculate sizes
|
1265
|
+
this._onWindowResized();
|
1266
|
+
this.$_grid.resize();
|
1267
|
+
|
1268
|
+
var win = jQuery(window);
|
1269
|
+
|
1270
|
+
$element.css({
|
1271
|
+
left: this.horizontalPadding / 2,
|
1272
|
+
top: this.verticalPadding / 2
|
1273
|
+
}).draggable({
|
1274
|
+
handle: $element.find('.repository-browser-grab-handle')
|
1275
|
+
});
|
1276
|
+
|
1277
|
+
// Wake-up animation.
|
1278
|
+
this.$_grid.css({
|
1279
|
+
marginTop: 0,
|
1280
|
+
opacity: 0
|
1281
|
+
}).animate({
|
1282
|
+
marginTop: 0,
|
1283
|
+
opacity: 1
|
1284
|
+
}, 1500, 'easeOutExpo', function () {
|
1285
|
+
// Disable filter to prevent IE<=8 filter bug.
|
1286
|
+
if (jQuery.browser.msie) {
|
1287
|
+
jQuery(this).add($element).css(
|
1288
|
+
'filter',
|
1289
|
+
'progid:DXImageTransform.Microsoft.gradient(enabled=false)'
|
1290
|
+
);
|
1291
|
+
}
|
1292
|
+
});
|
1293
|
+
} else {
|
1294
|
+
$element.stop().show().css({
|
1295
|
+
opacity: 1,
|
1296
|
+
filter: 'progid:DXImageTransform.Microsoft.gradient(enabled=false)'
|
1297
|
+
});
|
1298
|
+
this._onWindowResized();
|
1299
|
+
this.$_grid.resize();
|
1300
|
+
}
|
1301
|
+
|
1302
|
+
++numOpenedBrowsers;
|
1303
|
+
},
|
1304
|
+
|
1305
|
+
close: function () {
|
1306
|
+
if (!this._isOpened) {
|
1307
|
+
return;
|
1308
|
+
}
|
1309
|
+
|
1310
|
+
this._isOpened = false;
|
1311
|
+
|
1312
|
+
this.element.fadeOut(250, function () {
|
1313
|
+
jQuery(this).css('top', 0).hide();
|
1314
|
+
if (0 === numOpenedBrowsers || 0 === --numOpenedBrowsers) {
|
1315
|
+
jQuery('.repository-browser-modal-overlay').hide();
|
1316
|
+
}
|
1317
|
+
});
|
1318
|
+
},
|
1319
|
+
|
1320
|
+
/**
|
1321
|
+
* Refreshes the browser.
|
1322
|
+
* TODO: Should we also refresh the tree?
|
1323
|
+
*/
|
1324
|
+
refresh: function () {
|
1325
|
+
// Refresh the list, if we have a current folder.
|
1326
|
+
if (this._currentFolder) {
|
1327
|
+
this._fetchItems(this._currentFolder);
|
1328
|
+
}
|
1329
|
+
},
|
1330
|
+
|
1331
|
+
/**
|
1332
|
+
* Gets called when a folder in the tree is opened.
|
1333
|
+
*
|
1334
|
+
* @param {jQuery.<HTMLElement>} $node Tree node.
|
1335
|
+
*/
|
1336
|
+
folderOpened: function($node) {
|
1337
|
+
var repobrowser = this;
|
1338
|
+
var folder = cacheRead(repobrowser, getIdFromTreeNode($node));
|
1339
|
+
if (folder) {
|
1340
|
+
repobrowser.repositoryManager.folderOpened(folder);
|
1341
|
+
}
|
1342
|
+
},
|
1343
|
+
|
1344
|
+
/**
|
1345
|
+
* This function gets called when a folder in the tree is closed
|
1346
|
+
*
|
1347
|
+
* @param {object} obj folder data object
|
1348
|
+
*/
|
1349
|
+
folderClosed: function(obj) {
|
1350
|
+
var folder = this._getObjectFromCache(obj);
|
1351
|
+
|
1352
|
+
if (folder) {
|
1353
|
+
if (this.repositoryManager) {
|
1354
|
+
this.repositoryManager.folderClosed(folder);
|
1355
|
+
}
|
1356
|
+
}
|
1357
|
+
},
|
1358
|
+
|
1359
|
+
/**
|
1360
|
+
* This function gets called when a folder in the tree is selected
|
1361
|
+
*
|
1362
|
+
* @param {object} obj folder data object
|
1363
|
+
*/
|
1364
|
+
folderSelected: function(obj) {
|
1365
|
+
if (this.repositoryManager) {
|
1366
|
+
this.repositoryManager.folderSelected(obj);
|
1367
|
+
}
|
1368
|
+
},
|
1369
|
+
|
1370
|
+
/**
|
1371
|
+
* Get the selected folder
|
1372
|
+
* @return {object} selected folder or undefined
|
1373
|
+
*/
|
1374
|
+
getSelectedFolder: function () {
|
1375
|
+
if (this.repositoryManager) {
|
1376
|
+
if (typeof this.repositoryManager.getSelectedFolder === 'function') {
|
1377
|
+
return this.repositoryManager.getSelectedFolder();
|
1378
|
+
}
|
1379
|
+
}
|
1380
|
+
},
|
1381
|
+
|
1382
|
+
/**
|
1383
|
+
* Adapt the page size.
|
1384
|
+
* @return true if the page size was actually changed, false if not
|
1385
|
+
*/
|
1386
|
+
_adaptPageSize: function () {
|
1387
|
+
var listHeight, newPageSize, container;
|
1388
|
+
|
1389
|
+
// if this is off, don't do anything
|
1390
|
+
if (!this.adaptPageSize || !this.$_list || !this.rowHeight) {
|
1391
|
+
return false;
|
1392
|
+
}
|
1393
|
+
|
1394
|
+
// get the current height of the container
|
1395
|
+
container = this.$_grid.find('.ui-jqgrid-bdiv');
|
1396
|
+
// reduce by 20 px to leave place for a scrollbar
|
1397
|
+
listHeight = container.innerHeight() - 20;
|
1398
|
+
|
1399
|
+
// do the math
|
1400
|
+
if (listHeight) {
|
1401
|
+
newPageSize = Math.floor(listHeight / this.rowHeight);
|
1402
|
+
if (newPageSize <= 0) {
|
1403
|
+
newPageSize = 1;
|
1404
|
+
}
|
1405
|
+
if (newPageSize !== this.pageSize) {
|
1406
|
+
this.pageSize = newPageSize;
|
1407
|
+
return true;
|
1408
|
+
} else {
|
1409
|
+
return false;
|
1410
|
+
}
|
1411
|
+
} else {
|
1412
|
+
return false;
|
1413
|
+
}
|
1414
|
+
}
|
1415
|
+
});
|
1416
|
+
|
1417
|
+
return RepositoryBrowser;
|
1418
|
+
});
|
1419
|
+
define('repository-browser-i18n-de', [], function () {
|
1420
|
+
'use strict';
|
1421
|
+
return {
|
1422
|
+
'Browsing': 'Durchsuchen',
|
1423
|
+
'Close': 'SchlieÃen',
|
1424
|
+
'in': 'in',
|
1425
|
+
'Input search text...': 'Suchtext einfügen...',
|
1426
|
+
'numerous': 'zahlreiche',
|
1427
|
+
'of': 'von',
|
1428
|
+
'Repository Browser': 'Repository Browser',
|
1429
|
+
'Search': 'Suchen',
|
1430
|
+
'Searching for': 'Suche nach',
|
1431
|
+
'Viewing': 'Anzeige',
|
1432
|
+
'button.switch-metaview.tooltip': 'Zwischen Metaansicht und normaler Ansicht umschalten'
|
1433
|
+
};
|
1434
|
+
});
|
1435
|
+
define('repository-browser-i18n-en', [], function () {
|
1436
|
+
'use strict';
|
1437
|
+
return {
|
1438
|
+
'Browsing': 'Browsing',
|
1439
|
+
'Close': 'Close',
|
1440
|
+
'in': 'in',
|
1441
|
+
'Input search text...': 'Input search text...',
|
1442
|
+
'numerous': 'numerous',
|
1443
|
+
'of': 'of',
|
1444
|
+
'Repository Browser': 'Repository Browser',
|
1445
|
+
'Search': 'Search',
|
1446
|
+
'Searching for': 'Searching for',
|
1447
|
+
'Viewing': 'Viewing',
|
1448
|
+
'button.switch-metaview.tooltip': 'Switch between meta and normal view'
|
1449
|
+
};
|
1450
|
+
});
|