compass-jquery-plugin 0.3.2.5 → 0.3.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// Generated by compass-jquery-plugin/gem-tasks/jquery.rake
|
|
2
|
+
|
|
3
|
+
$ui_thicknessShadow: 5px !default;
|
|
4
|
+
$ui_offsetLeftShadow: -5px !default;
|
|
5
|
+
$ui_fcHeader: #ffffff !default;
|
|
6
|
+
$ui_bgOverlayYPos: 50% !default;
|
|
7
|
+
$ui_bgImgUrlDefault: image_url("jquery/ui/cowboy/ui-bg_glass_100_fdebdc_1x400.png") !default;
|
|
8
|
+
$ui_bgColorHeader: #ff7f00 !default;
|
|
9
|
+
$ui_bgColorLoading: white !default;
|
|
10
|
+
$ui_bgShadowFilter: Alpha(Opacity=20) !default;
|
|
11
|
+
$ui_bgShadowOpacity: .20 !default;
|
|
12
|
+
$ui_bgActiveXPos: 50% !default;
|
|
13
|
+
$ui_fcContent: #333333 !default;
|
|
14
|
+
$ui_bgContentXPos: 50% !default;
|
|
15
|
+
$ui_bgShadowRepeat: repeat-x !default;
|
|
16
|
+
$ui_bgShadowYPos: 50% !default;
|
|
17
|
+
$ui_bgImgUrlShadow: image_url("jquery/ui/cowboy/ui-bg_flat_10_000000_40x100.png") !default;
|
|
18
|
+
$ui_bgHoverXPos: 50% !default;
|
|
19
|
+
$ui_bgColorContent: #dddddd !default;
|
|
20
|
+
$ui_bgColorActive: #eeeeee !default;
|
|
21
|
+
$ui_fcActive: #333333 !default;
|
|
22
|
+
$ui_bgColorHighlight: #c4884f !default;
|
|
23
|
+
$ui_bgImgUrlError: image_url("jquery/ui/cowboy/ui-bg_diagonals-thick_18_b81900_40x40.png") !default;
|
|
24
|
+
$ui_iconsActive: image_url("jquery/ui/cowboy/ui-icons_333333_256x240.png") !default;
|
|
25
|
+
$ui_cornerRadiusShadow: 5px !default;
|
|
26
|
+
$ui_bgActiveRepeat: repeat-x !default;
|
|
27
|
+
$ui_borderColorHeader: #ff7f00 !default;
|
|
28
|
+
$ui_iconsError: image_url("jquery/ui/cowboy/ui-icons_ffd27a_256x240.png") !default;
|
|
29
|
+
$ui_bgImgUrlHover: image_url("jquery/ui/cowboy/ui-bg_glass_100_ffd6af_1x400.png") !default;
|
|
30
|
+
$ui_bgOverlayFilter: Alpha(Opacity=50) !default;
|
|
31
|
+
$ui_bgImgUrlContent: image_url("jquery/ui/cowboy/ui-bg_highlight-soft_100_dddddd_1x100.png") !default;
|
|
32
|
+
$ui_iconsHighlight: image_url("jquery/ui/cowboy/ui-icons_228ef1_256x240.png") !default;
|
|
33
|
+
$ui_iconsHover: image_url("jquery/ui/cowboy/ui-icons_913d00_256x240.png") !default;
|
|
34
|
+
$ui_bgLoadingXPos: right !default;
|
|
35
|
+
$ui_bgOverlayRepeat: repeat !default;
|
|
36
|
+
$ui_bgErrorYPos: 50% !default;
|
|
37
|
+
$ui_bgHighlightRepeat: repeat-x !default;
|
|
38
|
+
$ui_bgImgUrlHeader: image_url("jquery/ui/cowboy/cowboy_hat.png") !default;
|
|
39
|
+
$ui_borderColorError: #cd0a0a !default;
|
|
40
|
+
$ui_bgDefaultXPos: 50% !default;
|
|
41
|
+
$ui_cornerRadius: 5px !default;
|
|
42
|
+
$ui_iconsHeader: image_url("jquery/ui/cowboy/ui-icons_ffffff_256x240.png") !default;
|
|
43
|
+
$ui_bgImgUrlOverlay: image_url("jquery/ui/cowboy/cowboy_hat.png") !default;
|
|
44
|
+
$ui_bgOverlayOpacity: .50 !default;
|
|
45
|
+
$ui_borderColorDefault: #ff7f00 !default;
|
|
46
|
+
$ui_bgImgUrlActive: image_url("jquery/ui/cowboy/ui-bg_glass_65_eeeeee_1x400.png") !default;
|
|
47
|
+
$ui_bgActiveYPos: 50% !default;
|
|
48
|
+
$ui_fwDefault: bold !default;
|
|
49
|
+
$ui_bgContentYPos: top !default;
|
|
50
|
+
$ui_bgOverlayXPos: 50% !default;
|
|
51
|
+
$ui_borderColorHighlight: #913d00 !default;
|
|
52
|
+
$ui_bgLoadingRepeat: no-repeat !default;
|
|
53
|
+
$ui_bgLoadingYPos: center !default;
|
|
54
|
+
$ui_bgHeaderXPos: 50% !default;
|
|
55
|
+
$ui_bgHeaderYPos: 50% !default;
|
|
56
|
+
$ui_bgHoverYPos: 50% !default;
|
|
57
|
+
$ui_bgImgUrlLoading: image_url("jquery/ui/cowboy/ui-anim_basic_16x16.gif") !default;
|
|
58
|
+
$ui_bgShadowXPos: 50% !default;
|
|
59
|
+
$ui_offsetTopShadow: -5px !default;
|
|
60
|
+
$ui_bgColorHover: #ffd6af !default;
|
|
61
|
+
$ui_iconsDefault: image_url("jquery/ui/cowboy/ui-icons_ff7f00_256x240.png") !default;
|
|
62
|
+
$ui_borderColorHover: #913d00 !default;
|
|
63
|
+
$ui_bgColorShadow: #000000 !default;
|
|
64
|
+
$ui_bgImgUrlHighlight: image_url("jquery/ui/cowboy/ui-bg_highlight-soft_75_c4884f_1x100.png") !default;
|
|
65
|
+
$ui_bgColorError: #b81900 !default;
|
|
66
|
+
$ui_bgHighlightYPos: top !default;
|
|
67
|
+
$ui_bgDefaultRepeat: repeat-x !default;
|
|
68
|
+
$ui_bgDefaultYPos: 50% !default;
|
|
69
|
+
$ui_fcHover: #913d00 !default;
|
|
70
|
+
$ui_bgErrorXPos: 50% !default;
|
|
71
|
+
$ui_bgErrorRepeat: repeat !default;
|
|
72
|
+
$ui_borderColorActive: #ff7f00 !default;
|
|
73
|
+
$ui_fcDefault: #ff7f00 !default;
|
|
74
|
+
$ui_bgHighlightXPos: 50% !default;
|
|
75
|
+
$ui_ffDefault: Arial !default;
|
|
76
|
+
$ui_fsDefault: 1.1em !default;
|
|
77
|
+
$ui_bgColorOverlay: #ff7f00 !default;
|
|
78
|
+
$ui_bgColorDefault: #fdebdc !default;
|
|
79
|
+
$ui_bgHoverRepeat: repeat-x !default;
|
|
80
|
+
$ui_borderColorContent: #ff7f00 !default;
|
|
81
|
+
$ui_fcHighlight: #913d00 !default;
|
|
82
|
+
$ui_bgContentRepeat: repeat-x !default;
|
|
83
|
+
$ui_bgHeaderRepeat: repeat-x !default;
|
|
84
|
+
$ui_iconsContent: image_url("jquery/ui/cowboy/ui-icons_222222_256x240.png") !default;
|
|
85
|
+
$ui_fcError: #ffffff !default;
|
|
86
|
+
|
|
87
|
+
@import "jquery/ui/_theme"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/templates/jquery/json2.js
CHANGED
|
@@ -1,159 +1,159 @@
|
|
|
1
1
|
/*
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
http://www.JSON.org/json2.js
|
|
3
|
+
2011-01-18
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Public Domain.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
See http://www.JSON.org/js.html
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
This code should be minified before deployment.
|
|
13
|
+
See http://javascript.crockford.com/jsmin.html
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
|
|
16
|
+
NOT CONTROL.
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
This file creates a global JSON object containing two methods: stringify
|
|
20
|
+
and parse.
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
JSON.stringify(value, replacer, space)
|
|
23
|
+
value any JavaScript value, usually an object or array.
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
replacer an optional parameter that determines how object
|
|
26
|
+
values are stringified for objects. It can be a
|
|
27
|
+
function or an array of strings.
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
space an optional parameter that specifies the indentation
|
|
30
|
+
of nested structures. If it is omitted, the text will
|
|
31
|
+
be packed without extra whitespace. If it is a number,
|
|
32
|
+
it will specify the number of spaces to indent at each
|
|
33
|
+
level. If it is a string (such as '\t' or ' '),
|
|
34
|
+
it contains the characters used to indent at each level.
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
This method produces a JSON text from a JavaScript value.
|
|
37
|
+
|
|
38
|
+
When an object value is found, if the object contains a toJSON
|
|
39
|
+
method, its toJSON method will be called and the result will be
|
|
40
|
+
stringified. A toJSON method does not serialize: it returns the
|
|
41
|
+
value represented by the name/value pair that should be serialized,
|
|
42
|
+
or undefined if nothing should be serialized. The toJSON method
|
|
43
|
+
will be passed the key associated with the value, and this will be
|
|
44
|
+
bound to the value
|
|
45
|
+
|
|
46
|
+
For example, this would serialize Dates as ISO strings.
|
|
47
|
+
|
|
48
|
+
Date.prototype.toJSON = function (key) {
|
|
49
|
+
function f(n) {
|
|
50
|
+
// Format integers to have at least two digits.
|
|
51
|
+
return n < 10 ? '0' + n : n;
|
|
52
|
+
}
|
|
37
53
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
54
|
+
return this.getUTCFullYear() + '-' +
|
|
55
|
+
f(this.getUTCMonth() + 1) + '-' +
|
|
56
|
+
f(this.getUTCDate()) + 'T' +
|
|
57
|
+
f(this.getUTCHours()) + ':' +
|
|
58
|
+
f(this.getUTCMinutes()) + ':' +
|
|
59
|
+
f(this.getUTCSeconds()) + 'Z';
|
|
60
|
+
};
|
|
45
61
|
|
|
46
|
-
|
|
62
|
+
You can provide an optional replacer method. It will be passed the
|
|
63
|
+
key and value of each member, with this bound to the containing
|
|
64
|
+
object. The value that is returned from your method will be
|
|
65
|
+
serialized. If your method returns undefined, then the member will
|
|
66
|
+
be excluded from the serialization.
|
|
47
67
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
68
|
+
If the replacer parameter is an array of strings, then it will be
|
|
69
|
+
used to select the members to be serialized. It filters the results
|
|
70
|
+
such that only members with keys listed in the replacer array are
|
|
71
|
+
stringified.
|
|
53
72
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
used to select the members to be serialized. It filters the results
|
|
70
|
-
such that only members with keys listed in the replacer array are
|
|
71
|
-
stringified.
|
|
72
|
-
|
|
73
|
-
Values that do not have JSON representations, such as undefined or
|
|
74
|
-
functions, will not be serialized. Such values in objects will be
|
|
75
|
-
dropped; in arrays they will be replaced with null. You can use
|
|
76
|
-
a replacer function to replace those with JSON values.
|
|
77
|
-
JSON.stringify(undefined) returns undefined.
|
|
78
|
-
|
|
79
|
-
The optional space parameter produces a stringification of the
|
|
80
|
-
value that is filled with line breaks and indentation to make it
|
|
81
|
-
easier to read.
|
|
82
|
-
|
|
83
|
-
If the space parameter is a non-empty string, then that string will
|
|
84
|
-
be used for indentation. If the space parameter is a number, then
|
|
85
|
-
the indentation will be that many spaces.
|
|
86
|
-
|
|
87
|
-
Example:
|
|
88
|
-
|
|
89
|
-
text = JSON.stringify(['e', {pluribus: 'unum'}]);
|
|
90
|
-
// text is '["e",{"pluribus":"unum"}]'
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
|
|
94
|
-
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
|
|
95
|
-
|
|
96
|
-
text = JSON.stringify([new Date()], function (key, value) {
|
|
97
|
-
return this[key] instanceof Date ?
|
|
98
|
-
'Date(' + this[key] + ')' : value;
|
|
99
|
-
});
|
|
100
|
-
// text is '["Date(---current time---)"]'
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
JSON.parse(text, reviver)
|
|
104
|
-
This method parses a JSON text to produce an object or array.
|
|
105
|
-
It can throw a SyntaxError exception.
|
|
106
|
-
|
|
107
|
-
The optional reviver parameter is a function that can filter and
|
|
108
|
-
transform the results. It receives each of the keys and values,
|
|
109
|
-
and its return value is used instead of the original value.
|
|
110
|
-
If it returns what it received, then the structure is not modified.
|
|
111
|
-
If it returns undefined then the member is deleted.
|
|
112
|
-
|
|
113
|
-
Example:
|
|
114
|
-
|
|
115
|
-
// Parse the text. Values that look like ISO date strings will
|
|
116
|
-
// be converted to Date objects.
|
|
117
|
-
|
|
118
|
-
myData = JSON.parse(text, function (key, value) {
|
|
119
|
-
var a;
|
|
120
|
-
if (typeof value === 'string') {
|
|
121
|
-
a =
|
|
122
|
-
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
|
|
123
|
-
if (a) {
|
|
124
|
-
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
|
|
125
|
-
+a[5], +a[6]));
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return value;
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
|
|
132
|
-
var d;
|
|
133
|
-
if (typeof value === 'string' &&
|
|
134
|
-
value.slice(0, 5) === 'Date(' &&
|
|
135
|
-
value.slice(-1) === ')') {
|
|
136
|
-
d = new Date(value.slice(5, -1));
|
|
137
|
-
if (d) {
|
|
138
|
-
return d;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return value;
|
|
142
|
-
});
|
|
73
|
+
Values that do not have JSON representations, such as undefined or
|
|
74
|
+
functions, will not be serialized. Such values in objects will be
|
|
75
|
+
dropped; in arrays they will be replaced with null. You can use
|
|
76
|
+
a replacer function to replace those with JSON values.
|
|
77
|
+
JSON.stringify(undefined) returns undefined.
|
|
78
|
+
|
|
79
|
+
The optional space parameter produces a stringification of the
|
|
80
|
+
value that is filled with line breaks and indentation to make it
|
|
81
|
+
easier to read.
|
|
82
|
+
|
|
83
|
+
If the space parameter is a non-empty string, then that string will
|
|
84
|
+
be used for indentation. If the space parameter is a number, then
|
|
85
|
+
the indentation will be that many spaces.
|
|
86
|
+
|
|
87
|
+
Example:
|
|
143
88
|
|
|
89
|
+
text = JSON.stringify(['e', {pluribus: 'unum'}]);
|
|
90
|
+
// text is '["e",{"pluribus":"unum"}]'
|
|
144
91
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
92
|
+
|
|
93
|
+
text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
|
|
94
|
+
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
|
|
95
|
+
|
|
96
|
+
text = JSON.stringify([new Date()], function (key, value) {
|
|
97
|
+
return this[key] instanceof Date ?
|
|
98
|
+
'Date(' + this[key] + ')' : value;
|
|
99
|
+
});
|
|
100
|
+
// text is '["Date(---current time---)"]'
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
JSON.parse(text, reviver)
|
|
104
|
+
This method parses a JSON text to produce an object or array.
|
|
105
|
+
It can throw a SyntaxError exception.
|
|
106
|
+
|
|
107
|
+
The optional reviver parameter is a function that can filter and
|
|
108
|
+
transform the results. It receives each of the keys and values,
|
|
109
|
+
and its return value is used instead of the original value.
|
|
110
|
+
If it returns what it received, then the structure is not modified.
|
|
111
|
+
If it returns undefined then the member is deleted.
|
|
112
|
+
|
|
113
|
+
Example:
|
|
114
|
+
|
|
115
|
+
// Parse the text. Values that look like ISO date strings will
|
|
116
|
+
// be converted to Date objects.
|
|
117
|
+
|
|
118
|
+
myData = JSON.parse(text, function (key, value) {
|
|
119
|
+
var a;
|
|
120
|
+
if (typeof value === 'string') {
|
|
121
|
+
a =
|
|
122
|
+
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
|
|
123
|
+
if (a) {
|
|
124
|
+
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
|
|
125
|
+
+a[5], +a[6]));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return value;
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
|
|
132
|
+
var d;
|
|
133
|
+
if (typeof value === 'string' &&
|
|
134
|
+
value.slice(0, 5) === 'Date(' &&
|
|
135
|
+
value.slice(-1) === ')') {
|
|
136
|
+
d = new Date(value.slice(5, -1));
|
|
137
|
+
if (d) {
|
|
138
|
+
return d;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return value;
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
This is a reference implementation. You are free to copy, modify, or
|
|
146
|
+
redistribute.
|
|
147
|
+
*/
|
|
148
148
|
|
|
149
149
|
/*jslint evil: true, strict: false, regexp: false */
|
|
150
150
|
|
|
151
151
|
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
*/
|
|
152
|
+
call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
|
|
153
|
+
getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
|
|
154
|
+
lastIndex, length, parse, prototype, push, replace, slice, stringify,
|
|
155
|
+
test, toJSON, toString, valueOf
|
|
156
|
+
*/
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
// Create a JSON object only if one does not already exist. We create the
|
|
@@ -177,35 +177,35 @@ if (!JSON) {
|
|
|
177
177
|
Date.prototype.toJSON = function (key) {
|
|
178
178
|
|
|
179
179
|
return isFinite(this.valueOf()) ?
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
180
|
+
this.getUTCFullYear() + '-' +
|
|
181
|
+
f(this.getUTCMonth() + 1) + '-' +
|
|
182
|
+
f(this.getUTCDate()) + 'T' +
|
|
183
|
+
f(this.getUTCHours()) + ':' +
|
|
184
|
+
f(this.getUTCMinutes()) + ':' +
|
|
185
|
+
f(this.getUTCSeconds()) + 'Z' : null;
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
String.prototype.toJSON
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
188
|
+
String.prototype.toJSON =
|
|
189
|
+
Number.prototype.toJSON =
|
|
190
|
+
Boolean.prototype.toJSON = function (key) {
|
|
191
|
+
return this.valueOf();
|
|
192
|
+
};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
196
|
+
escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
|
197
|
+
gap,
|
|
198
|
+
indent,
|
|
199
|
+
meta = { // table of character substitutions
|
|
200
|
+
'\b': '\\b',
|
|
201
|
+
'\t': '\\t',
|
|
202
|
+
'\n': '\\n',
|
|
203
|
+
'\f': '\\f',
|
|
204
|
+
'\r': '\\r',
|
|
205
|
+
'"' : '\\"',
|
|
206
|
+
'\\': '\\\\'
|
|
207
|
+
},
|
|
208
|
+
rep;
|
|
209
209
|
|
|
210
210
|
|
|
211
211
|
function quote(string) {
|
|
@@ -219,7 +219,7 @@ if (!JSON) {
|
|
|
219
219
|
return escapable.test(string) ? '"' + string.replace(escapable, function (a) {
|
|
220
220
|
var c = meta[a];
|
|
221
221
|
return typeof c === 'string' ? c :
|
|
222
|
-
|
|
222
|
+
'\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
|
|
223
223
|
}) + '"' : '"' + string + '"';
|
|
224
224
|
}
|
|
225
225
|
|
|
@@ -229,12 +229,12 @@ if (!JSON) {
|
|
|
229
229
|
// Produce a string from holder[key].
|
|
230
230
|
|
|
231
231
|
var i, // The loop counter.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
232
|
+
k, // The member key.
|
|
233
|
+
v, // The member value.
|
|
234
|
+
length,
|
|
235
|
+
mind = gap,
|
|
236
|
+
partial,
|
|
237
|
+
value = holder[key];
|
|
238
238
|
|
|
239
239
|
// If the value has a toJSON method, call it to obtain a replacement value.
|
|
240
240
|
|
|
@@ -253,98 +253,98 @@ if (!JSON) {
|
|
|
253
253
|
// What happens next depends on the value's type.
|
|
254
254
|
|
|
255
255
|
switch (typeof value) {
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
case 'string':
|
|
257
|
+
return quote(value);
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
case 'number':
|
|
260
260
|
|
|
261
261
|
// JSON numbers must be finite. Encode non-finite numbers as null.
|
|
262
262
|
|
|
263
|
-
|
|
263
|
+
return isFinite(value) ? String(value) : 'null';
|
|
264
264
|
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
case 'boolean':
|
|
266
|
+
case 'null':
|
|
267
267
|
|
|
268
268
|
// If the value is a boolean or null, convert it to a string. Note:
|
|
269
269
|
// typeof null does not produce 'null'. The case is included here in
|
|
270
270
|
// the remote chance that this gets fixed someday.
|
|
271
271
|
|
|
272
|
-
|
|
272
|
+
return String(value);
|
|
273
273
|
|
|
274
274
|
// If the type is 'object', we might be dealing with an object or an array or
|
|
275
275
|
// null.
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
case 'object':
|
|
278
278
|
|
|
279
279
|
// Due to a specification blunder in ECMAScript, typeof null is 'object',
|
|
280
280
|
// so watch out for that case.
|
|
281
281
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
if (!value) {
|
|
283
|
+
return 'null';
|
|
284
|
+
}
|
|
285
285
|
|
|
286
286
|
// Make an array to hold the partial results of stringifying this object value.
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
gap += indent;
|
|
289
|
+
partial = [];
|
|
290
290
|
|
|
291
291
|
// Is the value an array?
|
|
292
292
|
|
|
293
|
-
|
|
293
|
+
if (Object.prototype.toString.apply(value) === '[object Array]') {
|
|
294
294
|
|
|
295
295
|
// The value is an array. Stringify every element. Use null as a placeholder
|
|
296
296
|
// for non-JSON values.
|
|
297
297
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
298
|
+
length = value.length;
|
|
299
|
+
for (i = 0; i < length; i += 1) {
|
|
300
|
+
partial[i] = str(i, value) || 'null';
|
|
301
|
+
}
|
|
302
302
|
|
|
303
303
|
// Join all of the elements together, separated with commas, and wrap them in
|
|
304
304
|
// brackets.
|
|
305
305
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
306
|
+
v = partial.length === 0 ? '[]' : gap ?
|
|
307
|
+
'[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' :
|
|
308
|
+
'[' + partial.join(',') + ']';
|
|
309
|
+
gap = mind;
|
|
310
|
+
return v;
|
|
311
|
+
}
|
|
312
312
|
|
|
313
313
|
// If the replacer is an array, use it to select the members to be stringified.
|
|
314
314
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
315
|
+
if (rep && typeof rep === 'object') {
|
|
316
|
+
length = rep.length;
|
|
317
|
+
for (i = 0; i < length; i += 1) {
|
|
318
|
+
k = rep[i];
|
|
319
|
+
if (typeof k === 'string') {
|
|
320
|
+
v = str(k, value);
|
|
321
|
+
if (v) {
|
|
322
|
+
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
|
323
|
+
}
|
|
323
324
|
}
|
|
324
325
|
}
|
|
325
|
-
}
|
|
326
|
-
} else {
|
|
326
|
+
} else {
|
|
327
327
|
|
|
328
328
|
// Otherwise, iterate through all of the keys in the object.
|
|
329
329
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
330
|
+
for (k in value) {
|
|
331
|
+
if (Object.hasOwnProperty.call(value, k)) {
|
|
332
|
+
v = str(k, value);
|
|
333
|
+
if (v) {
|
|
334
|
+
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
|
335
|
+
}
|
|
335
336
|
}
|
|
336
337
|
}
|
|
337
338
|
}
|
|
338
|
-
}
|
|
339
339
|
|
|
340
340
|
// Join all of the member texts together, separated with commas,
|
|
341
341
|
// and wrap them in braces.
|
|
342
342
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
343
|
+
v = partial.length === 0 ? '{}' : gap ?
|
|
344
|
+
'{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' :
|
|
345
|
+
'{' + partial.join(',') + '}';
|
|
346
|
+
gap = mind;
|
|
347
|
+
return v;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
|
|
@@ -383,7 +383,7 @@ if (!JSON) {
|
|
|
383
383
|
rep = replacer;
|
|
384
384
|
if (replacer && typeof replacer !== 'function' &&
|
|
385
385
|
(typeof replacer !== 'object' ||
|
|
386
|
-
|
|
386
|
+
typeof replacer.length !== 'number')) {
|
|
387
387
|
throw new Error('JSON.stringify');
|
|
388
388
|
}
|
|
389
389
|
|
|
@@ -436,7 +436,7 @@ if (!JSON) {
|
|
|
436
436
|
if (cx.test(text)) {
|
|
437
437
|
text = text.replace(cx, function (a) {
|
|
438
438
|
return '\\u' +
|
|
439
|
-
|
|
439
|
+
('0000' + a.charCodeAt(0).toString(16)).slice(-4);
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
|
|
@@ -455,8 +455,8 @@ if (!JSON) {
|
|
|
455
455
|
|
|
456
456
|
if (/^[\],:{}\s]*$/
|
|
457
457
|
.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
|
|
459
|
+
.replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
|
|
460
460
|
|
|
461
461
|
// In the third stage we use the eval function to compile the text into a
|
|
462
462
|
// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
|
|
@@ -469,7 +469,7 @@ if (!JSON) {
|
|
|
469
469
|
// each name/value pair to a reviver function for possible transformation.
|
|
470
470
|
|
|
471
471
|
return typeof reviver === 'function' ?
|
|
472
|
-
|
|
472
|
+
walk({'': j}, '') : j;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
// If the text is not JSON parseable, then a SyntaxError is thrown.
|