goldencobra 1.4.27 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.markdown +112 -41
- data/app/adapters/goldencobra/article_adapter.rb +75 -0
- data/app/assets/images/goldencobra/chosen-sprite@2x.png +0 -0
- data/app/assets/images/goldencobra/lastnode.png +0 -0
- data/app/assets/images/goldencobra/node.png +0 -0
- data/app/assets/images/goldencobra/vline.png +0 -0
- data/app/assets/javascripts/active_admin.js +1 -0
- data/app/assets/javascripts/goldencobra/active_admin.js +189 -202
- data/app/assets/javascripts/goldencobra/application.js.erb +86 -0
- data/app/assets/javascripts/goldencobra/chosen.jquery.js +1257 -0
- data/app/assets/javascripts/goldencobra/components.js +1 -0
- data/app/assets/javascripts/goldencobra/components/navigation_menu.js +191 -0
- data/app/assets/javascripts/goldencobra/components/overviewTree.js +156 -0
- data/app/assets/javascripts/goldencobra/components/select.js +43 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/adapters/jquery.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/ckeditor.js +996 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/ckeditor_inits.js +25 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/config.js +45 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/contents.css +132 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/lang/de.js +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/lang/en-gb.js +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/lang/en.js +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/about/dialogs/about.js +7 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/autogrow/plugin.js +221 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/clipboard/dialogs/paste.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/dialogadvtab/plugin.js +196 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/icons.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/icons_hidpi.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/image/dialogs/image.js +44 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/image/images/noimage.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/link/dialogs/anchor.js +7 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/link/dialogs/link.js +26 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/link/images/anchor.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/pastefromword/filter/default.js +32 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/scayt/LICENSE.md +28 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/scayt/README.md +25 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/scayt/dialogs/options.js +18 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/af.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/da.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/eu.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ko.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/lt.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/zh.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/table/dialogs/table.js +21 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/tabletools/dialogs/tableCell.js +17 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/LICENSE.md +28 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/README.md +25 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/dialogs/ciframe.html +66 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/dialogs/wsc.js +92 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/dialog.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor_ie.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor_iequirks.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/icons.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/icons_hidpi.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/arrow.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/close.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/lock-open.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/lock.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/refresh.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/spinner.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/readme.md +49 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/styles.js +111 -0
- data/app/assets/javascripts/goldencobra/html_editors/general.js +32 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/jquery.tinymce_v3.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/langs/de.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/langs/en.js +1 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/css/advhr.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/js/rule.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/rule.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/css/advimage.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/image.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/img/sample.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/advimage/js/image.js +464 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlink/css/advlink.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlink/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlink/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/advlink/js/advlink.js +543 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlink/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlink/link.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlist/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlist/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autolink/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autolink/editor_plugin_src.js +184 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autoresize/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autoresize/editor_plugin_src.js +119 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autosave/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autosave/editor_plugin_src.js +433 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/bbcode/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/bbcode/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/contextmenu/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/contextmenu/editor_plugin_src.js +163 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/directionality/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/directionality/editor_plugin_src.js +85 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/emotions/emotions.htm +42 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-cool.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-cry.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-embarassed.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-frown.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-innocent.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-kiss.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-laughing.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-money-mouth.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-sealed.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-smile.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-surprised.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-tongue-out.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-undecided.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-wink.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-yell.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/js/emotions.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/dialog.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/example/editor_plugin_src.js +84 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/img/example.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/js/dialog.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/langs/en.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example_dependency/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example_dependency/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/css/fullpage.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/fullpage.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/js/fullpage.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/fullscreen/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/fullscreen/editor_plugin_src.js +234 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/fullscreen/fullscreen.htm +117 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/iespell/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/iespell/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/inlinepopups/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/inlinepopups/editor_plugin_src.js +699 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/window.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/template.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/insertdatetime/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/insertdatetime/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/layer/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/layer/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/legacyoutput/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/legacyoutput/editor_plugin_src.js +139 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/lists/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/lists/editor_plugin_src.js +955 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/media/css/media.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/media/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/media/editor_plugin_src.js +898 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/media/js/embed.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/media/js/media.js +513 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/media/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/media/media.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/media/moxieplayer.swf +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/nonbreaking/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/nonbreaking/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/noneditable/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/noneditable/editor_plugin_src.js +537 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/pagebreak/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/pagebreak/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/paste/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/paste/editor_plugin_src.js +887 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/paste/js/pastetext.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/paste/js/pasteword.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/paste/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/paste/pastetext.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/paste/pasteword.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/preview/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/preview/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/preview/example.html +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/preview/jscripts/embed.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/preview/preview.html +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/print/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/print/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/save/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/save/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/searchreplace/css/searchreplace.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/searchreplace/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/searchreplace/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/searchreplace/js/searchreplace.js +152 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/searchreplace/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/searchreplace/searchreplace.htm +100 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/spellchecker/css/content.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/spellchecker/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/spellchecker/editor_plugin_src.js +471 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/spellchecker/img/wline.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/css/props.css +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/editor_plugin_src.js +71 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/js/props.js +709 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/langs/en_dlg.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/props.htm +845 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/readme.txt +19 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/tabfocus/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/tabfocus/editor_plugin_src.js +122 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/cell.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/css/cell.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/css/row.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/css/table.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/editor_plugin_src.js +1456 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/js/cell.js +319 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/js/merge_cells.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/js/row.js +254 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/js/table.js +501 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/merge_cells.htm +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/row.htm +158 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/table.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/blank.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/css/template.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/js/template.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/template.htm +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/visualblocks/css/visualblocks.css +21 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/visualblocks/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/visualblocks/editor_plugin_src.js +63 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/visualchars/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/visualchars/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/wordcount/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/wordcount/editor_plugin_src.js +122 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/abbr.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/acronym.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/attributes.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/cite.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/css/attributes.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/css/popup.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/del.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/ins.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/abbr.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/acronym.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/attributes.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/cite.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/del.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/element_common.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/ins.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/about.htm +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/anchor.htm +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/charmap.htm +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/color_picker.htm +70 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/editor_template.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/editor_template_src.js +1490 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/image.htm +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/colorpicker.jpg +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/flash.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/img/icons.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/iframe.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/pagebreak.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/quicktime.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/realmedia.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/shockwave.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/trans.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/video.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/windowsmedia.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/js/about.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/js/anchor.js +56 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/js/charmap.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/js/color_picker.js +345 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/js/image.js +253 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/js/link.js +159 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/js/source_editor.js +78 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/langs/de.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/langs/de_dlg.js +1 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/langs/en.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/langs/en_dlg.js +1 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/link.htm +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/shortcuts.htm +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/content.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/default/dialog.css +118 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/buttons.png +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/items.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/menu_check.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/progress.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/tabs.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/default/ui.css +219 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/highcontrast/content.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/highcontrast/dialog.css +106 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/highcontrast/ui.css +106 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/content.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/o2k7/dialog.css +118 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/o2k7/ui.css +222 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/ui_black.css +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/ui_silver.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/source_editor.htm +25 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/editor_template.js +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/editor_template_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/img/icons.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/simple/langs/de.js +1 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/langs/en.js +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/skins/default/content.css +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/skins/default/ui.css +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/skins/o2k7/content.css +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/skins/o2k7/img/button_bg.png +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/skins/o2k7/ui.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/tiny_mce_popup.js +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/tiny_mce_src.js +17942 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/tinymce_v3.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/tinymce_v3_inits.js +62 -0
- data/app/assets/javascripts/goldencobra/{utils → html_editors/tinymce_v3/utils}/editable_selects.js +0 -0
- data/app/assets/javascripts/goldencobra/{utils → html_editors/tinymce_v3/utils}/form_utils.js +0 -0
- data/app/assets/javascripts/goldencobra/{utils → html_editors/tinymce_v3/utils}/mctabs.js +0 -0
- data/app/assets/javascripts/goldencobra/{utils → html_editors/tinymce_v3/utils}/validate.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/jquery.tinymce_v4.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/langs/de.js +219 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/langs/readme.md +3 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/advlist/plugin.js +97 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/advlist/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/anchor/plugin.js +47 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/anchor/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autolink/plugin.js +199 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autolink/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autoresize/plugin.js +162 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autoresize/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autosave/plugin.js +165 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autosave/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/bbcode/plugin.js +123 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/bbcode/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/charmap/plugin.js +398 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/charmap/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/code/plugin.js +60 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/code/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/colorpicker/plugin.js +112 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/colorpicker/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/css/dialog.css +118 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/buttons.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/icons.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/items.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/menu_arrow.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/menu_check.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/progress.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/tabs.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/plugin.js +297 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/tiny_mce_popup.js +542 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/utils/editable_selects.js +70 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/utils/form_utils.js +210 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/utils/mctabs.js +164 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/utils/validate.js +252 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/contextmenu/plugin.js +88 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/contextmenu/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/directionality/plugin.js +64 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/directionality/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-cool.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-cry.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-embarassed.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-frown.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-innocent.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-kiss.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-laughing.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-money-mouth.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-sealed.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-smile.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-surprised.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-tongue-out.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-undecided.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-wink.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-yell.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/plugin.js +65 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/example/dialog.html +8 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/example/plugin.js +68 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/example/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/example_dependency/plugin.js +22 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/example_dependency/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/fullpage/plugin.js +490 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/fullpage/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/fullscreen/plugin.js +136 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/fullscreen/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/hr/plugin.js +30 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/hr/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/image/plugin.js +550 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/image/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Canvas.js +35 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/ColorMatrix.js +222 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Conversions.js +186 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/CropRect.js +214 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Dialog.js +486 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Filters.js +221 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/ImagePanel.js +218 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/ImageSize.js +27 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/ImageTools.js +99 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Mime.js +42 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Plugin.js +390 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/UndoStack.js +57 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/plugin.dev.js +149 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/plugin.js +2334 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/importcss/plugin.js +197 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/importcss/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/insertdatetime/plugin.js +121 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/insertdatetime/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/layer/plugin.js +225 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/layer/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/legacyoutput/plugin.js +211 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/legacyoutput/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/link/plugin.js +403 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/link/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/lists/plugin.js +821 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/lists/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/media/moxieplayer.swf +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/media/plugin.js +795 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/media/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/nonbreaking/plugin.js +53 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/nonbreaking/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/noneditable/plugin.js +614 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/noneditable/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/pagebreak/plugin.js +88 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/pagebreak/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/classes/Clipboard.js +688 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/classes/Plugin.js +110 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/classes/Quirks.js +159 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/classes/Utils.js +129 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/classes/WordFilter.js +498 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/plugin.dev.js +142 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/plugin.js +1700 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/preview/plugin.js +88 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/preview/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/print/plugin.js +32 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/print/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/save/plugin.js +94 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/save/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/searchreplace/plugin.js +600 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/searchreplace/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/spellchecker/classes/DomTextMatcher.js +470 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/spellchecker/classes/Plugin.js +435 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/spellchecker/plugin.dev.js +139 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/spellchecker/plugin.js +1012 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/spellchecker/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/tabfocus/plugin.js +120 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/tabfocus/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/CellSelection.js +176 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/Dialogs.js +824 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/Plugin.js +436 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/Quirks.js +397 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/TableGrid.js +860 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/Utils.js +34 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/plugin.dev.js +141 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/plugin.js +2844 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/template/plugin.js +264 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/template/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/textcolor/plugin.js +282 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/textcolor/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/textpattern/plugin.js +268 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/textpattern/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/css/visualblocks.css +135 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/address.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/article.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/aside.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/blockquote.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/div.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/dl.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/figure.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h1.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h2.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h3.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h4.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h5.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h6.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/hgroup.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/ol.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/p.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/pre.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/section.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/ul.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/plugin.js +86 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualchars/plugin.js +123 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualchars/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/wordcount/plugin.js +69 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/wordcount/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/content.inline.min.css +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/content.min.css +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce-small.eot +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce-small.svg +62 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce-small.woff +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce.eot +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce.svg +83 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce.woff +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/img/anchor.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/img/loader.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/img/object.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/img/trans.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/skin.ie7.min.css +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/skin.min.css +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/themes/modern/theme.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/themes/modern/theme.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/tinymce_v4.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/tinymce_v4_inits.js +62 -0
- data/app/assets/javascripts/goldencobra/jquery.color-2.1.2.js +663 -0
- data/app/assets/javascripts/goldencobra/pagination.js +28 -0
- data/app/assets/javascripts/goldencobra/react_0.13.1.min.js +15 -0
- data/app/assets/javascripts/goldencobra/tiny_mce_popup.js +1 -1
- data/app/assets/javascripts/goldencobra/tiny_mce_src.js +17942 -0
- data/app/assets/stylesheets/goldencobra/active_admin.scss +16 -0
- data/app/assets/stylesheets/goldencobra/active_admin_backup.scss +608 -0
- data/app/assets/stylesheets/goldencobra/{application.css.scss → application.scss} +0 -0
- data/app/assets/stylesheets/goldencobra/chosen.css +51 -31
- data/app/assets/stylesheets/goldencobra/gc-articles.scss +12 -0
- data/app/assets/stylesheets/goldencobra/gc-chosen-overwrite.scss +12 -0
- data/app/assets/stylesheets/goldencobra/gc-general.scss +487 -0
- data/app/assets/stylesheets/goldencobra/gc-grid.scss +5 -0
- data/app/assets/stylesheets/goldencobra/gc-header.scss +47 -0
- data/app/assets/stylesheets/goldencobra/gc-overview-tree.scss +145 -0
- data/app/assets/stylesheets/goldencobra/gc-settings.scss +52 -0
- data/app/assets/stylesheets/goldencobra/ikusei_active_admin.scss +16 -34
- data/app/controllers/goldencobra/api/v1/tokens_controller.rb +10 -0
- data/app/controllers/goldencobra/api/v2/articles_controller.rb +213 -143
- data/app/controllers/goldencobra/api/v2/locales_controller.rb +1 -1
- data/app/controllers/goldencobra/api/v2/navigation_menus_controller.rb +223 -0
- data/app/controllers/goldencobra/api/v2/settings_controller.rb +1 -1
- data/app/controllers/goldencobra/api/v2/uploads_controller.rb +32 -0
- data/app/controllers/goldencobra/api/v3/articles_controller.rb +124 -0
- data/app/controllers/goldencobra/application_controller.rb +17 -41
- data/app/controllers/goldencobra/articles_controller.rb +60 -62
- data/app/controllers/goldencobra/manage_controller.rb +3 -4
- data/app/controllers/goldencobra/sessions_controller.rb +22 -15
- data/app/helpers/goldencobra/application_helper.rb +15 -3
- data/app/helpers/goldencobra/articles_helper.rb +80 -52
- data/app/helpers/goldencobra/login_helper.rb +4 -5
- data/app/helpers/goldencobra/navigation_helper.rb +52 -44
- data/app/mailers/goldencobra/confirmation_mailer.rb +3 -2
- data/app/models/ability.rb +1 -1
- data/app/models/active_admin/views/index_as_seo_table.rb +9 -0
- data/app/models/active_admin/views/index_as_tree.rb +118 -0
- data/app/models/goldencobra/article.rb +327 -246
- data/app/models/goldencobra/article_concerns/meta_tag.rb +104 -0
- data/app/models/goldencobra/article_image.rb +2 -2
- data/app/models/goldencobra/article_url.rb +54 -0
- data/app/models/goldencobra/articletype.rb +109 -48
- data/app/models/goldencobra/articletype_field.rb +3 -2
- data/app/models/goldencobra/articletype_group.rb +4 -4
- data/app/models/goldencobra/author.rb +5 -3
- data/app/models/goldencobra/comment.rb +7 -7
- data/app/models/goldencobra/domain.rb +3 -3
- data/app/models/goldencobra/import.rb +282 -282
- data/app/models/goldencobra/import_metadata.rb +5 -1
- data/app/models/goldencobra/link_checker.rb +27 -14
- data/app/models/goldencobra/location.rb +16 -4
- data/app/models/goldencobra/menue.rb +144 -17
- data/app/models/goldencobra/permission.rb +15 -3
- data/app/models/goldencobra/redirector.rb +23 -23
- data/app/models/goldencobra/role.rb +1 -0
- data/app/models/goldencobra/role_user.rb +4 -2
- data/app/models/goldencobra/setting.rb +54 -35
- data/app/models/goldencobra/tracking.rb +6 -3
- data/app/models/goldencobra/upload.rb +71 -53
- data/app/models/goldencobra/vita.rb +3 -3
- data/app/models/goldencobra/widget.rb +22 -16
- data/app/models/translation.rb +2 -2
- data/app/models/user.rb +18 -15
- data/app/models/visitor.rb +13 -8
- data/app/presenters/goldencobra/articletype_presenter.rb +266 -0
- data/app/serializers/goldencobra/article_custom_serializer.rb +24 -0
- data/app/serializers/goldencobra/article_serializer.rb +26 -0
- data/app/serializers/goldencobra/upload_serializer.rb +22 -0
- data/app/services/goldencobra/attribute_repair_service.rb +47 -0
- data/app/services/goldencobra/attribute_validator.rb +55 -0
- data/app/services/goldencobra/settings_cleanup.rb +95 -0
- data/app/services/goldencobra/url.rb +25 -0
- data/app/views/goldencobra/admin/articles/_article_type.html.erb +4 -3
- data/app/views/goldencobra/admin/articles/_image_module_sidebar.html.erb +2 -2
- data/app/views/goldencobra/admin/articles/_link_checker.html.erb +10 -13
- data/app/views/goldencobra/admin/articles/_select_article_type.html.erb +1 -4
- data/app/views/goldencobra/admin/dashboard/_base_dashboard.html.arb +106 -0
- data/app/views/goldencobra/admin/shared/_item.html.erb +1 -1
- data/app/views/goldencobra/admin/shared/_overview.html.erb +3 -3
- data/app/views/goldencobra/admin/shared/_react_overview.html.erb +15 -0
- data/app/views/goldencobra/admin/shared/load_overviewtree.js.erb +8 -3
- data/app/views/goldencobra/api/v2/articles/index.xml.builder +29 -0
- data/app/views/goldencobra/articles/show.rss.builder +1 -1
- data/app/views/goldencobra/manage/_admin_article_management_content.html.erb +2 -2
- data/app/views/layouts/goldencobra/active_admin_resque.html.erb +15 -15
- data/app/views/layouts/goldencobra/application.html.erb +1 -1
- data/app/views/layouts/goldencobra/bare_layout.html.erb +1 -1
- data/app/views/layouts/goldencobra/for_pdf.html.erb +1 -1
- data/app/worker/articles_cache_worker.rb +1 -2
- data/config/initializers/active_admin_devise.rb +4 -4
- data/config/initializers/check_for_missing_articletypes.rb +2 -55
- data/config/initializers/devise.rb +9 -1
- data/config/initializers/http_validator.rb +8 -10
- data/config/initializers/sass_load_path.rb +4 -0
- data/config/initializers/sidekiq.rb.tmpl +7 -0
- data/config/locales/active_admin.de.yml +49 -25
- data/config/locales/active_admin.en.yml +46 -22
- data/config/locales/active_admin.zh-CN.yml +645 -0
- data/config/locales/de.yml +95 -78
- data/config/locales/en.yml +97 -90
- data/config/locales/zh-CN.yml +632 -0
- data/config/routes.rb +37 -78
- data/config/settings.yml +17 -8
- data/config/spring.rb +1 -0
- data/db/migrate/20150811082119_install_goldencobra.rb +589 -0
- data/db/migrate/20150818133609_change_article_index_type_default.rb +5 -0
- data/db/migrate/20150818140444_rename_user_title_to_user_position.rb +5 -0
- data/db/migrate/20150818141321_add_displayarticletypeindex_to_goldencobra_articles.rb +5 -0
- data/db/migrate/20150819121715_add_descendentsdepth_to_goldencobra_articles.rb +6 -0
- data/db/migrate/20150820073443_change_metatag_storage.rb +13 -0
- data/db/migrate/20160527083745_add_state_to_goldencobra_articles.rb +5 -0
- data/db/migrate/20160614074840_create_goldencobra_article_urls.rb +10 -0
- data/db/migrate/20160704070529_add_showindexarticles_to_goldencobra_articles.rb +5 -0
- data/db/seeds.rb +28 -13
- data/lib/generators/goldencobra/articletype/articletype_generator.rb +3 -5
- data/lib/generators/goldencobra/articletype/templates/edit_articletype.html.erb +3 -3
- data/lib/generators/goldencobra/articletype/templates/edit_index.html.erb +11 -6
- data/lib/generators/goldencobra/articletype/templates/edit_show.html.erb +4 -6
- data/lib/generators/goldencobra/articletype/templates/index.html.erb +18 -21
- data/lib/generators/goldencobra/articletype/templates/initializer.rb +3 -6
- data/lib/generators/goldencobra/articletype/templates/show.html.erb +187 -9
- data/lib/generators/goldencobra/install_generator.rb +47 -65
- data/lib/generators/goldencobra/server_generator.rb +14 -17
- data/lib/generators/goldencobra/templates/active_admin.rb.erb +20 -17
- data/lib/generators/goldencobra/templates/assets/javascripts/application.js +1 -29
- data/lib/generators/goldencobra/templates/assets/stylesheets/_bootstrap_overwrite.scss +60 -0
- data/lib/generators/goldencobra/templates/assets/stylesheets/{active_admin.css.scss → active_admin.scss} +0 -0
- data/lib/generators/goldencobra/templates/assets/stylesheets/application.scss +16 -0
- data/lib/generators/goldencobra/templates/deploy.rb.erb +0 -6
- data/lib/generators/goldencobra/templates/robots.txt +6 -2
- data/lib/generators/goldencobra/templates/seeds.rb.erb +29 -163
- data/lib/generators/goldencobra/templates/views/articletypes/default/_edit_index.html.erb +3 -9
- data/lib/generators/goldencobra/templates/views/articletypes/default/_show.html.erb +181 -15
- data/lib/generators/goldencobra/templates/views/layouts/_footer.html.erb +22 -18
- data/lib/generators/goldencobra/templates/views/layouts/_header_meta.html.erb +29 -15
- data/lib/generators/goldencobra/templates/views/layouts/_navigation.html.erb +31 -0
- data/lib/generators/goldencobra/templates/views/layouts/_startpage.html.erb +71 -0
- data/lib/generators/goldencobra/templates/views/layouts/application.html.erb +10 -41
- data/lib/goldencobra.rb +33 -0
- data/lib/goldencobra/acts_as_setting.rb +8 -10
- data/lib/goldencobra/engine.rb +30 -41
- data/lib/goldencobra/version.rb +1 -3
- data/lib/i18n/backend/active_record.rb +61 -0
- data/lib/i18n/backend/active_record/translation.rb +109 -0
- data/lib/tasks/article_cache.rake +1 -1
- data/lib/tasks/attribute_validator.rake +18 -0
- data/lib/tasks/link_checker.rake +3 -7
- metadata +917 -803
- data/app/assets/javascripts/goldencobra/application.js +0 -84
- data/app/assets/javascripts/goldencobra/jquery.tinymce.js +0 -1
- data/app/assets/javascripts/goldencobra/langs/en.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/advimage/js/image.js +0 -462
- data/app/assets/javascripts/goldencobra/plugins/advlink/js/advlink.js +0 -532
- data/app/assets/javascripts/goldencobra/plugins/autolink/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/autolink/editor_plugin_src.js +0 -172
- data/app/assets/javascripts/goldencobra/plugins/autoresize/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/autoresize/editor_plugin_src.js +0 -137
- data/app/assets/javascripts/goldencobra/plugins/autosave/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/autosave/editor_plugin_src.js +0 -431
- data/app/assets/javascripts/goldencobra/plugins/autosave/langs/en.js +0 -4
- data/app/assets/javascripts/goldencobra/plugins/contextmenu/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/contextmenu/editor_plugin_src.js +0 -160
- data/app/assets/javascripts/goldencobra/plugins/directionality/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/directionality/editor_plugin_src.js +0 -82
- data/app/assets/javascripts/goldencobra/plugins/emotions/emotions.htm +0 -42
- data/app/assets/javascripts/goldencobra/plugins/example/editor_plugin_src.js +0 -84
- data/app/assets/javascripts/goldencobra/plugins/example/img/image_button.gif +0 -0
- data/app/assets/javascripts/goldencobra/plugins/fullscreen/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/fullscreen/editor_plugin_src.js +0 -159
- data/app/assets/javascripts/goldencobra/plugins/fullscreen/fullscreen.htm +0 -110
- data/app/assets/javascripts/goldencobra/plugins/inlinepopups/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/inlinepopups/editor_plugin_src.js +0 -699
- data/app/assets/javascripts/goldencobra/plugins/legacyoutput/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/legacyoutput/editor_plugin_src.js +0 -139
- data/app/assets/javascripts/goldencobra/plugins/lists/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/lists/editor_plugin_src.js +0 -925
- data/app/assets/javascripts/goldencobra/plugins/media/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/media/editor_plugin_src.js +0 -890
- data/app/assets/javascripts/goldencobra/plugins/media/js/media.js +0 -464
- data/app/assets/javascripts/goldencobra/plugins/noneditable/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/noneditable/editor_plugin_src.js +0 -95
- data/app/assets/javascripts/goldencobra/plugins/paste/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/paste/editor_plugin_src.js +0 -871
- data/app/assets/javascripts/goldencobra/plugins/searchreplace/js/searchreplace.js +0 -142
- data/app/assets/javascripts/goldencobra/plugins/searchreplace/searchreplace.htm +0 -100
- data/app/assets/javascripts/goldencobra/plugins/spellchecker/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/spellchecker/editor_plugin_src.js +0 -436
- data/app/assets/javascripts/goldencobra/plugins/style/css/props.css +0 -13
- data/app/assets/javascripts/goldencobra/plugins/style/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/style/editor_plugin_src.js +0 -55
- data/app/assets/javascripts/goldencobra/plugins/style/js/props.js +0 -635
- data/app/assets/javascripts/goldencobra/plugins/style/langs/en_dlg.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/style/props.htm +0 -840
- data/app/assets/javascripts/goldencobra/plugins/tabfocus/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/tabfocus/editor_plugin_src.js +0 -122
- data/app/assets/javascripts/goldencobra/plugins/table/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/table/editor_plugin_src.js +0 -1408
- data/app/assets/javascripts/goldencobra/plugins/table/js/cell.js +0 -319
- data/app/assets/javascripts/goldencobra/plugins/table/js/row.js +0 -237
- data/app/assets/javascripts/goldencobra/plugins/table/js/table.js +0 -484
- data/app/assets/javascripts/goldencobra/plugins/table/row.htm +0 -158
- data/app/assets/javascripts/goldencobra/plugins/wordcount/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/wordcount/editor_plugin_src.js +0 -114
- data/app/assets/javascripts/goldencobra/themes/advanced/color_picker.htm +0 -74
- data/app/assets/javascripts/goldencobra/themes/advanced/editor_template.js +0 -1
- data/app/assets/javascripts/goldencobra/themes/advanced/editor_template_src.js +0 -1362
- data/app/assets/javascripts/goldencobra/themes/advanced/img/icons.gif +0 -0
- data/app/assets/javascripts/goldencobra/themes/advanced/js/anchor.js +0 -43
- data/app/assets/javascripts/goldencobra/themes/advanced/js/color_picker.js +0 -329
- data/app/assets/javascripts/goldencobra/themes/advanced/js/image.js +0 -251
- data/app/assets/javascripts/goldencobra/themes/advanced/js/link.js +0 -153
- data/app/assets/javascripts/goldencobra/themes/advanced/js/source_editor.js +0 -56
- data/app/assets/javascripts/goldencobra/themes/advanced/langs/en_dlg.js +0 -1
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/default/dialog.css +0 -117
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/default/ui.css +0 -214
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/highcontrast/dialog.css +0 -105
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/highcontrast/ui.css +0 -102
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/o2k7/dialog.css +0 -117
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/o2k7/ui.css +0 -217
- data/app/assets/javascripts/goldencobra/themes/advanced/source_editor.htm +0 -25
- data/app/assets/javascripts/goldencobra/tiny_mce.js +0 -1
- data/app/assets/stylesheets/goldencobra/active_admin.css.scss +0 -595
- data/app/models/goldencobra/metatag.rb +0 -23
- data/app/models/goldencobra/url_builder.rb +0 -58
- data/app/views/goldencobra/admin/articles/_articles_index.html.erb +0 -4
- data/app/views/goldencobra/admin/articles/_widgets_sidebar.html.erb +0 -15
- data/app/views/goldencobra/admin/articles/toggle_expert_mode.js.erb +0 -7
- data/config/initializers/check_for_migrations.rb +0 -21
- data/config/initializers/compass.rb +0 -24
- data/db/migrate/20120109093658_create_articles.rb +0 -9
- data/db/migrate/20120109111205_add_devise_to_admin_users.rb +0 -56
- data/db/migrate/20120109121212_create_admin_notes.rb +0 -16
- data/db/migrate/20120109121213_move_admin_notes_to_comments.rb +0 -25
- data/db/migrate/20120109140423_create_roles.rb +0 -10
- data/db/migrate/20120109141338_create_role_users.rb +0 -8
- data/db/migrate/20120110112157_add_urlname_to_article.rb +0 -7
- data/db/migrate/20120110114803_create_friendly_id_slugs.rb +0 -18
- data/db/migrate/20120112163045_add_body_to_articles.rb +0 -6
- data/db/migrate/20120112171037_add_ancestry_to_articles.rb +0 -6
- data/db/migrate/20120112172723_add_index_to_articles.rb +0 -9
- data/db/migrate/20120113100243_create_menues.rb +0 -12
- data/db/migrate/20120113101714_add_ancestry_to_menues.rb +0 -6
- data/db/migrate/20120113170904_add_startpage_to_article.rb +0 -5
- data/db/migrate/20120120095700_create_goldencobra_metatags.rb +0 -11
- data/db/migrate/20120125145920_add_fields_to_articles.rb +0 -9
- data/db/migrate/20120125161800_add_noindex_to_articles.rb +0 -5
- data/db/migrate/20120126132846_create_goldencobra_uploads.rb +0 -14
- data/db/migrate/20120206110452_create_goldencobra_locations.rb +0 -15
- data/db/migrate/20120209100956_create_goldencobra_settings.rb +0 -11
- data/db/migrate/20120217085735_add_options_to_users.rb +0 -16
- data/db/migrate/20120221100021_create_goldencobra_helps.rb +0 -11
- data/db/migrate/20120307151355_add_breadcrumb_to_goldencobra_articles.rb +0 -6
- data/db/migrate/20120312111338_create_goldencobra_widgets.rb +0 -12
- data/db/migrate/20120312150558_create_goldencobra_article_widgets.rb +0 -10
- data/db/migrate/20120313125443_create_goldencobra_permissions.rb +0 -18
- data/db/migrate/20120313142221_add_name_to_goldencobra_widgets.rb +0 -6
- data/db/migrate/20120313142421_add_sorter_to_goldencobra_widgets.rb +0 -6
- data/db/migrate/20120314102039_add_template_to_goldencobra_articles.rb +0 -6
- data/db/migrate/20120315161536_add_sorter_to_goldencobra_menue.rb +0 -6
- data/db/migrate/20120321102414_acts_as_taggable_on_migration.rb +0 -30
- data/db/migrate/20120321114923_add_articleindex_to_goldencobra_articles.rb +0 -7
- data/db/migrate/20120321120727_add_social_sharing_to_goldencobra_articles.rb +0 -6
- data/db/migrate/20120321130204_add_articleindeximages_to_goldencobra_articles.rb +0 -6
- data/db/migrate/20120321131058_create_goldencobra_article_images.rb +0 -10
- data/db/migrate/20120416154848_create_goldencobra_vita.rb +0 -13
- data/db/migrate/20120420094029_add_cachable_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120423141814_add_imagegallery_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120509125734_add_title_to_goldencobra_locations.rb +0 -5
- data/db/migrate/20120604141401_add_article_type_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120605082035_add_description_to_goldencobra_menues.rb +0 -6
- data/db/migrate/20120608095444_add_teaser_title_to_goldencobra_menue.rb +0 -5
- data/db/migrate/20120608121356_create_versions.rb +0 -18
- data/db/migrate/20120611082814_create_goldencobra_imports.rb +0 -13
- data/db/migrate/20120615085225_add_externalurl_to_goldencobra_article.rb +0 -5
- data/db/migrate/20120615150128_add_attachable_to_goldencobra_uploads.rb +0 -6
- data/db/migrate/20120618122627_add_indextag_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120618132330_add_sliderfields_to_widgets.rb +0 -5
- data/db/migrate/20120618141449_add_teaser_to_goldencobra_widgets.rb +0 -5
- data/db/migrate/20120619123238_add_sorter_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120619132259_add_reverse_sort_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120625131154_add_author_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120627122742_add_sorter_limit_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120718153348_add_nottags_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120730103912_add_use_frontend_tags_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120807124808_add_image_to_goldencobra_menues.rb +0 -5
- data/db/migrate/20120814111900_add_default_and_description_to_goldencobra.rb +0 -6
- data/db/migrate/20120814114800_change_default_type_to_goldencobra_widgets.rb +0 -6
- data/db/migrate/20120821105002_add_alttext_to_goldencobra_uploads.rb +0 -5
- data/db/migrate/20120926133635_add_position_to_goldencobra_article_images.rb +0 -5
- data/db/migrate/20120928092721_create_goldencobra_comments.rb +0 -16
- data/db/migrate/20120928105956_devise_create_visitors.rb +0 -46
- data/db/migrate/20121001092249_add_names_to_visitors.rb +0 -6
- data/db/migrate/20121002143111_add_columns_to_visitors.rb +0 -8
- data/db/migrate/20121003102003_add_dynamicredirect_to_goldencobraarticles.rb +0 -6
- data/db/migrate/20121003140056_add_token_to_visitors.rb +0 -12
- data/db/migrate/20121006095912_add_commentable_to_article.rb +0 -5
- data/db/migrate/20121007125002_add_activesince_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20121011062432_add_username_to_visitors.rb +0 -5
- data/db/migrate/20121015071150_add_link_title_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20121029131138_add_offline_setter_to_goldencobra_widgets.rb +0 -7
- data/db/migrate/20121030112343_add_offline_active_to_goldencobra_widgets.rb +0 -5
- data/db/migrate/20121030120838_add_alternative_content_to_goldencobra_widgets.rb +0 -5
- data/db/migrate/20121121144623_add_datum_to_widgets.rb +0 -6
- data/db/migrate/20121122091033_add_sorter_number_to_goldencobra_uploads.rb +0 -5
- data/db/migrate/20121206104701_add_type_to_goldencobra_settings.rb +0 -5
- data/db/migrate/20130104145454_add_weektimes_to_goldencobra_widgets.rb +0 -7
- data/db/migrate/20130114154115_add_sorter_to_goldencobra_permissions.rb +0 -8
- data/db/migrate/20130115104440_add_expert_mode_to_users.rb +0 -5
- data/db/migrate/20130118115233_add_poly_to_goldencobra_role_users.rb +0 -6
- data/db/migrate/20130128170204_add_default_article_type_for_nil.rb +0 -11
- data/db/migrate/20130129092029_add_poly_to_goldencobra_locations.rb +0 -6
- data/db/migrate/20130204102953_add_locationoption_to_goldencobra_locations.rb +0 -5
- data/db/migrate/20130205084748_add_loginable_to_visitors.rb +0 -6
- data/db/migrate/20130225154241_add_redirect_to_goldencobra_roles.rb +0 -5
- data/db/migrate/20130301144344_add_indextypes_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20130404110743_add_sessions_table.rb +0 -12
- data/db/migrate/20130404121434_create_goldencobra_trackings.rb +0 -13
- data/db/migrate/20130404135801_add_options_to_goldencobra_trackings.rb +0 -6
- data/db/migrate/20130404140858_add_moreoptions_to_goldencobra_trackings.rb +0 -8
- data/db/migrate/20130405071320_add_params_to_goldencobra_trackings.rb +0 -5
- data/db/migrate/20130405073103_add_googleparams_to_goldencobra_trackings.rb +0 -9
- data/db/migrate/20130405074654_add_location_to_tracking.rb +0 -5
- data/db/migrate/20130426123928_add_polymorphic_to_goldencobra_metatags.rb +0 -6
- data/db/migrate/20130507115517_create_translations.rb +0 -13
- data/db/migrate/20130702155529_create_goldencobra_authors.rb +0 -12
- data/db/migrate/20130702160247_rename_authorstobackup_to_goldencobra_articles.rb +0 -11
- data/db/migrate/20130722152135_add_encodingtype_to_goldencobra_imports.rb +0 -5
- data/db/migrate/20130723084542_add_assgroup_to_goldencobra_importer.rb +0 -5
- data/db/migrate/20130724123225_create_goldencobra_import_metadata.rb +0 -16
- data/db/migrate/20130730113452_add_skip_to_goldencobra_locations.rb +0 -5
- data/db/migrate/20130730144331_add_linkchecker_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20130903085746_change_datatype_of_url_paremeters.rb +0 -9
- data/db/migrate/20130909143144_create_goldencobra_domains.rb +0 -11
- data/db/migrate/20130925133203_add_prefix_to_goldencobra_domains.rb +0 -5
- data/db/migrate/20131018111343_add_cache_to_goldencobra_menues.rb +0 -12
- data/db/migrate/20131129143509_add_remote_to_goldencobra_menues.rb +0 -5
- data/db/migrate/20131216110750_add_main_to_goldencobra_domains.rb +0 -7
- data/db/migrate/20140127084929_create_goldencobra_articletypes.rb +0 -16
- data/db/migrate/20140128091516_create_goldencobra_articletype_groups.rb +0 -16
- data/db/migrate/20140128104519_create_goldencobra_articletype_fields.rb +0 -14
- data/db/migrate/20140128112747_add_position_to_goldencobra_articletype_group.rb +0 -7
- data/db/migrate/20140204221345_add_operator_to_goldencobra_permissions.rb +0 -5
- data/db/migrate/20140411152728_add_creator_id_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20140505144517_add_taggingcounter.rb +0 -15
- data/db/migrate/20140603084537_add_domain_to_goldencobra_permissions.rb +0 -7
- data/db/migrate/20140615200342_resize_link_checkfield.rb +0 -13
- data/db/migrate/20140626135753_add_externalreferee_to_goldencobra_articles.rb +0 -6
- data/db/migrate/20140702103024_add_externaldate_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20140702105550_add_remoteurl_to_goldencobra_uploads.rb +0 -5
- data/db/migrate/20140702142818_add_image_gallery_type_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20140819101033_add_urlpath_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20141104115144_create_goldencobra_redirectors.rb +0 -15
- data/db/migrate/20141112124531_add_globalsorting_to_goldencobra_articles.rb +0 -7
- data/db/migrate/20141124170930_add_indiex_to_gc.rb +0 -26
- data/db/migrate/20150115111024_create_goldencobra_article_authors.rb +0 -28
- data/db/migrate/20150115134707_add_remove_author_stuff.rb +0 -11
- data/db/migrate/20150417153454_add_status_to_goldencobra_vita_steps.rb +0 -5
- data/lib/generators/goldencobra/templates/assets/images/icons/icon-bookmark-40x40-light.png +0 -0
- data/lib/generators/goldencobra/templates/assets/images/icons/icon-pdf-40x40-light.png +0 -0
- data/lib/generators/goldencobra/templates/assets/images/icons/icon-print-40x40-light.png +0 -0
- data/lib/generators/goldencobra/templates/assets/images/logo.gif +0 -0
- data/lib/generators/goldencobra/templates/assets/images/rails.png +0 -0
- data/lib/generators/goldencobra/templates/assets/stylesheets/application.css.scss +0 -29
- data/lib/generators/goldencobra/templates/assets/stylesheets/footer/content.css.scss +0 -31
- data/lib/generators/goldencobra/templates/assets/stylesheets/header/content.css.scss +0 -102
- data/lib/generators/goldencobra/templates/assets/stylesheets/main/content.css.scss +0 -192
- data/lib/generators/goldencobra/templates/assets/stylesheets/share/mixins.css.scss +0 -174
- data/lib/generators/goldencobra/templates/assets/stylesheets/share/variables.css.scss +0 -31
- data/lib/generators/goldencobra/templates/views/layouts/_header.html.erb +0 -61
- data/lib/generators/goldencobra/templates/views/layouts/_header_slider.html.erb +0 -14
@@ -0,0 +1,86 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// the compiled file.
|
9
|
+
//
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require goldencobra/jquery.tools.min.js
|
16
|
+
//= require goldencobra/moment
|
17
|
+
//= require goldencobra/notifications
|
18
|
+
//= require goldencobra/react_0.13.1.min
|
19
|
+
//= require goldencobra/components
|
20
|
+
|
21
|
+
$(function() {
|
22
|
+
moment.weekdaysMin = ["su", "mo", "tu", "we", "th", "fr", "sa"];
|
23
|
+
|
24
|
+
/* Trigger display of widgets. If widget has offline_times set, show
|
25
|
+
alternative content instead. */
|
26
|
+
$("[data-offline-active=true]").each(function(index, element) {
|
27
|
+
var currentDay = moment().format("dd");
|
28
|
+
var isCurrentDay = $(element).attr("data-time-day-" + currentDay) && $(element).attr("data-time-day-" + currentDay).length > 0 ? true : false;
|
29
|
+
|
30
|
+
// wenn aktueller Wochentag gesetzt ist
|
31
|
+
if (isCurrentDay) {
|
32
|
+
// Zeitdaten
|
33
|
+
var currentTime = parseInt(moment().format("Hmm"));
|
34
|
+
var offTimeInterval = $(element).attr("data-time-day-" + currentDay).split("-");
|
35
|
+
var startTime = parseInt(offTimeInterval[0]);
|
36
|
+
var endTime = parseInt(offTimeInterval[1]);
|
37
|
+
// Zeitboolean
|
38
|
+
var isInTime = startTime <= currentTime && currentTime <= endTime ? true : false;
|
39
|
+
|
40
|
+
// wenn aktuelle Zeit im Intervall liegt
|
41
|
+
if (isInTime) {
|
42
|
+
// check, ob Start- und Endattribute vorhanden sind
|
43
|
+
var isDataDateStart = $(element).attr("data-date-start") && $(element).attr("data-date-start").length > 0 ? true : false;
|
44
|
+
var isDataDateEnd = $(element).attr("data-date-end") && $(element).attr("data-date-end").length > 0 ? true : false;
|
45
|
+
|
46
|
+
/* wenn Start- und Enddatum nicht gesetzt sind,
|
47
|
+
dann muss der Offlineinhalt angezeigt werden */
|
48
|
+
if (!isDataDateStart && !isDataDateEnd) {
|
49
|
+
// Widget muss ausgeblendet werden
|
50
|
+
$(element).addClass("hidden");
|
51
|
+
offlineElement = $(element).next("[data-id=" + $(element).attr("data-id") + "]");
|
52
|
+
offlineElement.attr('id',$(element).attr('id'));
|
53
|
+
offlineElement.removeClass("hidden");
|
54
|
+
}
|
55
|
+
/* Wenn Start- und Enddatum gesetzt sind,
|
56
|
+
muss geprüft werden, ob der aktuelle Tag
|
57
|
+
im Intervall liegt und wenn ja,
|
58
|
+
muss der Offlineinhalt angezeigt werden */
|
59
|
+
else if (isDataDateStart && isDataDateEnd) {
|
60
|
+
// Datumsdaten
|
61
|
+
var currentDate = parseInt(moment().format("YYYYMMDD"));
|
62
|
+
var startDate = parseInt($(element).attr("data-date-start"));
|
63
|
+
var endDate = parseInt($(element).attr("data-date-end"));
|
64
|
+
// Datumsboolean
|
65
|
+
var isCurrentDate = startDate <= currentDate && endDate >= currentDate ? true : false;
|
66
|
+
if (isCurrentDate) {
|
67
|
+
// Widget muss ausgeblendet werden
|
68
|
+
$(element).addClass("hidden");
|
69
|
+
offlineElement = $(element).next("[data-id=" + $(element).attr("data-id") + "]");
|
70
|
+
offlineElement.attr('id',$(element).attr('id'));
|
71
|
+
offlineElement.removeClass("hidden");
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
});
|
77
|
+
$(".goldencobra_widget.hidden").remove();
|
78
|
+
});
|
79
|
+
|
80
|
+
$(function() {
|
81
|
+
if($('#_frontend_tags').length) {
|
82
|
+
$('#_frontend_tags').live('change', function() {
|
83
|
+
$('#index-filter-search').submit();
|
84
|
+
});
|
85
|
+
}
|
86
|
+
});
|
@@ -0,0 +1,1257 @@
|
|
1
|
+
/*!
|
2
|
+
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3
|
+
by Patrick Filler for Harvest, http://getharvest.com
|
4
|
+
|
5
|
+
Version 1.4.2
|
6
|
+
Full source at https://github.com/harvesthq/chosen
|
7
|
+
Copyright (c) 2011-2015 Harvest http://getharvest.com
|
8
|
+
|
9
|
+
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10
|
+
This file is generated by `grunt build`, do not edit it by hand.
|
11
|
+
*/
|
12
|
+
|
13
|
+
(function() {
|
14
|
+
var $, AbstractChosen, Chosen, SelectParser, _ref,
|
15
|
+
__hasProp = {}.hasOwnProperty,
|
16
|
+
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
17
|
+
|
18
|
+
SelectParser = (function() {
|
19
|
+
function SelectParser() {
|
20
|
+
this.options_index = 0;
|
21
|
+
this.parsed = [];
|
22
|
+
}
|
23
|
+
|
24
|
+
SelectParser.prototype.add_node = function(child) {
|
25
|
+
if (child.nodeName.toUpperCase() === "OPTGROUP") {
|
26
|
+
return this.add_group(child);
|
27
|
+
} else {
|
28
|
+
return this.add_option(child);
|
29
|
+
}
|
30
|
+
};
|
31
|
+
|
32
|
+
SelectParser.prototype.add_group = function(group) {
|
33
|
+
var group_position, option, _i, _len, _ref, _results;
|
34
|
+
group_position = this.parsed.length;
|
35
|
+
this.parsed.push({
|
36
|
+
array_index: group_position,
|
37
|
+
group: true,
|
38
|
+
label: this.escapeExpression(group.label),
|
39
|
+
title: group.title ? group.title : void 0,
|
40
|
+
children: 0,
|
41
|
+
disabled: group.disabled,
|
42
|
+
classes: group.className
|
43
|
+
});
|
44
|
+
_ref = group.childNodes;
|
45
|
+
_results = [];
|
46
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
47
|
+
option = _ref[_i];
|
48
|
+
_results.push(this.add_option(option, group_position, group.disabled));
|
49
|
+
}
|
50
|
+
return _results;
|
51
|
+
};
|
52
|
+
|
53
|
+
SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
|
54
|
+
if (option.nodeName.toUpperCase() === "OPTION") {
|
55
|
+
if (option.text !== "") {
|
56
|
+
if (group_position != null) {
|
57
|
+
this.parsed[group_position].children += 1;
|
58
|
+
}
|
59
|
+
this.parsed.push({
|
60
|
+
array_index: this.parsed.length,
|
61
|
+
options_index: this.options_index,
|
62
|
+
value: option.value,
|
63
|
+
text: option.text,
|
64
|
+
html: option.innerHTML,
|
65
|
+
title: option.title ? option.title : void 0,
|
66
|
+
selected: option.selected,
|
67
|
+
disabled: group_disabled === true ? group_disabled : option.disabled,
|
68
|
+
group_array_index: group_position,
|
69
|
+
group_label: group_position != null ? this.parsed[group_position].label : null,
|
70
|
+
classes: option.className,
|
71
|
+
style: option.style.cssText
|
72
|
+
});
|
73
|
+
} else {
|
74
|
+
this.parsed.push({
|
75
|
+
array_index: this.parsed.length,
|
76
|
+
options_index: this.options_index,
|
77
|
+
empty: true
|
78
|
+
});
|
79
|
+
}
|
80
|
+
return this.options_index += 1;
|
81
|
+
}
|
82
|
+
};
|
83
|
+
|
84
|
+
SelectParser.prototype.escapeExpression = function(text) {
|
85
|
+
var map, unsafe_chars;
|
86
|
+
if ((text == null) || text === false) {
|
87
|
+
return "";
|
88
|
+
}
|
89
|
+
if (!/[\&\<\>\"\'\`]/.test(text)) {
|
90
|
+
return text;
|
91
|
+
}
|
92
|
+
map = {
|
93
|
+
"<": "<",
|
94
|
+
">": ">",
|
95
|
+
'"': """,
|
96
|
+
"'": "'",
|
97
|
+
"`": "`"
|
98
|
+
};
|
99
|
+
unsafe_chars = /&(?!\w+;)|[\<\>\"\'\`]/g;
|
100
|
+
return text.replace(unsafe_chars, function(chr) {
|
101
|
+
return map[chr] || "&";
|
102
|
+
});
|
103
|
+
};
|
104
|
+
|
105
|
+
return SelectParser;
|
106
|
+
|
107
|
+
})();
|
108
|
+
|
109
|
+
SelectParser.select_to_array = function(select) {
|
110
|
+
var child, parser, _i, _len, _ref;
|
111
|
+
parser = new SelectParser();
|
112
|
+
_ref = select.childNodes;
|
113
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
114
|
+
child = _ref[_i];
|
115
|
+
parser.add_node(child);
|
116
|
+
}
|
117
|
+
return parser.parsed;
|
118
|
+
};
|
119
|
+
|
120
|
+
AbstractChosen = (function() {
|
121
|
+
function AbstractChosen(form_field, options) {
|
122
|
+
this.form_field = form_field;
|
123
|
+
this.options = options != null ? options : {};
|
124
|
+
if (!AbstractChosen.browser_is_supported()) {
|
125
|
+
return;
|
126
|
+
}
|
127
|
+
this.is_multiple = this.form_field.multiple;
|
128
|
+
this.set_default_text();
|
129
|
+
this.set_default_values();
|
130
|
+
this.setup();
|
131
|
+
this.set_up_html();
|
132
|
+
this.register_observers();
|
133
|
+
this.on_ready();
|
134
|
+
}
|
135
|
+
|
136
|
+
AbstractChosen.prototype.set_default_values = function() {
|
137
|
+
var _this = this;
|
138
|
+
this.click_test_action = function(evt) {
|
139
|
+
return _this.test_active_click(evt);
|
140
|
+
};
|
141
|
+
this.activate_action = function(evt) {
|
142
|
+
return _this.activate_field(evt);
|
143
|
+
};
|
144
|
+
this.active_field = false;
|
145
|
+
this.mouse_on_container = false;
|
146
|
+
this.results_showing = false;
|
147
|
+
this.result_highlighted = null;
|
148
|
+
this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != null) && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
|
149
|
+
this.disable_search_threshold = this.options.disable_search_threshold || 0;
|
150
|
+
this.disable_search = this.options.disable_search || false;
|
151
|
+
this.enable_split_word_search = this.options.enable_split_word_search != null ? this.options.enable_split_word_search : true;
|
152
|
+
this.group_search = this.options.group_search != null ? this.options.group_search : true;
|
153
|
+
this.search_contains = this.options.search_contains || false;
|
154
|
+
this.single_backstroke_delete = this.options.single_backstroke_delete != null ? this.options.single_backstroke_delete : true;
|
155
|
+
this.max_selected_options = this.options.max_selected_options || Infinity;
|
156
|
+
this.inherit_select_classes = this.options.inherit_select_classes || false;
|
157
|
+
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
|
158
|
+
this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
|
159
|
+
return this.include_group_label_in_selected = this.options.include_group_label_in_selected || false;
|
160
|
+
};
|
161
|
+
|
162
|
+
AbstractChosen.prototype.set_default_text = function() {
|
163
|
+
if (this.form_field.getAttribute("data-placeholder")) {
|
164
|
+
this.default_text = this.form_field.getAttribute("data-placeholder");
|
165
|
+
} else if (this.is_multiple) {
|
166
|
+
this.default_text = this.options.placeholder_text_multiple || this.options.placeholder_text || AbstractChosen.default_multiple_text;
|
167
|
+
} else {
|
168
|
+
this.default_text = this.options.placeholder_text_single || this.options.placeholder_text || AbstractChosen.default_single_text;
|
169
|
+
}
|
170
|
+
return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
|
171
|
+
};
|
172
|
+
|
173
|
+
AbstractChosen.prototype.choice_label = function(item) {
|
174
|
+
if (this.include_group_label_in_selected && (item.group_label != null)) {
|
175
|
+
return "<b class='group-name'>" + item.group_label + "</b>" + item.html;
|
176
|
+
} else {
|
177
|
+
return item.html;
|
178
|
+
}
|
179
|
+
};
|
180
|
+
|
181
|
+
AbstractChosen.prototype.mouse_enter = function() {
|
182
|
+
return this.mouse_on_container = true;
|
183
|
+
};
|
184
|
+
|
185
|
+
AbstractChosen.prototype.mouse_leave = function() {
|
186
|
+
return this.mouse_on_container = false;
|
187
|
+
};
|
188
|
+
|
189
|
+
AbstractChosen.prototype.input_focus = function(evt) {
|
190
|
+
var _this = this;
|
191
|
+
if (this.is_multiple) {
|
192
|
+
if (!this.active_field) {
|
193
|
+
return setTimeout((function() {
|
194
|
+
return _this.container_mousedown();
|
195
|
+
}), 50);
|
196
|
+
}
|
197
|
+
} else {
|
198
|
+
if (!this.active_field) {
|
199
|
+
return this.activate_field();
|
200
|
+
}
|
201
|
+
}
|
202
|
+
};
|
203
|
+
|
204
|
+
AbstractChosen.prototype.input_blur = function(evt) {
|
205
|
+
var _this = this;
|
206
|
+
if (!this.mouse_on_container) {
|
207
|
+
this.active_field = false;
|
208
|
+
return setTimeout((function() {
|
209
|
+
return _this.blur_test();
|
210
|
+
}), 100);
|
211
|
+
}
|
212
|
+
};
|
213
|
+
|
214
|
+
AbstractChosen.prototype.results_option_build = function(options) {
|
215
|
+
var content, data, _i, _len, _ref;
|
216
|
+
content = '';
|
217
|
+
_ref = this.results_data;
|
218
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
219
|
+
data = _ref[_i];
|
220
|
+
if (data.group) {
|
221
|
+
content += this.result_add_group(data);
|
222
|
+
} else {
|
223
|
+
content += this.result_add_option(data);
|
224
|
+
}
|
225
|
+
if (options != null ? options.first : void 0) {
|
226
|
+
if (data.selected && this.is_multiple) {
|
227
|
+
this.choice_build(data);
|
228
|
+
} else if (data.selected && !this.is_multiple) {
|
229
|
+
this.single_set_selected_text(this.choice_label(data));
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|
233
|
+
return content;
|
234
|
+
};
|
235
|
+
|
236
|
+
AbstractChosen.prototype.result_add_option = function(option) {
|
237
|
+
var classes, option_el;
|
238
|
+
if (!option.search_match) {
|
239
|
+
return '';
|
240
|
+
}
|
241
|
+
if (!this.include_option_in_results(option)) {
|
242
|
+
return '';
|
243
|
+
}
|
244
|
+
classes = [];
|
245
|
+
if (!option.disabled && !(option.selected && this.is_multiple)) {
|
246
|
+
classes.push("active-result");
|
247
|
+
}
|
248
|
+
if (option.disabled && !(option.selected && this.is_multiple)) {
|
249
|
+
classes.push("disabled-result");
|
250
|
+
}
|
251
|
+
if (option.selected) {
|
252
|
+
classes.push("result-selected");
|
253
|
+
}
|
254
|
+
if (option.group_array_index != null) {
|
255
|
+
classes.push("group-option");
|
256
|
+
}
|
257
|
+
if (option.classes !== "") {
|
258
|
+
classes.push(option.classes);
|
259
|
+
}
|
260
|
+
option_el = document.createElement("li");
|
261
|
+
option_el.className = classes.join(" ");
|
262
|
+
option_el.style.cssText = option.style;
|
263
|
+
option_el.setAttribute("data-option-array-index", option.array_index);
|
264
|
+
option_el.innerHTML = option.search_text;
|
265
|
+
if (option.title) {
|
266
|
+
option_el.title = option.title;
|
267
|
+
}
|
268
|
+
return this.outerHTML(option_el);
|
269
|
+
};
|
270
|
+
|
271
|
+
AbstractChosen.prototype.result_add_group = function(group) {
|
272
|
+
var classes, group_el;
|
273
|
+
if (!(group.search_match || group.group_match)) {
|
274
|
+
return '';
|
275
|
+
}
|
276
|
+
if (!(group.active_options > 0)) {
|
277
|
+
return '';
|
278
|
+
}
|
279
|
+
classes = [];
|
280
|
+
classes.push("group-result");
|
281
|
+
if (group.classes) {
|
282
|
+
classes.push(group.classes);
|
283
|
+
}
|
284
|
+
group_el = document.createElement("li");
|
285
|
+
group_el.className = classes.join(" ");
|
286
|
+
group_el.innerHTML = group.search_text;
|
287
|
+
if (group.title) {
|
288
|
+
group_el.title = group.title;
|
289
|
+
}
|
290
|
+
return this.outerHTML(group_el);
|
291
|
+
};
|
292
|
+
|
293
|
+
AbstractChosen.prototype.results_update_field = function() {
|
294
|
+
this.set_default_text();
|
295
|
+
if (!this.is_multiple) {
|
296
|
+
this.results_reset_cleanup();
|
297
|
+
}
|
298
|
+
this.result_clear_highlight();
|
299
|
+
this.results_build();
|
300
|
+
if (this.results_showing) {
|
301
|
+
return this.winnow_results();
|
302
|
+
}
|
303
|
+
};
|
304
|
+
|
305
|
+
AbstractChosen.prototype.reset_single_select_options = function() {
|
306
|
+
var result, _i, _len, _ref, _results;
|
307
|
+
_ref = this.results_data;
|
308
|
+
_results = [];
|
309
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
310
|
+
result = _ref[_i];
|
311
|
+
if (result.selected) {
|
312
|
+
_results.push(result.selected = false);
|
313
|
+
} else {
|
314
|
+
_results.push(void 0);
|
315
|
+
}
|
316
|
+
}
|
317
|
+
return _results;
|
318
|
+
};
|
319
|
+
|
320
|
+
AbstractChosen.prototype.results_toggle = function() {
|
321
|
+
if (this.results_showing) {
|
322
|
+
return this.results_hide();
|
323
|
+
} else {
|
324
|
+
return this.results_show();
|
325
|
+
}
|
326
|
+
};
|
327
|
+
|
328
|
+
AbstractChosen.prototype.results_search = function(evt) {
|
329
|
+
if (this.results_showing) {
|
330
|
+
return this.winnow_results();
|
331
|
+
} else {
|
332
|
+
return this.results_show();
|
333
|
+
}
|
334
|
+
};
|
335
|
+
|
336
|
+
AbstractChosen.prototype.winnow_results = function() {
|
337
|
+
var escapedSearchText, option, regex, results, results_group, searchText, startpos, text, zregex, _i, _len, _ref;
|
338
|
+
this.no_results_clear();
|
339
|
+
results = 0;
|
340
|
+
searchText = this.get_search_text();
|
341
|
+
escapedSearchText = searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
342
|
+
zregex = new RegExp(escapedSearchText, 'i');
|
343
|
+
regex = this.get_search_regex(escapedSearchText);
|
344
|
+
_ref = this.results_data;
|
345
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
346
|
+
option = _ref[_i];
|
347
|
+
option.search_match = false;
|
348
|
+
results_group = null;
|
349
|
+
if (this.include_option_in_results(option)) {
|
350
|
+
if (option.group) {
|
351
|
+
option.group_match = false;
|
352
|
+
option.active_options = 0;
|
353
|
+
}
|
354
|
+
if ((option.group_array_index != null) && this.results_data[option.group_array_index]) {
|
355
|
+
results_group = this.results_data[option.group_array_index];
|
356
|
+
if (results_group.active_options === 0 && results_group.search_match) {
|
357
|
+
results += 1;
|
358
|
+
}
|
359
|
+
results_group.active_options += 1;
|
360
|
+
}
|
361
|
+
option.search_text = option.group ? option.label : option.html;
|
362
|
+
if (!(option.group && !this.group_search)) {
|
363
|
+
option.search_match = this.search_string_match(option.search_text, regex);
|
364
|
+
if (option.search_match && !option.group) {
|
365
|
+
results += 1;
|
366
|
+
}
|
367
|
+
if (option.search_match) {
|
368
|
+
if (searchText.length) {
|
369
|
+
startpos = option.search_text.search(zregex);
|
370
|
+
text = option.search_text.substr(0, startpos + searchText.length) + '</em>' + option.search_text.substr(startpos + searchText.length);
|
371
|
+
option.search_text = text.substr(0, startpos) + '<em>' + text.substr(startpos);
|
372
|
+
}
|
373
|
+
if (results_group != null) {
|
374
|
+
results_group.group_match = true;
|
375
|
+
}
|
376
|
+
} else if ((option.group_array_index != null) && this.results_data[option.group_array_index].search_match) {
|
377
|
+
option.search_match = true;
|
378
|
+
}
|
379
|
+
}
|
380
|
+
}
|
381
|
+
}
|
382
|
+
this.result_clear_highlight();
|
383
|
+
if (results < 1 && searchText.length) {
|
384
|
+
this.update_results_content("");
|
385
|
+
return this.no_results(searchText);
|
386
|
+
} else {
|
387
|
+
this.update_results_content(this.results_option_build());
|
388
|
+
return this.winnow_results_set_highlight();
|
389
|
+
}
|
390
|
+
};
|
391
|
+
|
392
|
+
AbstractChosen.prototype.get_search_regex = function(escaped_search_string) {
|
393
|
+
var regex_anchor;
|
394
|
+
regex_anchor = this.search_contains ? "" : "^";
|
395
|
+
return new RegExp(regex_anchor + escaped_search_string, 'i');
|
396
|
+
};
|
397
|
+
|
398
|
+
AbstractChosen.prototype.search_string_match = function(search_string, regex) {
|
399
|
+
var part, parts, _i, _len;
|
400
|
+
if (regex.test(search_string)) {
|
401
|
+
return true;
|
402
|
+
} else if (this.enable_split_word_search && (search_string.indexOf(" ") >= 0 || search_string.indexOf("[") === 0)) {
|
403
|
+
parts = search_string.replace(/\[|\]/g, "").split(" ");
|
404
|
+
if (parts.length) {
|
405
|
+
for (_i = 0, _len = parts.length; _i < _len; _i++) {
|
406
|
+
part = parts[_i];
|
407
|
+
if (regex.test(part)) {
|
408
|
+
return true;
|
409
|
+
}
|
410
|
+
}
|
411
|
+
}
|
412
|
+
}
|
413
|
+
};
|
414
|
+
|
415
|
+
AbstractChosen.prototype.choices_count = function() {
|
416
|
+
var option, _i, _len, _ref;
|
417
|
+
if (this.selected_option_count != null) {
|
418
|
+
return this.selected_option_count;
|
419
|
+
}
|
420
|
+
this.selected_option_count = 0;
|
421
|
+
_ref = this.form_field.options;
|
422
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
423
|
+
option = _ref[_i];
|
424
|
+
if (option.selected) {
|
425
|
+
this.selected_option_count += 1;
|
426
|
+
}
|
427
|
+
}
|
428
|
+
return this.selected_option_count;
|
429
|
+
};
|
430
|
+
|
431
|
+
AbstractChosen.prototype.choices_click = function(evt) {
|
432
|
+
evt.preventDefault();
|
433
|
+
if (!(this.results_showing || this.is_disabled)) {
|
434
|
+
return this.results_show();
|
435
|
+
}
|
436
|
+
};
|
437
|
+
|
438
|
+
AbstractChosen.prototype.keyup_checker = function(evt) {
|
439
|
+
var stroke, _ref;
|
440
|
+
stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
|
441
|
+
this.search_field_scale();
|
442
|
+
switch (stroke) {
|
443
|
+
case 8:
|
444
|
+
if (this.is_multiple && this.backstroke_length < 1 && this.choices_count() > 0) {
|
445
|
+
return this.keydown_backstroke();
|
446
|
+
} else if (!this.pending_backstroke) {
|
447
|
+
this.result_clear_highlight();
|
448
|
+
return this.results_search();
|
449
|
+
}
|
450
|
+
break;
|
451
|
+
case 13:
|
452
|
+
evt.preventDefault();
|
453
|
+
if (this.results_showing) {
|
454
|
+
return this.result_select(evt);
|
455
|
+
}
|
456
|
+
break;
|
457
|
+
case 27:
|
458
|
+
if (this.results_showing) {
|
459
|
+
this.results_hide();
|
460
|
+
}
|
461
|
+
return true;
|
462
|
+
case 9:
|
463
|
+
case 38:
|
464
|
+
case 40:
|
465
|
+
case 16:
|
466
|
+
case 91:
|
467
|
+
case 17:
|
468
|
+
break;
|
469
|
+
default:
|
470
|
+
return this.results_search();
|
471
|
+
}
|
472
|
+
};
|
473
|
+
|
474
|
+
AbstractChosen.prototype.clipboard_event_checker = function(evt) {
|
475
|
+
var _this = this;
|
476
|
+
return setTimeout((function() {
|
477
|
+
return _this.results_search();
|
478
|
+
}), 50);
|
479
|
+
};
|
480
|
+
|
481
|
+
AbstractChosen.prototype.container_width = function() {
|
482
|
+
if (this.options.width != null) {
|
483
|
+
return this.options.width;
|
484
|
+
} else {
|
485
|
+
return "" + this.form_field.offsetWidth + "px";
|
486
|
+
}
|
487
|
+
};
|
488
|
+
|
489
|
+
AbstractChosen.prototype.include_option_in_results = function(option) {
|
490
|
+
if (this.is_multiple && (!this.display_selected_options && option.selected)) {
|
491
|
+
return false;
|
492
|
+
}
|
493
|
+
if (!this.display_disabled_options && option.disabled) {
|
494
|
+
return false;
|
495
|
+
}
|
496
|
+
if (option.empty) {
|
497
|
+
return false;
|
498
|
+
}
|
499
|
+
return true;
|
500
|
+
};
|
501
|
+
|
502
|
+
AbstractChosen.prototype.search_results_touchstart = function(evt) {
|
503
|
+
this.touch_started = true;
|
504
|
+
return this.search_results_mouseover(evt);
|
505
|
+
};
|
506
|
+
|
507
|
+
AbstractChosen.prototype.search_results_touchmove = function(evt) {
|
508
|
+
this.touch_started = false;
|
509
|
+
return this.search_results_mouseout(evt);
|
510
|
+
};
|
511
|
+
|
512
|
+
AbstractChosen.prototype.search_results_touchend = function(evt) {
|
513
|
+
if (this.touch_started) {
|
514
|
+
return this.search_results_mouseup(evt);
|
515
|
+
}
|
516
|
+
};
|
517
|
+
|
518
|
+
AbstractChosen.prototype.outerHTML = function(element) {
|
519
|
+
var tmp;
|
520
|
+
if (element.outerHTML) {
|
521
|
+
return element.outerHTML;
|
522
|
+
}
|
523
|
+
tmp = document.createElement("div");
|
524
|
+
tmp.appendChild(element);
|
525
|
+
return tmp.innerHTML;
|
526
|
+
};
|
527
|
+
|
528
|
+
AbstractChosen.browser_is_supported = function() {
|
529
|
+
if (window.navigator.appName === "Microsoft Internet Explorer") {
|
530
|
+
return document.documentMode >= 8;
|
531
|
+
}
|
532
|
+
if (/iP(od|hone)/i.test(window.navigator.userAgent)) {
|
533
|
+
return false;
|
534
|
+
}
|
535
|
+
if (/Android/i.test(window.navigator.userAgent)) {
|
536
|
+
if (/Mobile/i.test(window.navigator.userAgent)) {
|
537
|
+
return false;
|
538
|
+
}
|
539
|
+
}
|
540
|
+
return true;
|
541
|
+
};
|
542
|
+
|
543
|
+
AbstractChosen.default_multiple_text = "Select Some Options";
|
544
|
+
|
545
|
+
AbstractChosen.default_single_text = "Select an Option";
|
546
|
+
|
547
|
+
AbstractChosen.default_no_result_text = "No results match";
|
548
|
+
|
549
|
+
return AbstractChosen;
|
550
|
+
|
551
|
+
})();
|
552
|
+
|
553
|
+
$ = jQuery;
|
554
|
+
|
555
|
+
$.fn.extend({
|
556
|
+
chosen: function(options) {
|
557
|
+
if (!AbstractChosen.browser_is_supported()) {
|
558
|
+
return this;
|
559
|
+
}
|
560
|
+
return this.each(function(input_field) {
|
561
|
+
var $this, chosen;
|
562
|
+
$this = $(this);
|
563
|
+
chosen = $this.data('chosen');
|
564
|
+
if (options === 'destroy' && chosen instanceof Chosen) {
|
565
|
+
chosen.destroy();
|
566
|
+
} else if (!(chosen instanceof Chosen)) {
|
567
|
+
$this.data('chosen', new Chosen(this, options));
|
568
|
+
}
|
569
|
+
});
|
570
|
+
}
|
571
|
+
});
|
572
|
+
|
573
|
+
Chosen = (function(_super) {
|
574
|
+
__extends(Chosen, _super);
|
575
|
+
|
576
|
+
function Chosen() {
|
577
|
+
_ref = Chosen.__super__.constructor.apply(this, arguments);
|
578
|
+
return _ref;
|
579
|
+
}
|
580
|
+
|
581
|
+
Chosen.prototype.setup = function() {
|
582
|
+
this.form_field_jq = $(this.form_field);
|
583
|
+
this.current_selectedIndex = this.form_field.selectedIndex;
|
584
|
+
return this.is_rtl = this.form_field_jq.hasClass("chosen-rtl");
|
585
|
+
};
|
586
|
+
|
587
|
+
Chosen.prototype.set_up_html = function() {
|
588
|
+
var container_classes, container_props;
|
589
|
+
container_classes = ["chosen-container"];
|
590
|
+
container_classes.push("chosen-container-" + (this.is_multiple ? "multi" : "single"));
|
591
|
+
if (this.inherit_select_classes && this.form_field.className) {
|
592
|
+
container_classes.push(this.form_field.className);
|
593
|
+
}
|
594
|
+
if (this.is_rtl) {
|
595
|
+
container_classes.push("chosen-rtl");
|
596
|
+
}
|
597
|
+
container_props = {
|
598
|
+
'class': container_classes.join(' '),
|
599
|
+
'style': "width: " + (this.container_width()) + ";",
|
600
|
+
'title': this.form_field.title
|
601
|
+
};
|
602
|
+
if (this.form_field.id.length) {
|
603
|
+
container_props.id = this.form_field.id.replace(/[^\w]/g, '_') + "_chosen";
|
604
|
+
}
|
605
|
+
this.container = $("<div />", container_props);
|
606
|
+
if (this.is_multiple) {
|
607
|
+
this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="' + this.default_text + '" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>');
|
608
|
+
} else {
|
609
|
+
this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>' + this.default_text + '</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>');
|
610
|
+
}
|
611
|
+
this.form_field_jq.hide().after(this.container);
|
612
|
+
this.dropdown = this.container.find('div.chosen-drop').first();
|
613
|
+
this.search_field = this.container.find('input').first();
|
614
|
+
this.search_results = this.container.find('ul.chosen-results').first();
|
615
|
+
this.search_field_scale();
|
616
|
+
this.search_no_results = this.container.find('li.no-results').first();
|
617
|
+
if (this.is_multiple) {
|
618
|
+
this.search_choices = this.container.find('ul.chosen-choices').first();
|
619
|
+
this.search_container = this.container.find('li.search-field').first();
|
620
|
+
} else {
|
621
|
+
this.search_container = this.container.find('div.chosen-search').first();
|
622
|
+
this.selected_item = this.container.find('.chosen-single').first();
|
623
|
+
}
|
624
|
+
this.results_build();
|
625
|
+
this.set_tab_index();
|
626
|
+
return this.set_label_behavior();
|
627
|
+
};
|
628
|
+
|
629
|
+
Chosen.prototype.on_ready = function() {
|
630
|
+
return this.form_field_jq.trigger("chosen:ready", {
|
631
|
+
chosen: this
|
632
|
+
});
|
633
|
+
};
|
634
|
+
|
635
|
+
Chosen.prototype.register_observers = function() {
|
636
|
+
var _this = this;
|
637
|
+
this.container.bind('touchstart.chosen', function(evt) {
|
638
|
+
_this.container_mousedown(evt);
|
639
|
+
return evt.preventDefault();
|
640
|
+
});
|
641
|
+
this.container.bind('touchend.chosen', function(evt) {
|
642
|
+
_this.container_mouseup(evt);
|
643
|
+
return evt.preventDefault();
|
644
|
+
});
|
645
|
+
this.container.bind('mousedown.chosen', function(evt) {
|
646
|
+
_this.container_mousedown(evt);
|
647
|
+
});
|
648
|
+
this.container.bind('mouseup.chosen', function(evt) {
|
649
|
+
_this.container_mouseup(evt);
|
650
|
+
});
|
651
|
+
this.container.bind('mouseenter.chosen', function(evt) {
|
652
|
+
_this.mouse_enter(evt);
|
653
|
+
});
|
654
|
+
this.container.bind('mouseleave.chosen', function(evt) {
|
655
|
+
_this.mouse_leave(evt);
|
656
|
+
});
|
657
|
+
this.search_results.bind('mouseup.chosen', function(evt) {
|
658
|
+
_this.search_results_mouseup(evt);
|
659
|
+
});
|
660
|
+
this.search_results.bind('mouseover.chosen', function(evt) {
|
661
|
+
_this.search_results_mouseover(evt);
|
662
|
+
});
|
663
|
+
this.search_results.bind('mouseout.chosen', function(evt) {
|
664
|
+
_this.search_results_mouseout(evt);
|
665
|
+
});
|
666
|
+
this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen', function(evt) {
|
667
|
+
_this.search_results_mousewheel(evt);
|
668
|
+
});
|
669
|
+
this.search_results.bind('touchstart.chosen', function(evt) {
|
670
|
+
_this.search_results_touchstart(evt);
|
671
|
+
});
|
672
|
+
this.search_results.bind('touchmove.chosen', function(evt) {
|
673
|
+
_this.search_results_touchmove(evt);
|
674
|
+
});
|
675
|
+
this.search_results.bind('touchend.chosen', function(evt) {
|
676
|
+
_this.search_results_touchend(evt);
|
677
|
+
});
|
678
|
+
this.form_field_jq.bind("chosen:updated.chosen", function(evt) {
|
679
|
+
_this.results_update_field(evt);
|
680
|
+
});
|
681
|
+
this.form_field_jq.bind("chosen:activate.chosen", function(evt) {
|
682
|
+
_this.activate_field(evt);
|
683
|
+
});
|
684
|
+
this.form_field_jq.bind("chosen:open.chosen", function(evt) {
|
685
|
+
_this.container_mousedown(evt);
|
686
|
+
});
|
687
|
+
this.form_field_jq.bind("chosen:close.chosen", function(evt) {
|
688
|
+
_this.input_blur(evt);
|
689
|
+
});
|
690
|
+
this.search_field.bind('blur.chosen', function(evt) {
|
691
|
+
_this.input_blur(evt);
|
692
|
+
});
|
693
|
+
this.search_field.bind('keyup.chosen', function(evt) {
|
694
|
+
_this.keyup_checker(evt);
|
695
|
+
});
|
696
|
+
this.search_field.bind('keydown.chosen', function(evt) {
|
697
|
+
_this.keydown_checker(evt);
|
698
|
+
});
|
699
|
+
this.search_field.bind('focus.chosen', function(evt) {
|
700
|
+
_this.input_focus(evt);
|
701
|
+
});
|
702
|
+
this.search_field.bind('cut.chosen', function(evt) {
|
703
|
+
_this.clipboard_event_checker(evt);
|
704
|
+
});
|
705
|
+
this.search_field.bind('paste.chosen', function(evt) {
|
706
|
+
_this.clipboard_event_checker(evt);
|
707
|
+
});
|
708
|
+
if (this.is_multiple) {
|
709
|
+
return this.search_choices.bind('click.chosen', function(evt) {
|
710
|
+
_this.choices_click(evt);
|
711
|
+
});
|
712
|
+
} else {
|
713
|
+
return this.container.bind('click.chosen', function(evt) {
|
714
|
+
evt.preventDefault();
|
715
|
+
});
|
716
|
+
}
|
717
|
+
};
|
718
|
+
|
719
|
+
Chosen.prototype.destroy = function() {
|
720
|
+
$(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
|
721
|
+
if (this.search_field[0].tabIndex) {
|
722
|
+
this.form_field_jq[0].tabIndex = this.search_field[0].tabIndex;
|
723
|
+
}
|
724
|
+
this.container.remove();
|
725
|
+
this.form_field_jq.removeData('chosen');
|
726
|
+
return this.form_field_jq.show();
|
727
|
+
};
|
728
|
+
|
729
|
+
Chosen.prototype.search_field_disabled = function() {
|
730
|
+
this.is_disabled = this.form_field_jq[0].disabled;
|
731
|
+
if (this.is_disabled) {
|
732
|
+
this.container.addClass('chosen-disabled');
|
733
|
+
this.search_field[0].disabled = true;
|
734
|
+
if (!this.is_multiple) {
|
735
|
+
this.selected_item.unbind("focus.chosen", this.activate_action);
|
736
|
+
}
|
737
|
+
return this.close_field();
|
738
|
+
} else {
|
739
|
+
this.container.removeClass('chosen-disabled');
|
740
|
+
this.search_field[0].disabled = false;
|
741
|
+
if (!this.is_multiple) {
|
742
|
+
return this.selected_item.bind("focus.chosen", this.activate_action);
|
743
|
+
}
|
744
|
+
}
|
745
|
+
};
|
746
|
+
|
747
|
+
Chosen.prototype.container_mousedown = function(evt) {
|
748
|
+
if (!this.is_disabled) {
|
749
|
+
if (evt && evt.type === "mousedown" && !this.results_showing) {
|
750
|
+
evt.preventDefault();
|
751
|
+
}
|
752
|
+
if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
|
753
|
+
if (!this.active_field) {
|
754
|
+
if (this.is_multiple) {
|
755
|
+
this.search_field.val("");
|
756
|
+
}
|
757
|
+
$(this.container[0].ownerDocument).bind('click.chosen', this.click_test_action);
|
758
|
+
this.results_show();
|
759
|
+
} else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chosen-single").length)) {
|
760
|
+
evt.preventDefault();
|
761
|
+
this.results_toggle();
|
762
|
+
}
|
763
|
+
return this.activate_field();
|
764
|
+
}
|
765
|
+
}
|
766
|
+
};
|
767
|
+
|
768
|
+
Chosen.prototype.container_mouseup = function(evt) {
|
769
|
+
if (evt.target.nodeName === "ABBR" && !this.is_disabled) {
|
770
|
+
return this.results_reset(evt);
|
771
|
+
}
|
772
|
+
};
|
773
|
+
|
774
|
+
Chosen.prototype.search_results_mousewheel = function(evt) {
|
775
|
+
var delta;
|
776
|
+
if (evt.originalEvent) {
|
777
|
+
delta = evt.originalEvent.deltaY || -evt.originalEvent.wheelDelta || evt.originalEvent.detail;
|
778
|
+
}
|
779
|
+
if (delta != null) {
|
780
|
+
evt.preventDefault();
|
781
|
+
if (evt.type === 'DOMMouseScroll') {
|
782
|
+
delta = delta * 40;
|
783
|
+
}
|
784
|
+
return this.search_results.scrollTop(delta + this.search_results.scrollTop());
|
785
|
+
}
|
786
|
+
};
|
787
|
+
|
788
|
+
Chosen.prototype.blur_test = function(evt) {
|
789
|
+
if (!this.active_field && this.container.hasClass("chosen-container-active")) {
|
790
|
+
return this.close_field();
|
791
|
+
}
|
792
|
+
};
|
793
|
+
|
794
|
+
Chosen.prototype.close_field = function() {
|
795
|
+
$(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
|
796
|
+
this.active_field = false;
|
797
|
+
this.results_hide();
|
798
|
+
this.container.removeClass("chosen-container-active");
|
799
|
+
this.clear_backstroke();
|
800
|
+
this.show_search_field_default();
|
801
|
+
return this.search_field_scale();
|
802
|
+
};
|
803
|
+
|
804
|
+
Chosen.prototype.activate_field = function() {
|
805
|
+
this.container.addClass("chosen-container-active");
|
806
|
+
this.active_field = true;
|
807
|
+
this.search_field.val(this.search_field.val());
|
808
|
+
return this.search_field.focus();
|
809
|
+
};
|
810
|
+
|
811
|
+
Chosen.prototype.test_active_click = function(evt) {
|
812
|
+
var active_container;
|
813
|
+
active_container = $(evt.target).closest('.chosen-container');
|
814
|
+
if (active_container.length && this.container[0] === active_container[0]) {
|
815
|
+
return this.active_field = true;
|
816
|
+
} else {
|
817
|
+
return this.close_field();
|
818
|
+
}
|
819
|
+
};
|
820
|
+
|
821
|
+
Chosen.prototype.results_build = function() {
|
822
|
+
this.parsing = true;
|
823
|
+
this.selected_option_count = null;
|
824
|
+
this.results_data = SelectParser.select_to_array(this.form_field);
|
825
|
+
if (this.is_multiple) {
|
826
|
+
this.search_choices.find("li.search-choice").remove();
|
827
|
+
} else if (!this.is_multiple) {
|
828
|
+
this.single_set_selected_text();
|
829
|
+
if (this.disable_search || this.form_field.options.length <= this.disable_search_threshold) {
|
830
|
+
this.search_field[0].readOnly = true;
|
831
|
+
this.container.addClass("chosen-container-single-nosearch");
|
832
|
+
} else {
|
833
|
+
this.search_field[0].readOnly = false;
|
834
|
+
this.container.removeClass("chosen-container-single-nosearch");
|
835
|
+
}
|
836
|
+
}
|
837
|
+
this.update_results_content(this.results_option_build({
|
838
|
+
first: true
|
839
|
+
}));
|
840
|
+
this.search_field_disabled();
|
841
|
+
this.show_search_field_default();
|
842
|
+
this.search_field_scale();
|
843
|
+
return this.parsing = false;
|
844
|
+
};
|
845
|
+
|
846
|
+
Chosen.prototype.result_do_highlight = function(el) {
|
847
|
+
var high_bottom, high_top, maxHeight, visible_bottom, visible_top;
|
848
|
+
if (el.length) {
|
849
|
+
this.result_clear_highlight();
|
850
|
+
this.result_highlight = el;
|
851
|
+
this.result_highlight.addClass("highlighted");
|
852
|
+
maxHeight = parseInt(this.search_results.css("maxHeight"), 10);
|
853
|
+
visible_top = this.search_results.scrollTop();
|
854
|
+
visible_bottom = maxHeight + visible_top;
|
855
|
+
high_top = this.result_highlight.position().top + this.search_results.scrollTop();
|
856
|
+
high_bottom = high_top + this.result_highlight.outerHeight();
|
857
|
+
if (high_bottom >= visible_bottom) {
|
858
|
+
return this.search_results.scrollTop((high_bottom - maxHeight) > 0 ? high_bottom - maxHeight : 0);
|
859
|
+
} else if (high_top < visible_top) {
|
860
|
+
return this.search_results.scrollTop(high_top);
|
861
|
+
}
|
862
|
+
}
|
863
|
+
};
|
864
|
+
|
865
|
+
Chosen.prototype.result_clear_highlight = function() {
|
866
|
+
if (this.result_highlight) {
|
867
|
+
this.result_highlight.removeClass("highlighted");
|
868
|
+
}
|
869
|
+
return this.result_highlight = null;
|
870
|
+
};
|
871
|
+
|
872
|
+
Chosen.prototype.results_show = function() {
|
873
|
+
if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
|
874
|
+
this.form_field_jq.trigger("chosen:maxselected", {
|
875
|
+
chosen: this
|
876
|
+
});
|
877
|
+
return false;
|
878
|
+
}
|
879
|
+
this.container.addClass("chosen-with-drop");
|
880
|
+
this.results_showing = true;
|
881
|
+
this.search_field.focus();
|
882
|
+
this.search_field.val(this.search_field.val());
|
883
|
+
this.winnow_results();
|
884
|
+
return this.form_field_jq.trigger("chosen:showing_dropdown", {
|
885
|
+
chosen: this
|
886
|
+
});
|
887
|
+
};
|
888
|
+
|
889
|
+
Chosen.prototype.update_results_content = function(content) {
|
890
|
+
return this.search_results.html(content);
|
891
|
+
};
|
892
|
+
|
893
|
+
Chosen.prototype.results_hide = function() {
|
894
|
+
if (this.results_showing) {
|
895
|
+
this.result_clear_highlight();
|
896
|
+
this.container.removeClass("chosen-with-drop");
|
897
|
+
this.form_field_jq.trigger("chosen:hiding_dropdown", {
|
898
|
+
chosen: this
|
899
|
+
});
|
900
|
+
}
|
901
|
+
return this.results_showing = false;
|
902
|
+
};
|
903
|
+
|
904
|
+
Chosen.prototype.set_tab_index = function(el) {
|
905
|
+
var ti;
|
906
|
+
if (this.form_field.tabIndex) {
|
907
|
+
ti = this.form_field.tabIndex;
|
908
|
+
this.form_field.tabIndex = -1;
|
909
|
+
return this.search_field[0].tabIndex = ti;
|
910
|
+
}
|
911
|
+
};
|
912
|
+
|
913
|
+
Chosen.prototype.set_label_behavior = function() {
|
914
|
+
var _this = this;
|
915
|
+
this.form_field_label = this.form_field_jq.parents("label");
|
916
|
+
if (!this.form_field_label.length && this.form_field.id.length) {
|
917
|
+
this.form_field_label = $("label[for='" + this.form_field.id + "']");
|
918
|
+
}
|
919
|
+
if (this.form_field_label.length > 0) {
|
920
|
+
return this.form_field_label.bind('click.chosen', function(evt) {
|
921
|
+
if (_this.is_multiple) {
|
922
|
+
return _this.container_mousedown(evt);
|
923
|
+
} else {
|
924
|
+
return _this.activate_field();
|
925
|
+
}
|
926
|
+
});
|
927
|
+
}
|
928
|
+
};
|
929
|
+
|
930
|
+
Chosen.prototype.show_search_field_default = function() {
|
931
|
+
if (this.is_multiple && this.choices_count() < 1 && !this.active_field) {
|
932
|
+
this.search_field.val(this.default_text);
|
933
|
+
return this.search_field.addClass("default");
|
934
|
+
} else {
|
935
|
+
this.search_field.val("");
|
936
|
+
return this.search_field.removeClass("default");
|
937
|
+
}
|
938
|
+
};
|
939
|
+
|
940
|
+
Chosen.prototype.search_results_mouseup = function(evt) {
|
941
|
+
var target;
|
942
|
+
target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
|
943
|
+
if (target.length) {
|
944
|
+
this.result_highlight = target;
|
945
|
+
this.result_select(evt);
|
946
|
+
return this.search_field.focus();
|
947
|
+
}
|
948
|
+
};
|
949
|
+
|
950
|
+
Chosen.prototype.search_results_mouseover = function(evt) {
|
951
|
+
var target;
|
952
|
+
target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
|
953
|
+
if (target) {
|
954
|
+
return this.result_do_highlight(target);
|
955
|
+
}
|
956
|
+
};
|
957
|
+
|
958
|
+
Chosen.prototype.search_results_mouseout = function(evt) {
|
959
|
+
if ($(evt.target).hasClass("active-result" || $(evt.target).parents('.active-result').first())) {
|
960
|
+
return this.result_clear_highlight();
|
961
|
+
}
|
962
|
+
};
|
963
|
+
|
964
|
+
Chosen.prototype.choice_build = function(item) {
|
965
|
+
var choice, close_link,
|
966
|
+
_this = this;
|
967
|
+
choice = $('<li />', {
|
968
|
+
"class": "search-choice"
|
969
|
+
}).html("<span>" + (this.choice_label(item)) + "</span>");
|
970
|
+
if (item.disabled) {
|
971
|
+
choice.addClass('search-choice-disabled');
|
972
|
+
} else {
|
973
|
+
close_link = $('<a />', {
|
974
|
+
"class": 'search-choice-close',
|
975
|
+
'data-option-array-index': item.array_index
|
976
|
+
});
|
977
|
+
close_link.bind('click.chosen', function(evt) {
|
978
|
+
return _this.choice_destroy_link_click(evt);
|
979
|
+
});
|
980
|
+
choice.append(close_link);
|
981
|
+
}
|
982
|
+
return this.search_container.before(choice);
|
983
|
+
};
|
984
|
+
|
985
|
+
Chosen.prototype.choice_destroy_link_click = function(evt) {
|
986
|
+
evt.preventDefault();
|
987
|
+
evt.stopPropagation();
|
988
|
+
if (!this.is_disabled) {
|
989
|
+
return this.choice_destroy($(evt.target));
|
990
|
+
}
|
991
|
+
};
|
992
|
+
|
993
|
+
Chosen.prototype.choice_destroy = function(link) {
|
994
|
+
if (this.result_deselect(link[0].getAttribute("data-option-array-index"))) {
|
995
|
+
this.show_search_field_default();
|
996
|
+
if (this.is_multiple && this.choices_count() > 0 && this.search_field.val().length < 1) {
|
997
|
+
this.results_hide();
|
998
|
+
}
|
999
|
+
link.parents('li').first().remove();
|
1000
|
+
return this.search_field_scale();
|
1001
|
+
}
|
1002
|
+
};
|
1003
|
+
|
1004
|
+
Chosen.prototype.results_reset = function() {
|
1005
|
+
this.reset_single_select_options();
|
1006
|
+
this.form_field.options[0].selected = true;
|
1007
|
+
this.single_set_selected_text();
|
1008
|
+
this.show_search_field_default();
|
1009
|
+
this.results_reset_cleanup();
|
1010
|
+
this.form_field_jq.trigger("change");
|
1011
|
+
if (this.active_field) {
|
1012
|
+
return this.results_hide();
|
1013
|
+
}
|
1014
|
+
};
|
1015
|
+
|
1016
|
+
Chosen.prototype.results_reset_cleanup = function() {
|
1017
|
+
this.current_selectedIndex = this.form_field.selectedIndex;
|
1018
|
+
return this.selected_item.find("abbr").remove();
|
1019
|
+
};
|
1020
|
+
|
1021
|
+
Chosen.prototype.result_select = function(evt) {
|
1022
|
+
var high, item;
|
1023
|
+
if (this.result_highlight) {
|
1024
|
+
high = this.result_highlight;
|
1025
|
+
this.result_clear_highlight();
|
1026
|
+
if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
|
1027
|
+
this.form_field_jq.trigger("chosen:maxselected", {
|
1028
|
+
chosen: this
|
1029
|
+
});
|
1030
|
+
return false;
|
1031
|
+
}
|
1032
|
+
if (this.is_multiple) {
|
1033
|
+
high.removeClass("active-result");
|
1034
|
+
} else {
|
1035
|
+
this.reset_single_select_options();
|
1036
|
+
}
|
1037
|
+
high.addClass("result-selected");
|
1038
|
+
item = this.results_data[high[0].getAttribute("data-option-array-index")];
|
1039
|
+
item.selected = true;
|
1040
|
+
this.form_field.options[item.options_index].selected = true;
|
1041
|
+
this.selected_option_count = null;
|
1042
|
+
if (this.is_multiple) {
|
1043
|
+
this.choice_build(item);
|
1044
|
+
} else {
|
1045
|
+
this.single_set_selected_text(this.choice_label(item));
|
1046
|
+
}
|
1047
|
+
if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
|
1048
|
+
this.results_hide();
|
1049
|
+
}
|
1050
|
+
this.search_field.val("");
|
1051
|
+
if (this.is_multiple || this.form_field.selectedIndex !== this.current_selectedIndex) {
|
1052
|
+
this.form_field_jq.trigger("change", {
|
1053
|
+
'selected': this.form_field.options[item.options_index].value
|
1054
|
+
});
|
1055
|
+
}
|
1056
|
+
this.current_selectedIndex = this.form_field.selectedIndex;
|
1057
|
+
evt.preventDefault();
|
1058
|
+
return this.search_field_scale();
|
1059
|
+
}
|
1060
|
+
};
|
1061
|
+
|
1062
|
+
Chosen.prototype.single_set_selected_text = function(text) {
|
1063
|
+
if (text == null) {
|
1064
|
+
text = this.default_text;
|
1065
|
+
}
|
1066
|
+
if (text === this.default_text) {
|
1067
|
+
this.selected_item.addClass("chosen-default");
|
1068
|
+
} else {
|
1069
|
+
this.single_deselect_control_build();
|
1070
|
+
this.selected_item.removeClass("chosen-default");
|
1071
|
+
}
|
1072
|
+
return this.selected_item.find("span").html(text);
|
1073
|
+
};
|
1074
|
+
|
1075
|
+
Chosen.prototype.result_deselect = function(pos) {
|
1076
|
+
var result_data;
|
1077
|
+
result_data = this.results_data[pos];
|
1078
|
+
if (!this.form_field.options[result_data.options_index].disabled) {
|
1079
|
+
result_data.selected = false;
|
1080
|
+
this.form_field.options[result_data.options_index].selected = false;
|
1081
|
+
this.selected_option_count = null;
|
1082
|
+
this.result_clear_highlight();
|
1083
|
+
if (this.results_showing) {
|
1084
|
+
this.winnow_results();
|
1085
|
+
}
|
1086
|
+
this.form_field_jq.trigger("change", {
|
1087
|
+
deselected: this.form_field.options[result_data.options_index].value
|
1088
|
+
});
|
1089
|
+
this.search_field_scale();
|
1090
|
+
return true;
|
1091
|
+
} else {
|
1092
|
+
return false;
|
1093
|
+
}
|
1094
|
+
};
|
1095
|
+
|
1096
|
+
Chosen.prototype.single_deselect_control_build = function() {
|
1097
|
+
if (!this.allow_single_deselect) {
|
1098
|
+
return;
|
1099
|
+
}
|
1100
|
+
if (!this.selected_item.find("abbr").length) {
|
1101
|
+
this.selected_item.find("span").first().after("<abbr class=\"search-choice-close\"></abbr>");
|
1102
|
+
}
|
1103
|
+
return this.selected_item.addClass("chosen-single-with-deselect");
|
1104
|
+
};
|
1105
|
+
|
1106
|
+
Chosen.prototype.get_search_text = function() {
|
1107
|
+
return $('<div/>').text($.trim(this.search_field.val())).html();
|
1108
|
+
};
|
1109
|
+
|
1110
|
+
Chosen.prototype.winnow_results_set_highlight = function() {
|
1111
|
+
var do_high, selected_results;
|
1112
|
+
selected_results = !this.is_multiple ? this.search_results.find(".result-selected.active-result") : [];
|
1113
|
+
do_high = selected_results.length ? selected_results.first() : this.search_results.find(".active-result").first();
|
1114
|
+
if (do_high != null) {
|
1115
|
+
return this.result_do_highlight(do_high);
|
1116
|
+
}
|
1117
|
+
};
|
1118
|
+
|
1119
|
+
Chosen.prototype.no_results = function(terms) {
|
1120
|
+
var no_results_html;
|
1121
|
+
no_results_html = $('<li class="no-results">' + this.results_none_found + ' "<span></span>"</li>');
|
1122
|
+
no_results_html.find("span").first().html(terms);
|
1123
|
+
this.search_results.append(no_results_html);
|
1124
|
+
return this.form_field_jq.trigger("chosen:no_results", {
|
1125
|
+
chosen: this
|
1126
|
+
});
|
1127
|
+
};
|
1128
|
+
|
1129
|
+
Chosen.prototype.no_results_clear = function() {
|
1130
|
+
return this.search_results.find(".no-results").remove();
|
1131
|
+
};
|
1132
|
+
|
1133
|
+
Chosen.prototype.keydown_arrow = function() {
|
1134
|
+
var next_sib;
|
1135
|
+
if (this.results_showing && this.result_highlight) {
|
1136
|
+
next_sib = this.result_highlight.nextAll("li.active-result").first();
|
1137
|
+
if (next_sib) {
|
1138
|
+
return this.result_do_highlight(next_sib);
|
1139
|
+
}
|
1140
|
+
} else {
|
1141
|
+
return this.results_show();
|
1142
|
+
}
|
1143
|
+
};
|
1144
|
+
|
1145
|
+
Chosen.prototype.keyup_arrow = function() {
|
1146
|
+
var prev_sibs;
|
1147
|
+
if (!this.results_showing && !this.is_multiple) {
|
1148
|
+
return this.results_show();
|
1149
|
+
} else if (this.result_highlight) {
|
1150
|
+
prev_sibs = this.result_highlight.prevAll("li.active-result");
|
1151
|
+
if (prev_sibs.length) {
|
1152
|
+
return this.result_do_highlight(prev_sibs.first());
|
1153
|
+
} else {
|
1154
|
+
if (this.choices_count() > 0) {
|
1155
|
+
this.results_hide();
|
1156
|
+
}
|
1157
|
+
return this.result_clear_highlight();
|
1158
|
+
}
|
1159
|
+
}
|
1160
|
+
};
|
1161
|
+
|
1162
|
+
Chosen.prototype.keydown_backstroke = function() {
|
1163
|
+
var next_available_destroy;
|
1164
|
+
if (this.pending_backstroke) {
|
1165
|
+
this.choice_destroy(this.pending_backstroke.find("a").first());
|
1166
|
+
return this.clear_backstroke();
|
1167
|
+
} else {
|
1168
|
+
next_available_destroy = this.search_container.siblings("li.search-choice").last();
|
1169
|
+
if (next_available_destroy.length && !next_available_destroy.hasClass("search-choice-disabled")) {
|
1170
|
+
this.pending_backstroke = next_available_destroy;
|
1171
|
+
if (this.single_backstroke_delete) {
|
1172
|
+
return this.keydown_backstroke();
|
1173
|
+
} else {
|
1174
|
+
return this.pending_backstroke.addClass("search-choice-focus");
|
1175
|
+
}
|
1176
|
+
}
|
1177
|
+
}
|
1178
|
+
};
|
1179
|
+
|
1180
|
+
Chosen.prototype.clear_backstroke = function() {
|
1181
|
+
if (this.pending_backstroke) {
|
1182
|
+
this.pending_backstroke.removeClass("search-choice-focus");
|
1183
|
+
}
|
1184
|
+
return this.pending_backstroke = null;
|
1185
|
+
};
|
1186
|
+
|
1187
|
+
Chosen.prototype.keydown_checker = function(evt) {
|
1188
|
+
var stroke, _ref1;
|
1189
|
+
stroke = (_ref1 = evt.which) != null ? _ref1 : evt.keyCode;
|
1190
|
+
this.search_field_scale();
|
1191
|
+
if (stroke !== 8 && this.pending_backstroke) {
|
1192
|
+
this.clear_backstroke();
|
1193
|
+
}
|
1194
|
+
switch (stroke) {
|
1195
|
+
case 8:
|
1196
|
+
this.backstroke_length = this.search_field.val().length;
|
1197
|
+
break;
|
1198
|
+
case 9:
|
1199
|
+
if (this.results_showing && !this.is_multiple) {
|
1200
|
+
this.result_select(evt);
|
1201
|
+
}
|
1202
|
+
this.mouse_on_container = false;
|
1203
|
+
break;
|
1204
|
+
case 13:
|
1205
|
+
if (this.results_showing) {
|
1206
|
+
evt.preventDefault();
|
1207
|
+
}
|
1208
|
+
break;
|
1209
|
+
case 32:
|
1210
|
+
if (this.disable_search) {
|
1211
|
+
evt.preventDefault();
|
1212
|
+
}
|
1213
|
+
break;
|
1214
|
+
case 38:
|
1215
|
+
evt.preventDefault();
|
1216
|
+
this.keyup_arrow();
|
1217
|
+
break;
|
1218
|
+
case 40:
|
1219
|
+
evt.preventDefault();
|
1220
|
+
this.keydown_arrow();
|
1221
|
+
break;
|
1222
|
+
}
|
1223
|
+
};
|
1224
|
+
|
1225
|
+
Chosen.prototype.search_field_scale = function() {
|
1226
|
+
var div, f_width, h, style, style_block, styles, w, _i, _len;
|
1227
|
+
if (this.is_multiple) {
|
1228
|
+
h = 0;
|
1229
|
+
w = 0;
|
1230
|
+
style_block = "position:absolute; left: -1000px; top: -1000px; display:none;";
|
1231
|
+
styles = ['font-size', 'font-style', 'font-weight', 'font-family', 'line-height', 'text-transform', 'letter-spacing'];
|
1232
|
+
for (_i = 0, _len = styles.length; _i < _len; _i++) {
|
1233
|
+
style = styles[_i];
|
1234
|
+
style_block += style + ":" + this.search_field.css(style) + ";";
|
1235
|
+
}
|
1236
|
+
div = $('<div />', {
|
1237
|
+
'style': style_block
|
1238
|
+
});
|
1239
|
+
div.text(this.search_field.val());
|
1240
|
+
$('body').append(div);
|
1241
|
+
w = div.width() + 25;
|
1242
|
+
div.remove();
|
1243
|
+
f_width = this.container.outerWidth();
|
1244
|
+
if (w > f_width - 10) {
|
1245
|
+
w = f_width - 10;
|
1246
|
+
}
|
1247
|
+
return this.search_field.css({
|
1248
|
+
'width': w + 'px'
|
1249
|
+
});
|
1250
|
+
}
|
1251
|
+
};
|
1252
|
+
|
1253
|
+
return Chosen;
|
1254
|
+
|
1255
|
+
})(AbstractChosen);
|
1256
|
+
|
1257
|
+
}).call(this);
|