compass-jquery-plugin 0.3.2.5 → 0.3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -1
- data/VERSION.yml +2 -2
- data/lib/handle_js_files.rb +21 -0
- data/lib/jquery/gridify/grid_view.rb +2 -2
- data/lib/jquery/jquery_selector_assertions.rb +0 -36
- data/lib/jquery/tiny_mce.rb +5 -0
- data/templates/dynatree/jquery.dynatree.js +17 -24
- data/templates/dynatree/jquery.dynatree.min.js +10 -10
- data/templates/ical/jquery.ical.js +107 -25
- data/templates/ical/jquery.ical.min.js +182 -180
- data/templates/ical/jquery/ical.scss +2 -2
- data/templates/jqgrid/jquery.jqGrid.js +2498 -2072
- data/templates/jqgrid/jquery.jqGrid.min.js +447 -431
- data/templates/jqgrid/jquery/jqGrid.scss +11 -9
- data/templates/jquery/history.adapter.jquery.js +52 -52
- data/templates/jquery/history.html4.js +680 -680
- data/templates/jquery/history.js +1288 -1288
- data/templates/jquery/jquery.js +8168 -8143
- data/templates/jquery/jquery/ui/cowboy.scss +87 -0
- data/templates/jquery/jquery/ui/cowboy/cowboy_hat.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-anim_basic_16x16.gif +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-bg_diagonals-thick_20_ff7f00_40x40.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-bg_flat_10_000000_40x100.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-bg_glass_100_fdebdc_1x400.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-bg_glass_100_ffd6af_1x400.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-bg_glass_65_eeeeee_1x400.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-bg_gloss-wave_35_ff7f00_500x100.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-bg_highlight-soft_100_dddddd_1x100.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-bg_highlight-soft_75_c4884f_1x100.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-icons_222222_256x240.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-icons_228ef1_256x240.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-icons_333333_256x240.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-icons_913d00_256x240.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-icons_ff7f00_256x240.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-icons_ffd27a_256x240.png +0 -0
- data/templates/jquery/jquery/ui/cowboy/ui-icons_ffffff_256x240.png +0 -0
- data/templates/jquery/json2.js +214 -214
- data/templates/jquery/manifest.rb +19 -0
- data/templates/mobile/jquery.mobile.js +149 -96
- data/templates/mobile/jquery.mobile.min.js +2 -2
- data/templates/secret_sauce/app/views/shared/_ui_grid_for_without_block.js.haml +1 -1
- data/templates/tiny_mce/config/initializers/tiny_mce.rb +3 -0
- data/templates/tiny_mce/manifest.rb +251 -0
- data/templates/tiny_mce/tiny_mce/jquery.tinymce.js +1 -0
- data/templates/tiny_mce/tiny_mce/langs/en.js +222 -0
- data/templates/tiny_mce/tiny_mce/license.txt +504 -0
- data/templates/tiny_mce/tiny_mce/plugins/advhr/css/advhr.css +5 -0
- data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin_src.js +57 -0
- data/templates/tiny_mce/tiny_mce/plugins/advhr/js/rule.js +43 -0
- data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/en_dlg.js +7 -0
- data/templates/tiny_mce/tiny_mce/plugins/advhr/rule.htm +58 -0
- data/templates/tiny_mce/tiny_mce/plugins/advimage/css/advimage.css +13 -0
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin_src.js +50 -0
- data/templates/tiny_mce/tiny_mce/plugins/advimage/image.htm +235 -0
- data/templates/tiny_mce/tiny_mce/plugins/advimage/img/sample.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/advimage/js/image.js +445 -0
- data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/en_dlg.js +45 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlink/css/advlink.css +8 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin_src.js +61 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlink/js/advlink.js +525 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/en_dlg.js +54 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlink/link.htm +338 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin_src.js +154 -0
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin_src.js +119 -0
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin_src.js +431 -0
- data/templates/tiny_mce/tiny_mce/plugins/autosave/langs/en.js +4 -0
- data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin_src.js +120 -0
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin_src.js +154 -0
- data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin_src.js +82 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin_src.js +43 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/emotions.htm +41 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/js/emotions.js +22 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
- data/templates/tiny_mce/tiny_mce/plugins/example/dialog.htm +22 -0
- data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin_src.js +84 -0
- data/templates/tiny_mce/tiny_mce/plugins/example/img/example.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/example/js/dialog.js +19 -0
- data/templates/tiny_mce/tiny_mce/plugins/example/langs/en.js +3 -0
- data/templates/tiny_mce/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/css/fullpage.css +182 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin_src.js +166 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/fullpage.htm +571 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/js/fullpage.js +492 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin_src.js +159 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/fullscreen.htm +109 -0
- data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin_src.js +54 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +696 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/template.htm +387 -0
- data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +83 -0
- data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin_src.js +214 -0
- data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +139 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/css/media.css +17 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin_src.js +770 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/js/embed.js +73 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/js/media.js +340 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/langs/en_dlg.js +109 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/media.htm +812 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/moxieplayer.swf +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +53 -0
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin_src.js +90 -0
- data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin_src.js +74 -0
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin_src.js +899 -0
- data/templates/tiny_mce/tiny_mce/plugins/paste/js/pastetext.js +36 -0
- data/templates/tiny_mce/tiny_mce/plugins/paste/js/pasteword.js +51 -0
- data/templates/tiny_mce/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
- data/templates/tiny_mce/tiny_mce/plugins/paste/pastetext.htm +27 -0
- data/templates/tiny_mce/tiny_mce/plugins/paste/pasteword.htm +21 -0
- data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin_src.js +53 -0
- data/templates/tiny_mce/tiny_mce/plugins/preview/example.html +28 -0
- data/templates/tiny_mce/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
- data/templates/tiny_mce/tiny_mce/plugins/preview/preview.html +17 -0
- data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin_src.js +34 -0
- data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin_src.js +101 -0
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin_src.js +61 -0
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/js/searchreplace.js +140 -0
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/searchreplace.htm +100 -0
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/css/content.css +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin_src.js +415 -0
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
- data/templates/tiny_mce/tiny_mce/plugins/style/css/props.css +13 -0
- data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin_src.js +55 -0
- data/templates/tiny_mce/tiny_mce/plugins/style/js/props.js +635 -0
- data/templates/tiny_mce/tiny_mce/plugins/style/langs/en_dlg.js +70 -0
- data/templates/tiny_mce/tiny_mce/plugins/style/props.htm +838 -0
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin_src.js +114 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/cell.htm +178 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/css/cell.css +17 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/css/row.css +25 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/css/table.css +13 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin_src.js +1183 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/js/cell.js +284 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/js/merge_cells.js +27 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/js/row.js +232 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/js/table.js +450 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/merge_cells.htm +32 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/row.htm +157 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/table.htm +188 -0
- data/templates/tiny_mce/tiny_mce/plugins/template/blank.htm +12 -0
- data/templates/tiny_mce/tiny_mce/plugins/template/css/template.css +23 -0
- data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin_src.js +159 -0
- data/templates/tiny_mce/tiny_mce/plugins/template/js/template.js +106 -0
- data/templates/tiny_mce/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
- data/templates/tiny_mce/tiny_mce/plugins/template/template.htm +31 -0
- data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin_src.js +83 -0
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin_src.js +114 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/abbr.htm +142 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/acronym.htm +142 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/attributes.htm +149 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/cite.htm +142 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/del.htm +162 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/ins.htm +162 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/attributes.js +125 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/del.js +53 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/element_common.js +229 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/ins.js +53 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/about.htm +52 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/anchor.htm +26 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/charmap.htm +51 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/color_picker.htm +74 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template_src.js +1328 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/image.htm +80 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/flash.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/iframe.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/trans.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/video.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/about.js +73 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/anchor.js +42 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/charmap.js +354 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/color_picker.js +329 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/image.js +247 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/link.js +153 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/source_editor.js +56 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en.js +68 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en_dlg.js +54 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/link.htm +57 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/shortcuts.htm +47 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/content.css +47 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/dialog.css +117 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/ui.css +213 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/content.css +23 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +105 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/ui.css +101 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/content.css +46 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/dialog.css +116 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui.css +215 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/source_editor.htm +25 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/editor_template.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/editor_template_src.js +84 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/img/icons.gif +0 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/langs/en.js +11 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/content.css +25 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/ui.css +32 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
- data/templates/tiny_mce/tiny_mce/tiny_mce.js +1 -0
- data/templates/tiny_mce/tiny_mce/tiny_mce_popup.js +5 -0
- data/templates/tiny_mce/tiny_mce/utils/editable_selects.js +70 -0
- data/templates/tiny_mce/tiny_mce/utils/form_utils.js +207 -0
- data/templates/tiny_mce/tiny_mce/utils/mctabs.js +162 -0
- data/templates/tiny_mce/tiny_mce/utils/validate.js +252 -0
- metadata +273 -4
@@ -126,15 +126,17 @@ tr.ui-search-toolbar {
|
|
126
126
|
table-layout: fixed;
|
127
127
|
margin: 0em; }
|
128
128
|
tr {
|
129
|
-
&.jqgrow
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
129
|
+
&.jqgrow {
|
130
|
+
outline-style: none;
|
131
|
+
td {
|
132
|
+
font-weight: normal;
|
133
|
+
overflow: hidden;
|
134
|
+
white-space: pre;
|
135
|
+
height: 22px;
|
136
|
+
padding: 0 2px 0 2px;
|
137
|
+
border-bottom-width: 1px;
|
138
|
+
border-bottom-color: inherit;
|
139
|
+
border-bottom-style: solid; } }
|
138
140
|
&.jqgfirstrow td {
|
139
141
|
padding: 0 2px 0 2px;
|
140
142
|
border-right-width: 1px;
|
@@ -5,67 +5,67 @@
|
|
5
5
|
* @license New BSD License - http://creativecommons.org/licenses/BSD/
|
6
6
|
*/
|
7
7
|
|
8
|
-
(function($,window,undefined){
|
8
|
+
(function($, window, undefined) {
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
// --------------------------------------------------------------------------
|
11
|
+
// Initialise
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
// History Object
|
14
|
+
window.History = window.History || {};
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
// Localise Globals
|
17
|
+
var
|
18
|
+
History = window.History || {},
|
19
|
+
history = window.history;
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
// Check Existence of Adapter
|
22
|
+
if (typeof History.Adapter !== 'undefined') {
|
23
|
+
throw new Error('History.js Adapter has already been loaded...');
|
24
|
+
}
|
25
25
|
|
26
|
-
|
27
|
-
|
26
|
+
// Add the Adapter
|
27
|
+
History.Adapter = {
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
29
|
+
/**
|
30
|
+
* History.Adapter.bind(el,event,callback)
|
31
|
+
* @param {element} el
|
32
|
+
* @param {string} event
|
33
|
+
* @param {Function} callback
|
34
|
+
* @return {element}
|
35
|
+
*/
|
36
|
+
bind: function(el, event, callback) {
|
37
|
+
return $(el).bind(event, callback);
|
38
|
+
},
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
40
|
+
/**
|
41
|
+
* History.Adapter.trigger(el,event)
|
42
|
+
* @param {element} el
|
43
|
+
* @param {string} event
|
44
|
+
* @return {element}
|
45
|
+
*/
|
46
|
+
trigger: function(el, event) {
|
47
|
+
return $(el).trigger(event);
|
48
|
+
},
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
50
|
+
/**
|
51
|
+
* History.Adapter.trigger(el,event,data)
|
52
|
+
* @param {Function} callback
|
53
|
+
* @return {true}
|
54
|
+
*/
|
55
|
+
onDomLoad: function(callback) {
|
56
|
+
jQuery(callback);
|
57
|
+
}
|
58
58
|
|
59
|
-
|
59
|
+
};
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
61
|
+
// Check Load Status of HTML5 Support
|
62
|
+
if (typeof History.initHtml5 !== 'undefined') {
|
63
|
+
History.initHtml5();
|
64
|
+
}
|
65
65
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
66
|
+
// Check Load Status of HTML4 Support
|
67
|
+
if (typeof History.initHtml4 !== 'undefined') {
|
68
|
+
History.initHtml4();
|
69
|
+
}
|
70
70
|
|
71
|
-
})(jQuery,window);
|
71
|
+
})(jQuery, window);
|
@@ -6,685 +6,685 @@
|
|
6
6
|
* @license New BSD License <http://creativecommons.org/licenses/BSD/>
|
7
7
|
*/
|
8
8
|
|
9
|
-
(function(window,undefined){
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
9
|
+
(function(window, undefined) {
|
10
|
+
|
11
|
+
// --------------------------------------------------------------------------
|
12
|
+
// Initialise
|
13
|
+
|
14
|
+
// History Object
|
15
|
+
window.History = window.History || {};
|
16
|
+
window._History = window._History || {};
|
17
|
+
|
18
|
+
// Localise Globals
|
19
|
+
var
|
20
|
+
document = window.document, // Make sure we are using the correct document
|
21
|
+
_History = window._History, // Private History Object
|
22
|
+
History = window.History; // Public History Object
|
23
|
+
|
24
|
+
// Check Existence of History.js
|
25
|
+
if (typeof History.initHtml4 !== 'undefined') {
|
26
|
+
throw new Error('History.js HTML4 Support has already been loaded...');
|
27
|
+
}
|
28
|
+
|
29
|
+
// Initialise HTML4 Support
|
30
|
+
History.initHtml4 = function() {
|
31
|
+
|
32
|
+
// ----------------------------------------------------------------------
|
33
|
+
// Check Status
|
34
|
+
|
35
|
+
if (typeof History.initHtml5 === 'undefined' || typeof History.Adapter === 'undefined') {
|
36
|
+
return false;
|
37
|
+
}
|
38
|
+
|
39
|
+
// ----------------------------------------------------------------------
|
40
|
+
// Emulated Status
|
41
|
+
|
42
|
+
/**
|
43
|
+
* _History.getInternetExplorerMajorVersion()
|
44
|
+
* Get's the major version of Internet Explorer
|
45
|
+
* @return {integer}
|
46
|
+
* @license Public Domain
|
47
|
+
* @author Benjamin Arthur Lupton <contact@balupton.com>
|
48
|
+
* @author James Padolsey <https://gist.github.com/527683>
|
49
|
+
*/
|
50
|
+
_History.getInternetExplorerMajorVersion = function() {
|
51
|
+
var result = _History.getInternetExplorerMajorVersion.cached =
|
52
|
+
(typeof _History.getInternetExplorerMajorVersion.cached !== 'undefined')
|
53
|
+
? _History.getInternetExplorerMajorVersion.cached
|
54
|
+
: (function() {
|
55
|
+
var undef,
|
56
|
+
v = 3,
|
57
|
+
div = document.createElement('div'),
|
58
|
+
all = div.getElementsByTagName('i');
|
59
|
+
while (
|
60
|
+
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
|
61
|
+
all[0]
|
62
|
+
);
|
63
|
+
return v > 4 ? v : undef;
|
64
|
+
})()
|
65
|
+
;
|
66
|
+
return result;
|
67
|
+
};
|
68
|
+
|
69
|
+
/**
|
70
|
+
* _History.isInternetExplorer()
|
71
|
+
* Are we using Internet Explorer?
|
72
|
+
* @return {boolean}
|
73
|
+
* @license Public Domain
|
74
|
+
* @author Benjamin Arthur Lupton <contact@balupton.com>
|
75
|
+
*/
|
76
|
+
_History.isInternetExplorer = function() {
|
77
|
+
var result = _History.isInternetExplorer.cached =
|
78
|
+
(typeof _History.isInternetExplorer.cached !== 'undefined')
|
79
|
+
? _History.isInternetExplorer.cached
|
80
|
+
: (_History.getInternetExplorerMajorVersion() !== 0)
|
81
|
+
;
|
82
|
+
return result;
|
83
|
+
};
|
84
|
+
|
85
|
+
/**
|
86
|
+
* History.emulated
|
87
|
+
* Which features require emulating?
|
88
|
+
*/
|
89
|
+
History.emulated.hashChange = Boolean(
|
90
|
+
!('onhashchange' in window || 'onhashchange' in document)
|
91
|
+
||
|
92
|
+
(_History.isInternetExplorer() && _History.getInternetExplorerMajorVersion() < 8)
|
93
|
+
);
|
94
|
+
|
95
|
+
|
96
|
+
// ----------------------------------------------------------------------
|
97
|
+
// Hash Storage
|
98
|
+
|
99
|
+
/**
|
100
|
+
* _History.savedHashes
|
101
|
+
* Store the hashes in an array
|
102
|
+
*/
|
103
|
+
_History.savedHashes = [];
|
104
|
+
|
105
|
+
/**
|
106
|
+
* _History.isLastHash(newHash)
|
107
|
+
* Checks if the hash is the last hash
|
108
|
+
* @param {string} newHash
|
109
|
+
* @return {boolean} true
|
110
|
+
*/
|
111
|
+
_History.isLastHash = function(newHash) {
|
112
|
+
// Prepare
|
113
|
+
var oldHash = _History.getHashByIndex();
|
114
|
+
|
115
|
+
// Check
|
116
|
+
var isLast = newHash === oldHash;
|
117
|
+
|
118
|
+
// Return isLast
|
119
|
+
return isLast;
|
120
|
+
};
|
121
|
+
|
122
|
+
/**
|
123
|
+
* _History.saveHash(newHash)
|
124
|
+
* Push a Hash
|
125
|
+
* @param {string} newHash
|
126
|
+
* @return {boolean} true
|
127
|
+
*/
|
128
|
+
_History.saveHash = function(newHash) {
|
129
|
+
// Check Hash
|
130
|
+
if (_History.isLastHash(newHash)) {
|
131
|
+
return false;
|
132
|
+
}
|
133
|
+
|
134
|
+
// Push the Hash
|
135
|
+
_History.savedHashes.push(newHash);
|
136
|
+
|
137
|
+
// Return true
|
138
|
+
return true;
|
139
|
+
};
|
140
|
+
|
141
|
+
/**
|
142
|
+
* _History.getHashByIndex()
|
143
|
+
* Gets a hash by the index
|
144
|
+
* @param {integer} index
|
145
|
+
* @return {string}
|
146
|
+
*/
|
147
|
+
_History.getHashByIndex = function(index) {
|
148
|
+
// Prepare
|
149
|
+
var hash = null;
|
150
|
+
|
151
|
+
// Handle
|
152
|
+
if (typeof index === 'undefined') {
|
153
|
+
// Get the last inserted
|
154
|
+
hash = _History.savedHashes[_History.savedHashes.length - 1];
|
155
|
+
}
|
156
|
+
else if (index < 0) {
|
157
|
+
// Get from the end
|
158
|
+
hash = _History.savedHashes[_History.savedHashes.length + index];
|
159
|
+
}
|
160
|
+
else {
|
161
|
+
// Get from the beginning
|
162
|
+
hash = _History.savedHashes[index];
|
163
|
+
}
|
164
|
+
|
165
|
+
// Return hash
|
166
|
+
return hash;
|
167
|
+
};
|
168
|
+
|
169
|
+
/**
|
170
|
+
* _History.stateHashExists
|
171
|
+
* Checks if the State Hash Exists
|
172
|
+
* @param {string} stateHash
|
173
|
+
* @return {boolean} exists
|
174
|
+
*/
|
175
|
+
_History.stateHashExists = function(stateHash) {
|
176
|
+
// Prepare
|
177
|
+
var exists = typeof _History.statesByHash[stateHash] !== 'undefined';
|
178
|
+
|
179
|
+
// Return exists
|
180
|
+
return exists;
|
181
|
+
};
|
182
|
+
|
183
|
+
// ----------------------------------------------------------------------
|
184
|
+
// Discarded States
|
185
|
+
|
186
|
+
/**
|
187
|
+
* _History.discardedHashes
|
188
|
+
* A hashed array of discarded hashes
|
189
|
+
*/
|
190
|
+
_History.discardedHashes = {};
|
191
|
+
|
192
|
+
/**
|
193
|
+
* _History.discardedStates
|
194
|
+
* A hashed array of discarded states
|
195
|
+
*/
|
196
|
+
_History.discardedStates = {};
|
197
|
+
|
198
|
+
/**
|
199
|
+
* _History.discardState(State)
|
200
|
+
* Discards the state by ignoring it through History
|
201
|
+
* @param {object} State
|
202
|
+
* @return {true}
|
203
|
+
*/
|
204
|
+
_History.discardState = function(discardedState, forwardState, backState) {
|
205
|
+
History.debug('History.discardState', this, arguments);
|
206
|
+
// Prepare
|
207
|
+
var discardedStateHash = History.contractState(discardedState);
|
208
|
+
|
209
|
+
// Create Discard Object
|
210
|
+
var discardObject = {
|
211
|
+
'discardedState': discardedState,
|
212
|
+
'backState': backState,
|
213
|
+
'forwardState': forwardState
|
214
|
+
};
|
215
|
+
|
216
|
+
// Add to DiscardedStates
|
217
|
+
_History.discardedStates[discardedStateHash] = discardObject;
|
218
|
+
|
219
|
+
// Return true
|
220
|
+
return true;
|
221
|
+
};
|
222
|
+
|
223
|
+
/**
|
224
|
+
* _History.discardHash(hash)
|
225
|
+
* Discards the hash by ignoring it through History
|
226
|
+
* @param {string} hash
|
227
|
+
* @return {true}
|
228
|
+
*/
|
229
|
+
_History.discardHash = function(discardedHash, forwardState, backState) {
|
230
|
+
History.debug('History.discardState', this, arguments);
|
231
|
+
// Create Discard Object
|
232
|
+
var discardObject = {
|
233
|
+
'discardedHash': discardedHash,
|
234
|
+
'backState': backState,
|
235
|
+
'forwardState': forwardState
|
236
|
+
};
|
237
|
+
|
238
|
+
// Add to discardedHash
|
239
|
+
_History.discardedHashes[discardedHash] = discardObject;
|
240
|
+
|
241
|
+
// Return true
|
242
|
+
return true;
|
243
|
+
};
|
244
|
+
|
245
|
+
/**
|
246
|
+
* _History.discardState(State)
|
247
|
+
* Checks to see if the state is discarded
|
248
|
+
* @param {object} State
|
249
|
+
* @return {bool}
|
250
|
+
*/
|
251
|
+
_History.discardedState = function(State) {
|
252
|
+
// Prepare
|
253
|
+
var StateHash = History.contractState(State);
|
254
|
+
|
255
|
+
// Check
|
256
|
+
var discarded = _History.discardedStates[StateHash] || false;
|
257
|
+
|
258
|
+
// Return true
|
259
|
+
return discarded;
|
260
|
+
};
|
261
|
+
|
262
|
+
/**
|
263
|
+
* _History.discardedHash(hash)
|
264
|
+
* Checks to see if the state is discarded
|
265
|
+
* @param {string} State
|
266
|
+
* @return {bool}
|
267
|
+
*/
|
268
|
+
_History.discardedHash = function(hash) {
|
269
|
+
// Check
|
270
|
+
var discarded = _History.discardedHashes[hash] || false;
|
271
|
+
|
272
|
+
// Return true
|
273
|
+
return discarded;
|
274
|
+
};
|
275
|
+
|
276
|
+
/**
|
277
|
+
* _History.recycleState(State)
|
278
|
+
* Allows a discarded state to be used again
|
279
|
+
* @param {object} data
|
280
|
+
* @param {string} title
|
281
|
+
* @param {string} url
|
282
|
+
* @return {true}
|
283
|
+
*/
|
284
|
+
_History.recycleState = function(State) {
|
285
|
+
History.debug('History.recycleState', this, arguments);
|
286
|
+
// Prepare
|
287
|
+
var StateHash = History.contractState(State);
|
288
|
+
|
289
|
+
// Remove from DiscardedStates
|
290
|
+
if (_History.discardedState(State)) {
|
291
|
+
delete _History.discardedStates[StateHash];
|
292
|
+
}
|
293
|
+
|
294
|
+
// Return true
|
295
|
+
return true;
|
296
|
+
};
|
297
|
+
|
298
|
+
// ----------------------------------------------------------------------
|
299
|
+
// HTML4 HashChange Support
|
300
|
+
|
301
|
+
if (History.emulated.hashChange) {
|
302
|
+
/*
|
303
|
+
* We must emulate the HTML4 HashChange Support by manually checking for hash changes
|
304
|
+
*/
|
305
|
+
|
306
|
+
History.Adapter.onDomLoad(function() {
|
307
|
+
// Define our Checker Function
|
308
|
+
_History.checkerFunction = null;
|
309
|
+
|
310
|
+
// Handle depending on the browser
|
311
|
+
if (_History.isInternetExplorer()) {
|
312
|
+
// IE6 and IE7
|
313
|
+
// We need to use an iframe to emulate the back and forward buttons
|
314
|
+
|
315
|
+
// Create iFrame
|
316
|
+
var
|
317
|
+
iframeId = 'historyjs-iframe',
|
318
|
+
iframe = document.createElement('iframe');
|
319
|
+
|
320
|
+
// Adjust iFarme
|
321
|
+
iframe.setAttribute('id', iframeId);
|
322
|
+
iframe.style.display = 'none';
|
323
|
+
|
324
|
+
// Append iFrame
|
325
|
+
document.body.appendChild(iframe);
|
326
|
+
|
327
|
+
// Create initial history entry
|
328
|
+
iframe.contentWindow.document.open();
|
329
|
+
iframe.contentWindow.document.close();
|
330
|
+
|
331
|
+
// Define some variables that will help in our checker function
|
332
|
+
var
|
333
|
+
lastDocumentHash = null,
|
334
|
+
lastIframeHash = null,
|
335
|
+
checkerRunning = false;
|
336
|
+
|
337
|
+
// Define the checker function
|
338
|
+
_History.checkerFunction = function() {
|
339
|
+
// Check Running
|
340
|
+
if (checkerRunning) {
|
341
|
+
History.debug('hashchange.checker: checker is running');
|
342
|
+
return false;
|
343
|
+
}
|
344
|
+
|
345
|
+
// Update Running
|
346
|
+
checkerRunning = true;
|
347
|
+
|
348
|
+
// Fetch
|
349
|
+
var
|
350
|
+
documentHash = History.getHash(),
|
351
|
+
iframeHash = _History.unescapeHash(iframe.contentWindow.document.location.hash);
|
352
|
+
|
353
|
+
// The Document Hash has changed (application caused)
|
354
|
+
if (documentHash !== lastDocumentHash) {
|
355
|
+
// Equalise
|
356
|
+
lastDocumentHash = documentHash;
|
357
|
+
|
358
|
+
// Create a history entry in the iframe
|
359
|
+
if (iframeHash !== documentHash) {
|
360
|
+
History.debug('hashchange.checker: iframe hash change', 'documentHash (new):', documentHash, 'iframeHash (old):', iframeHash);
|
361
|
+
|
362
|
+
// Equalise
|
363
|
+
lastIframeHash = iframeHash = documentHash;
|
364
|
+
|
365
|
+
// Create History Entry
|
366
|
+
iframe.contentWindow.document.open();
|
367
|
+
iframe.contentWindow.document.close();
|
368
|
+
|
369
|
+
// Update the iframe's hash
|
370
|
+
iframe.contentWindow.document.location.hash = _History.escapeHash(documentHash);
|
371
|
+
}
|
372
|
+
|
373
|
+
// Trigger Hashchange Event
|
374
|
+
History.Adapter.trigger(window, 'hashchange');
|
375
|
+
}
|
376
|
+
|
377
|
+
// The iFrame Hash has changed (back button caused)
|
378
|
+
else if (iframeHash !== lastIframeHash) {
|
379
|
+
History.debug('hashchange.checker: iframe hash out of sync', 'iframeHash (new):', iframeHash, 'documentHash (old):', documentHash);
|
380
|
+
|
381
|
+
// Equalise
|
382
|
+
lastIframeHash = iframeHash;
|
383
|
+
|
384
|
+
// Update the Hash
|
385
|
+
History.setHash(iframeHash, false);
|
386
|
+
}
|
387
|
+
|
388
|
+
// Reset Running
|
389
|
+
checkerRunning = false;
|
390
|
+
|
391
|
+
// Return true
|
392
|
+
return true;
|
393
|
+
};
|
394
|
+
}
|
395
|
+
else {
|
396
|
+
// We are not IE
|
397
|
+
// Firefox 1 or 2, Opera
|
398
|
+
|
399
|
+
// Define some variables that will help in our checker function
|
400
|
+
var
|
401
|
+
lastDocumentHash = null;
|
402
|
+
|
403
|
+
// Define the checker function
|
404
|
+
_History.checkerFunction = function() {
|
405
|
+
// Prepare
|
406
|
+
var documentHash = History.getHash();
|
407
|
+
|
408
|
+
// The Document Hash has changed (application caused)
|
409
|
+
if (documentHash !== lastDocumentHash) {
|
410
|
+
// Equalise
|
411
|
+
lastDocumentHash = documentHash;
|
412
|
+
|
413
|
+
// Trigger Hashchange Event
|
414
|
+
History.Adapter.trigger(window, 'hashchange');
|
415
|
+
}
|
416
|
+
|
417
|
+
// Return true
|
418
|
+
return true;
|
419
|
+
};
|
420
|
+
}
|
421
|
+
|
422
|
+
// Apply the checker function
|
423
|
+
setInterval(_History.checkerFunction, History.options.hashChangeCheckerDelay);
|
424
|
+
|
425
|
+
// End onDomLoad closure
|
426
|
+
return true;
|
427
|
+
});
|
428
|
+
|
429
|
+
}
|
430
|
+
|
431
|
+
// ----------------------------------------------------------------------
|
432
|
+
// HTML5 State Support
|
433
|
+
|
434
|
+
if (History.emulated.pushState) {
|
435
|
+
/*
|
436
|
+
* We must emulate the HTML5 State Management by using HTML4 HashChange
|
437
|
+
*/
|
438
|
+
|
439
|
+
/**
|
440
|
+
* _History.onHashChange(event)
|
441
|
+
* Trigger HTML5's window.onpopstate via HTML4 HashChange Support
|
442
|
+
*/
|
443
|
+
_History.onHashChange = function(event) {
|
444
|
+
History.debug('_History.onHashChange', this, arguments);
|
445
|
+
// Prepare
|
446
|
+
var
|
447
|
+
currentUrl = (event && event.newURL) || document.location.href;
|
448
|
+
currentHash = unescape(History.extractHashFromUrl(currentUrl)),
|
449
|
+
currentState = null,
|
450
|
+
currentStateHash = null,
|
451
|
+
currentStateHashExits = null;
|
452
|
+
|
453
|
+
// Check if we are the same state
|
454
|
+
if (_History.isLastHash(currentHash)) {
|
455
|
+
// There has been no change (just the page's hash has finally propagated)
|
456
|
+
History.debug('_History.onHashChange: no change');
|
457
|
+
History.busy(false);
|
458
|
+
return false;
|
459
|
+
}
|
460
|
+
|
461
|
+
// Store our location for use in detecting back/forward direction
|
462
|
+
_History.saveHash(currentHash);
|
463
|
+
|
464
|
+
// Expand Hash
|
465
|
+
currentState = History.expandHash(currentHash);
|
466
|
+
if (!currentState) {
|
467
|
+
// Traditional Anchor Hash
|
468
|
+
History.debug('_History.onHashChange: traditional anchor');
|
469
|
+
History.Adapter.trigger(window, 'anchorchange');
|
470
|
+
History.busy(false);
|
471
|
+
return false;
|
472
|
+
}
|
473
|
+
|
474
|
+
// Check if we are the same state
|
475
|
+
if (_History.isLastState(currentState)) {
|
476
|
+
// There has been no change (just the page's hash has finally propagated)
|
477
|
+
History.debug('_History.onHashChange: no change');
|
478
|
+
History.busy(false);
|
479
|
+
return false;
|
480
|
+
}
|
481
|
+
|
482
|
+
// Create the state Hash
|
483
|
+
currentStateHash = History.contractState(currentState);
|
484
|
+
|
485
|
+
// Log
|
486
|
+
History.debug('_History.onHashChange: ',
|
487
|
+
'currentStateHash',
|
488
|
+
currentStateHash,
|
489
|
+
'Hash -1',
|
490
|
+
_History.getHashByIndex(-1),
|
491
|
+
'Hash -2',
|
492
|
+
_History.getHashByIndex(-2),
|
493
|
+
'Hash -3',
|
494
|
+
_History.getHashByIndex(-3),
|
495
|
+
'Hash -4',
|
496
|
+
_History.getHashByIndex(-4),
|
497
|
+
'Hash -5',
|
498
|
+
_History.getHashByIndex(-5),
|
499
|
+
'Hash -6',
|
500
|
+
_History.getHashByIndex(-6),
|
501
|
+
'Hash -7',
|
502
|
+
_History.getHashByIndex(-7)
|
503
|
+
);
|
504
|
+
|
505
|
+
// Check if we are DiscardedState
|
506
|
+
var discardObject = _History.discardedState(currentState);
|
507
|
+
if (discardObject) {
|
508
|
+
History.debug('forwardState:', History.contractState(discardObject.forwardState), 'backState:', History.contractState(discardObject.backState));
|
509
|
+
// Ignore this state as it has been discarded and go back to the state before it
|
510
|
+
if (_History.getHashByIndex(-2) === History.contractState(discardObject.forwardState)) {
|
511
|
+
// We are going backwards
|
512
|
+
History.debug('_History.onHashChange: go backwards');
|
513
|
+
History.back(false);
|
514
|
+
} else {
|
515
|
+
// We are going forwards
|
516
|
+
History.debug('_History.onHashChange: go forwards');
|
517
|
+
History.forward(false);
|
518
|
+
}
|
519
|
+
History.busy(false);
|
520
|
+
return false;
|
521
|
+
}
|
522
|
+
|
523
|
+
// Push the new HTML5 State
|
524
|
+
History.debug('_History.onHashChange: success hashchange');
|
525
|
+
History.pushState(currentState.data, currentState.title, currentState.url, false);
|
526
|
+
|
527
|
+
// End onHashChange closure
|
528
|
+
return true;
|
529
|
+
};
|
530
|
+
History.Adapter.bind(window, 'hashchange', _History.onHashChange);
|
531
|
+
|
532
|
+
/**
|
533
|
+
* History.pushState(data,title,url)
|
534
|
+
* Add a new State to the history object, become it, and trigger onpopstate
|
535
|
+
* We have to trigger for HTML4 compatibility
|
536
|
+
* @param {object} data
|
537
|
+
* @param {string} title
|
538
|
+
* @param {string} url
|
539
|
+
* @return {true}
|
540
|
+
*/
|
541
|
+
History.pushState = function(data, title, url, queue) {
|
542
|
+
History.debug('History.pushState', this, arguments);
|
543
|
+
|
544
|
+
// Check the State
|
545
|
+
if (History.extractHashFromUrl(url)) {
|
546
|
+
throw new Error('History.js does not support states with fragement-identifiers (hashes/anchors).');
|
547
|
+
}
|
548
|
+
|
549
|
+
// Handle Queueing
|
550
|
+
if (queue !== false && History.busy()) {
|
551
|
+
// Wait + Push to Queue
|
552
|
+
History.debug('History.pushState: we must wait', arguments);
|
553
|
+
History.pushQueue({
|
554
|
+
scope: History,
|
555
|
+
callback: History.pushState,
|
556
|
+
args: arguments,
|
557
|
+
queue: queue
|
558
|
+
});
|
559
|
+
return false;
|
560
|
+
}
|
561
|
+
|
562
|
+
// Make Busy
|
563
|
+
History.busy(true);
|
564
|
+
|
565
|
+
// Fetch the State Object
|
566
|
+
var
|
567
|
+
newState = History.createStateObject(data, title, url),
|
568
|
+
newStateHash = History.contractState(newState),
|
569
|
+
oldState = History.getState(),
|
570
|
+
oldStateHash = History.getStateHash(),
|
571
|
+
html4Hash = unescape(History.getHash());
|
572
|
+
|
573
|
+
// Store the newState
|
574
|
+
_History.storeState(newState);
|
575
|
+
|
576
|
+
// Recycle the State
|
577
|
+
_History.recycleState(newState);
|
578
|
+
|
579
|
+
// Force update of the title
|
580
|
+
if (document.title !== newState.title) {
|
581
|
+
document.title = newState.title
|
582
|
+
try {
|
583
|
+
document.getElementsByTagName('title')[0].innerHTML = newState.title;
|
584
|
+
}
|
585
|
+
catch (Exception) {
|
586
|
+
}
|
587
|
+
}
|
588
|
+
|
589
|
+
History.debug(
|
590
|
+
'History.pushState: details',
|
591
|
+
'newStateHash:', newStateHash,
|
592
|
+
'oldStateHash:', oldStateHash,
|
593
|
+
'html4Hash:', html4Hash
|
594
|
+
);
|
595
|
+
|
596
|
+
// Check if we are the same State
|
597
|
+
if (newStateHash === oldStateHash) {
|
598
|
+
History.debug('History.pushState: no change', newStateHash);
|
599
|
+
return false;
|
600
|
+
}
|
601
|
+
|
602
|
+
// Update HTML4 Hash
|
603
|
+
if (newStateHash !== html4Hash) {
|
604
|
+
History.debug('History.pushState: update hash', newStateHash);
|
605
|
+
History.setHash(newStateHash, false);
|
606
|
+
return false;
|
607
|
+
}
|
608
|
+
|
609
|
+
// Update HTML5 State
|
610
|
+
_History.saveState(newState);
|
611
|
+
|
612
|
+
// Fire HTML5 Event
|
613
|
+
History.debug('History.pushState: trigger popstate');
|
614
|
+
History.Adapter.trigger(window, 'statechange');
|
615
|
+
History.busy(false);
|
616
|
+
|
617
|
+
// End pushState closure
|
618
|
+
return true;
|
619
|
+
};
|
620
|
+
|
621
|
+
/**
|
622
|
+
* History.replaceState(data,title,url)
|
623
|
+
* Replace the State and trigger onpopstate
|
624
|
+
* We have to trigger for HTML4 compatibility
|
625
|
+
* @param {object} data
|
626
|
+
* @param {string} title
|
627
|
+
* @param {string} url
|
628
|
+
* @return {true}
|
629
|
+
*/
|
630
|
+
History.replaceState = function(data, title, url, queue) {
|
631
|
+
History.debug('History.replaceState', this, arguments);
|
632
|
+
// Check the State
|
633
|
+
if (History.extractHashFromUrl(url)) {
|
634
|
+
throw new Error('History.js does not support states with fragement-identifiers (hashes/anchors).');
|
635
|
+
}
|
636
|
+
|
637
|
+
// Handle Queueing
|
638
|
+
if (queue !== false && History.busy()) {
|
639
|
+
// Wait + Push to Queue
|
640
|
+
History.debug('History.replaceState: we must wait', arguments);
|
641
|
+
History.pushQueue({
|
642
|
+
scope: History,
|
643
|
+
callback: History.replaceState,
|
644
|
+
args: arguments,
|
645
|
+
queue: queue
|
646
|
+
});
|
647
|
+
return false;
|
648
|
+
}
|
649
|
+
|
650
|
+
// Make Busy
|
651
|
+
History.busy(true);
|
652
|
+
|
653
|
+
// Fetch the State Objects
|
654
|
+
var
|
655
|
+
newState = History.createStateObject(data, title, url),
|
656
|
+
oldState = History.getState(),
|
657
|
+
previousState = _History.getStateByIndex(-2)
|
658
|
+
|
659
|
+
// Discard Old State
|
660
|
+
_History.discardState(oldState, newState, previousState);
|
661
|
+
|
662
|
+
// Alias to PushState
|
663
|
+
History.pushState(newState.data, newState.title, newState.url, false);
|
664
|
+
|
665
|
+
// End replaceState closure
|
666
|
+
return true;
|
667
|
+
};
|
668
|
+
|
669
|
+
/**
|
670
|
+
* Ensure initial state is handled correctly
|
671
|
+
**/
|
672
|
+
if (!document.location.hash || document.location.hash === '#') {
|
673
|
+
History.Adapter.onDomLoad(function() {
|
674
|
+
History.debug('Internet Explorer Initial State Change Fix');
|
675
|
+
var currentState = History.createStateObject({}, '', document.location.href);
|
676
|
+
History.pushState(currentState.data, currentState.title, currentState.url);
|
677
|
+
});
|
678
|
+
} else if (!History.emulated.hashChange) {
|
679
|
+
History.debug('Firefox Initial State Change Fix');
|
680
|
+
History.Adapter.onDomLoad(function() {
|
681
|
+
_History.onHashChange();
|
682
|
+
});
|
683
|
+
}
|
684
|
+
}
|
685
|
+
}
|
686
|
+
|
687
|
+
// Try Load HTML4 Support
|
688
|
+
History.initHtml4();
|
689
689
|
|
690
690
|
})(window);
|