compass-jquery-plugin 0.3.2.6 → 0.3.2.7.nil
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/VERSION.yml +2 -2
- data/lib/handle_js_files.rb +21 -2
- data/templates/dynatree/jquery.dynatree.js +23 -20
- data/templates/dynatree/jquery.dynatree.min.js +38 -38
- data/templates/dynatree/jquery/dynatree/aero.scss +1 -1
- data/templates/dynatree/jquery/dynatree/aqua.scss +1 -1
- data/templates/dynatree/jquery/dynatree/crystal.scss +1 -1
- data/templates/dynatree/jquery/dynatree/xp.scss +2 -2
- data/templates/ical/jquery/ical.scss +10 -10
- data/templates/jqgrid/i18n/jqgrid/locale-lt.js +134 -0
- data/templates/jqgrid/i18n/jqgrid/locale-lt.min.js +7 -0
- data/templates/jqgrid/jquery.jqGrid.js +155 -65
- data/templates/jqgrid/jquery.jqGrid.min.js +396 -393
- data/templates/jqgrid/manifest.rb +2 -0
- data/templates/jqtouch/jquery.jqtouch.js +166 -195
- data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
- data/templates/jqtouch/jquery/touch/apple.scss +5 -5
- data/templates/jqtouch/jquery/touch/default.scss +5 -5
- data/templates/jqtouch/jquery/touch/jqt.scss +12 -7
- data/templates/jqtouch/jquery/touch/jqtouch.scss +11 -13
- data/templates/jquery/history.adapter.jquery.js +54 -67
- data/templates/jquery/history.adapter.jquery.min.js +2 -2
- data/templates/jquery/history.html4.js +587 -680
- data/templates/jquery/history.html4.min.js +8 -18
- data/templates/jquery/history.js +1670 -1289
- data/templates/jquery/history.min.js +25 -21
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-tj.js +23 -0
- data/templates/jquery/i18n/jquery.ui/datepicker-tj.min.js +2 -0
- data/templates/jquery/jquery-ui.js +97 -61
- data/templates/jquery/jquery-ui.min.js +175 -175
- data/templates/jquery/jquery.dst.js +86 -151
- data/templates/jquery/jquery/ui/_theme.scss +13 -13
- data/templates/jquery/json2.js +214 -214
- data/templates/jquery/manifest.rb +2 -0
- data/templates/mobile/jquery.mobile.js +324 -225
- data/templates/mobile/jquery.mobile.min.js +4 -4
- data/templates/mobile/jquery/mobile/_base.scss +60 -48
- data/templates/mobile/jquery/mobile/default.scss +57 -80
- data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia.scss +61 -73
- data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
- data/templates/mobile/manifest.rb +0 -8
- data/templates/ribbon/jquery/ribbon/office.scss +12 -12
- data/templates/ribbon/jquery/ribbon/windows7.scss +12 -12
- data/templates/tiny_mce/manifest.rb +16 -0
- data/templates/tiny_mce/tiny_mce/jquery.tinymce.js +1 -1
- data/templates/tiny_mce/tiny_mce/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/langs/en.js +1 -222
- data/templates/tiny_mce/tiny_mce/plugins/advhr/css/advhr.css +1 -5
- data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin_src.js +1 -57
- data/templates/tiny_mce/tiny_mce/plugins/advhr/js/rule.js +1 -43
- data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/en_dlg.js +1 -7
- data/templates/tiny_mce/tiny_mce/plugins/advhr/rule.htm +1 -58
- data/templates/tiny_mce/tiny_mce/plugins/advimage/css/advimage.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin_src.js +1 -50
- data/templates/tiny_mce/tiny_mce/plugins/advimage/image.htm +1 -235
- data/templates/tiny_mce/tiny_mce/plugins/advimage/js/image.js +1 -445
- data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/en_dlg.js +1 -45
- data/templates/tiny_mce/tiny_mce/plugins/advlink/css/advlink.css +1 -8
- data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin_src.js +1 -61
- data/templates/tiny_mce/tiny_mce/plugins/advlink/js/advlink.js +1 -525
- data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/en_dlg.js +1 -54
- data/templates/tiny_mce/tiny_mce/plugins/advlink/link.htm +1 -338
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin_src.js +1 -154
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin_src.js +1 -119
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin_src.js +1 -431
- data/templates/tiny_mce/tiny_mce/plugins/autosave/langs/en.js +1 -4
- data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin_src.js +1 -120
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin_src.js +1 -154
- data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin_src.js +1 -82
- data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin_src.js +1 -43
- data/templates/tiny_mce/tiny_mce/plugins/emotions/emotions.htm +1 -41
- data/templates/tiny_mce/tiny_mce/plugins/emotions/js/emotions.js +1 -22
- data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/en_dlg.js +1 -20
- data/templates/tiny_mce/tiny_mce/plugins/example/dialog.htm +1 -22
- data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin_src.js +1 -84
- data/templates/tiny_mce/tiny_mce/plugins/example/js/dialog.js +1 -19
- data/templates/tiny_mce/tiny_mce/plugins/example/langs/en.js +1 -3
- data/templates/tiny_mce/tiny_mce/plugins/example/langs/en_dlg.js +1 -3
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/css/fullpage.css +1 -182
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin_src.js +1 -166
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/fullpage.htm +1 -571
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/js/fullpage.js +1 -492
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/en_dlg.js +1 -85
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin_src.js +1 -159
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/fullscreen.htm +1 -109
- data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin_src.js +1 -54
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +1 -696
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +1 -90
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/template.htm +1 -387
- data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +1 -83
- data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin_src.js +1 -214
- data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +1 -139
- data/templates/tiny_mce/tiny_mce/plugins/media/css/media.css +1 -17
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin_src.js +1 -770
- data/templates/tiny_mce/tiny_mce/plugins/media/js/embed.js +1 -73
- data/templates/tiny_mce/tiny_mce/plugins/media/js/media.js +1 -340
- data/templates/tiny_mce/tiny_mce/plugins/media/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/langs/en_dlg.js +1 -109
- data/templates/tiny_mce/tiny_mce/plugins/media/media.htm +1 -812
- data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin_src.js +1 -90
- data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin_src.js +1 -74
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin_src.js +1 -899
- data/templates/tiny_mce/tiny_mce/plugins/paste/js/pastetext.js +1 -36
- data/templates/tiny_mce/tiny_mce/plugins/paste/js/pasteword.js +1 -51
- data/templates/tiny_mce/tiny_mce/plugins/paste/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/paste/langs/en_dlg.js +1 -5
- data/templates/tiny_mce/tiny_mce/plugins/paste/pastetext.htm +1 -27
- data/templates/tiny_mce/tiny_mce/plugins/paste/pasteword.htm +1 -21
- data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin_src.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/preview/example.html +17 -16
- data/templates/tiny_mce/tiny_mce/plugins/preview/jscripts/embed.js +1 -73
- data/templates/tiny_mce/tiny_mce/plugins/preview/preview.html +10 -9
- data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin_src.js +1 -34
- data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin_src.js +1 -101
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/css/searchreplace.css +1 -6
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin_src.js +1 -61
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/js/searchreplace.js +1 -140
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/en_dlg.js +1 -16
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/searchreplace.htm +1 -100
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/css/content.css +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin_src.js +1 -415
- data/templates/tiny_mce/tiny_mce/plugins/style/css/props.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin_src.js +1 -55
- data/templates/tiny_mce/tiny_mce/plugins/style/js/props.js +1 -635
- data/templates/tiny_mce/tiny_mce/plugins/style/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/style/langs/en_dlg.js +1 -70
- data/templates/tiny_mce/tiny_mce/plugins/style/props.htm +1 -838
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin_src.js +1 -114
- data/templates/tiny_mce/tiny_mce/plugins/table/cell.htm +1 -178
- data/templates/tiny_mce/tiny_mce/plugins/table/css/cell.css +1 -17
- data/templates/tiny_mce/tiny_mce/plugins/table/css/row.css +1 -25
- data/templates/tiny_mce/tiny_mce/plugins/table/css/table.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin_src.js +1 -1183
- data/templates/tiny_mce/tiny_mce/plugins/table/js/cell.js +1 -284
- data/templates/tiny_mce/tiny_mce/plugins/table/js/merge_cells.js +1 -27
- data/templates/tiny_mce/tiny_mce/plugins/table/js/row.js +1 -232
- data/templates/tiny_mce/tiny_mce/plugins/table/js/table.js +1 -450
- data/templates/tiny_mce/tiny_mce/plugins/table/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/langs/en_dlg.js +1 -74
- data/templates/tiny_mce/tiny_mce/plugins/table/merge_cells.htm +1 -32
- data/templates/tiny_mce/tiny_mce/plugins/table/row.htm +1 -157
- data/templates/tiny_mce/tiny_mce/plugins/table/table.htm +1 -188
- data/templates/tiny_mce/tiny_mce/plugins/template/blank.htm +1 -12
- data/templates/tiny_mce/tiny_mce/plugins/template/css/template.css +1 -23
- data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin_src.js +1 -159
- data/templates/tiny_mce/tiny_mce/plugins/template/js/template.js +1 -106
- data/templates/tiny_mce/tiny_mce/plugins/template/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/template/langs/en_dlg.js +1 -15
- data/templates/tiny_mce/tiny_mce/plugins/template/template.htm +1 -31
- data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin_src.js +1 -83
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin_src.js +1 -114
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/abbr.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/acronym.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/attributes.htm +1 -149
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/cite.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/attributes.css +1 -11
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/popup.css +1 -9
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/del.htm +1 -162
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +1 -132
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/ins.htm +1 -162
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/abbr.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/acronym.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/attributes.js +1 -125
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/cite.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/del.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/element_common.js +1 -229
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/ins.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +1 -32
- data/templates/tiny_mce/tiny_mce/themes/advanced/about.htm +1 -52
- data/templates/tiny_mce/tiny_mce/themes/advanced/anchor.htm +1 -26
- data/templates/tiny_mce/tiny_mce/themes/advanced/charmap.htm +1 -51
- data/templates/tiny_mce/tiny_mce/themes/advanced/color_picker.htm +1 -74
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template_src.js +1 -1328
- data/templates/tiny_mce/tiny_mce/themes/advanced/image.htm +1 -80
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/about.js +1 -73
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/anchor.js +1 -42
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/charmap.js +1 -354
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/color_picker.js +1 -329
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/image.js +1 -247
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/link.js +1 -153
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/source_editor.js +1 -56
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en.js +1 -68
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en_dlg.js +1 -54
- data/templates/tiny_mce/tiny_mce/themes/advanced/link.htm +1 -57
- data/templates/tiny_mce/tiny_mce/themes/advanced/shortcuts.htm +1 -47
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/content.css +1 -47
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/dialog.css +1 -117
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/ui.css +1 -213
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/content.css +1 -23
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +1 -105
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/ui.css +1 -101
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/content.css +1 -46
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/dialog.css +1 -116
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui.css +1 -215
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +1 -8
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +1 -5
- data/templates/tiny_mce/tiny_mce/themes/advanced/source_editor.htm +1 -25
- data/templates/tiny_mce/tiny_mce/themes/simple/editor_template.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/simple/editor_template_src.js +1 -84
- data/templates/tiny_mce/tiny_mce/themes/simple/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/langs/en.js +1 -11
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/content.css +1 -25
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/ui.css +1 -32
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/content.css +1 -17
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/ui.css +1 -35
- data/templates/tiny_mce/tiny_mce/tiny_mce.js +1 -1
- data/templates/tiny_mce/tiny_mce/tiny_mce_popup.js +1 -5
- data/templates/tiny_mce/tiny_mce/utils/editable_selects.js +1 -70
- data/templates/tiny_mce/tiny_mce/utils/form_utils.js +1 -207
- data/templates/tiny_mce/tiny_mce/utils/mctabs.js +1 -162
- data/templates/tiny_mce/tiny_mce/utils/validate.js +1 -252
- metadata +32 -17
- data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
@@ -1,5 +1,5 @@
|
|
1
|
-
(function(b,d){function e(h){return!b(h).parents().andSelf().filter(function(){return b.curCSS(this,"visibility")==="hidden"||b.expr.filters.hidden(this)}).length}b.ui=b.ui||{};if(!b.ui.version){b.extend(b.ui,{version:"
|
2
|
-
|
1
|
+
(function(b,d){function e(h){return!b(h).parents().andSelf().filter(function(){return b.curCSS(this,"visibility")==="hidden"||b.expr.filters.hidden(this)}).length}b.ui=b.ui||{};if(!b.ui.version){b.extend(b.ui,{version:"1.8.11",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,
|
2
|
+
PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});b.fn.extend({_focus:b.fn.focus,focus:function(h,g){return typeof h==="number"?this.each(function(){var a=this;setTimeout(function(){b(a).focus();g&&g.call(a)},h)}):this._focus.apply(this,arguments)},scrollParent:function(){var h;h=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,
|
3
3
|
"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!h.length?b(document):h},zIndex:function(h){if(h!==d)return this.css("zIndex",h);if(this.length){h=b(this[0]);for(var g;h.length&&h[0]!==document;){g=h.css("position");
|
4
4
|
if(g==="absolute"||g==="relative"||g==="fixed"){g=parseInt(h.css("zIndex"),10);if(!isNaN(g)&&g!==0)return g}h=h.parent()}}return 0},disableSelection:function(){return this.bind((b.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(h){h.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});b.each(["Width","Height"],function(h,g){function a(l,o,m,k){b.each(f,function(){o-=parseFloat(b.curCSS(l,"padding"+this,true))||0;if(m)o-=parseFloat(b.curCSS(l,
|
5
5
|
"border"+this+"Width",true))||0;if(k)o-=parseFloat(b.curCSS(l,"margin"+this,true))||0});return o}var f=g==="Width"?["Left","Right"]:["Top","Bottom"],i=g.toLowerCase(),j={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};b.fn["inner"+g]=function(l){if(l===d)return j["inner"+g].call(this);return this.each(function(){b(this).css(i,a(this,l)+"px")})};b.fn["outer"+g]=function(l,o){if(typeof l!=="number")return j["outer"+g].call(this,l);return this.each(function(){b(this).css(i,
|
@@ -14,14 +14,14 @@ widget:function(){return this.element},option:function(g,a){var f=g;if(arguments
|
|
14
14
|
enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(g,a,f){var i=this.options[g];a=b.Event(a);a.type=(g===this.widgetEventPrefix?g:this.widgetEventPrefix+g).toLowerCase();f=f||{};if(a.originalEvent){g=b.event.props.length;for(var j;g;){j=b.event.props[--g];a[j]=a.originalEvent[j]}}this.element.trigger(a,f);return!(b.isFunction(i)&&i.call(this.element[0],a,f)===false||a.isDefaultPrevented())}}})(jQuery);
|
15
15
|
(function(b){b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(e){return d._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(true===b.data(e.target,d.widgetName+".preventClickEvent")){b.removeData(e.target,d.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(d){d.originalEvent=
|
16
16
|
d.originalEvent||{};if(!d.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(d);this._mouseDownEvent=d;var e=this,h=d.which==1,g=typeof this.options.cancel=="string"?b(d.target).parents().add(d.target).filter(this.options.cancel).length:false;if(!h||g||!this._mouseCapture(d))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=
|
17
|
-
this._mouseStart(d)!==false;if(!this._mouseStarted){d.preventDefault();return true}}this._mouseMoveDelegate=function(a){return e._mouseMove(a)};this._mouseUpDelegate=function(a){return e._mouseUp(a)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);d.preventDefault();return d.originalEvent.mouseHandled=
|
18
|
-
return d.preventDefault()}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,d)!==false)?this._mouseDrag(d):this._mouseUp(d);return!this._mouseStarted},_mouseUp:function(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
|
19
|
-
true);this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
|
17
|
+
this._mouseStart(d)!==false;if(!this._mouseStarted){d.preventDefault();return true}}true===b.data(d.target,this.widgetName+".preventClickEvent")&&b.removeData(d.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return e._mouseMove(a)};this._mouseUpDelegate=function(a){return e._mouseUp(a)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);d.preventDefault();return d.originalEvent.mouseHandled=
|
18
|
+
true}},_mouseMove:function(d){if(b.browser.msie&&!(document.documentMode>=9)&&!d.button)return this._mouseUp(d);if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,d)!==false)?this._mouseDrag(d):this._mouseUp(d);return!this._mouseStarted},_mouseUp:function(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
|
19
|
+
if(this._mouseStarted){this._mouseStarted=false;d.target==this._mouseDownEvent.target&&b.data(d.target,this.widgetName+".preventClickEvent",true);this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
|
20
20
|
(function(b){b.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var d=this,e=d.options;d.running=0;d.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
|
21
21
|
d.headers=d.element.find(e.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){e.disabled||b(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){e.disabled||b(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){e.disabled||b(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){e.disabled||b(this).removeClass("ui-state-focus")});d.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
|
22
22
|
if(e.navigation){var h=d.element.find("a").filter(e.navigationFilter).eq(0);if(h.length){var g=h.closest(".ui-accordion-header");d.active=g.length?g:h.closest(".ui-accordion-content").prev()}}d.active=d._findActive(d.active||e.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");d.active.next().addClass("ui-accordion-content-active");d._createIcons();d.resize();d.element.attr("role","tablist");d.headers.attr("role","tab").bind("keydown.accordion",
|
23
|
-
function(a){return d._keydown(a)}).next().attr("role","tabpanel");d.headers.not(d.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();d.active.length?d.active.attr({"aria-expanded":"true",tabIndex:0}):d.headers.eq(0).attr("tabIndex",0);b.browser.safari||d.headers.find("a").attr("tabIndex",-1);e.event&&d.headers.bind(e.event.split(" ").join(".accordion ")+".accordion",function(a){d._clickHandler.call(d,a,this);a.preventDefault()})},_createIcons:function(){var d=
|
24
|
-
d.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var d=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
|
23
|
+
function(a){return d._keydown(a)}).next().attr("role","tabpanel");d.headers.not(d.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();d.active.length?d.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):d.headers.eq(0).attr("tabIndex",0);b.browser.safari||d.headers.find("a").attr("tabIndex",-1);e.event&&d.headers.bind(e.event.split(" ").join(".accordion ")+".accordion",function(a){d._clickHandler.call(d,a,this);a.preventDefault()})},_createIcons:function(){var d=
|
24
|
+
this.options;if(d.icons){b("<span></span>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var d=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");
|
25
25
|
this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var e=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(d.autoHeight||d.fillHeight)e.css("height","");return b.Widget.prototype.destroy.call(this)},_setOption:function(d,e){b.Widget.prototype._setOption.apply(this,arguments);d=="active"&&this.activate(e);if(d=="icons"){this._destroyIcons();
|
26
26
|
e&&this._createIcons()}if(d=="disabled")this.headers.add(this.headers.next())[e?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(d){if(!(this.options.disabled||d.altKey||d.ctrlKey)){var e=b.ui.keyCode,h=this.headers.length,g=this.headers.index(d.target),a=false;switch(d.keyCode){case e.RIGHT:case e.DOWN:a=this.headers[(g+1)%h];break;case e.LEFT:case e.UP:a=this.headers[(g-1+h)%h];break;case e.SPACE:case e.ENTER:this._clickHandler({target:d.target},d.target);
|
27
27
|
d.preventDefault()}if(a){b(d.target).attr("tabIndex",-1);b(a).attr("tabIndex",0);a.focus();return false}return true}},resize:function(){var d=this.options,e;if(d.fillSpace){if(b.browser.msie){var h=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}e=this.element.parent().height();b.browser.msie&&this.element.parent().css("overflow",h);this.headers.each(function(){e-=b(this).outerHeight(true)});this.headers.next().each(function(){b(this).height(Math.max(0,e-b(this).innerHeight()+
|
@@ -30,21 +30,22 @@ if(!h.disabled)if(d.target){var g=b(d.currentTarget||e),a=g[0]===this.active[0];
|
|
30
30
|
if(!a){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(h.icons.header).addClass(h.icons.headerSelected);g.next().addClass("ui-accordion-content-active")}}}else if(h.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(h.icons.headerSelected).addClass(h.icons.header);this.active.next().addClass("ui-accordion-content-active");var j=this.active.next(),
|
31
31
|
l={options:h,newHeader:b([]),oldHeader:h.active,newContent:b([]),oldContent:j},o=this.active=b([]);this._toggle(o,j,l)}},_toggle:function(d,e,h,g,a){var f=this,i=f.options;f.toShow=d;f.toHide=e;f.data=h;var j=function(){if(f)return f._completed.apply(f,arguments)};f._trigger("changestart",null,f.data);f.running=e.size()===0?d.size():e.size();if(i.animated){h={};h=i.collapsible&&g?{toShow:b([]),toHide:e,complete:j,down:a,autoHeight:i.autoHeight||i.fillSpace}:{toShow:d,toHide:e,complete:j,down:a,autoHeight:i.autoHeight||
|
32
32
|
i.fillSpace};if(!i.proxied)i.proxied=i.animated;if(!i.proxiedDuration)i.proxiedDuration=i.duration;i.animated=b.isFunction(i.proxied)?i.proxied(h):i.proxied;i.duration=b.isFunction(i.proxiedDuration)?i.proxiedDuration(h):i.proxiedDuration;g=b.ui.accordion.animations;var l=i.duration,o=i.animated;if(o&&!g[o]&&!b.easing[o])o="slide";g[o]||(g[o]=function(m){this.slide(m,{easing:o,duration:l||700})});g[o](h)}else{if(i.collapsible&&g)d.toggle();else{e.hide();d.show()}j(true)}e.prev().attr({"aria-expanded":"false",
|
33
|
-
tabIndex:-1}).blur();d.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(d){this.running=d?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});b.extend(b.ui.accordion,{version:"
|
34
|
-
b.extend({easing:"swing",duration:300},d,e);if(d.toHide.size())if(d.toShow.size()){var h=d.toShow.css("overflow"),g=0,a={},f={},i,j=d.toShow;i=j[0].style.width;j.width(parseInt(j.parent().width(),10)-parseInt(j.css("paddingLeft"),10)-parseInt(j.css("paddingRight"),10)-(parseInt(j.css("borderLeftWidth"),10)||0)-(parseInt(j.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],function(l,o){f[o]="hide";var m=(""+b.css(d.toShow[0],o)).match(/^([\d+-.]+)(.*)$/);
|
35
|
-
unit:m[2]||"px"}});d.toShow.css({height:0,overflow:"hidden"}).show();d.toHide.filter(":hidden").each(d.complete).end().filter(":visible").animate(f,{step:function(l,o){if(o.prop=="height")g=o.end-o.start===0?0:(o.now-o.start)/(o.end-o.start);d.toShow[0].style[o.prop]=g*a[o.prop].value+a[o.prop].unit},duration:d.duration,easing:d.easing,complete:function(){d.autoHeight||d.toShow.css("height","");d.toShow.css({width:i,overflow:h});d.complete()}})}else d.toHide.animate({height:"hide",
|
36
|
-
paddingBottom:"hide"},d);else d.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},d)},bounceslide:function(d){this.slide(d,{easing:d.down?"easeOutBounce":"swing",duration:d.down?1E3:200})}}})})(jQuery);
|
37
|
-
(function(b){var d=0;b.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var e=this,h=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(a){if(!(e.options.disabled||e.element.attr("readonly"))){g=
|
38
|
-
switch(a.keyCode){case f.PAGE_UP:e._move("previousPage",a);break;case f.PAGE_DOWN:e._move("nextPage",a);break;case f.UP:e._move("previous",a);a.preventDefault();break;case f.DOWN:e._move("next",a);a.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:if(e.menu.active){g=true;a.preventDefault()}case f.TAB:if(!e.menu.active)break;e.menu.select(a);break;case f.ESCAPE:e.element.val(e.term);e.close(a);break;default:clearTimeout(e.searching);e.searching=setTimeout(function(){if(e.term!=
|
39
|
-
null;e.search(null,a)}},e.options.delay)}}}).bind("keypress.autocomplete",function(a){if(g){g=false;a.preventDefault()}}).bind("focus.autocomplete",function(){if(!e.options.disabled){e.selectedItem=null;e.previous=e.element.val()}}).bind("blur.autocomplete",function(a){if(!e.options.disabled){clearTimeout(e.searching);e.closing=setTimeout(function(){e.close(a);e._change(a)},150)}});this._initSource();this.response=function(){return e._response.apply(e,arguments)};this.menu=
|
40
|
-
"body",h)[0]).mousedown(function(a){var f=e.menu.element[0];b(a.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(i){i.target!==e.element[0]&&i.target!==f&&!b.ui.contains(f,i.target)&&e.close()})},1);setTimeout(function(){clearTimeout(e.closing)},13)}).menu({focus:function(a,f){var i=f.item.data("item.autocomplete");false!==e._trigger("focus",a,{item:i})&&/^key/.test(a.originalEvent.type)&&
|
41
|
-
j=e.previous;if(e.element[0]!==h.activeElement){e.element.focus();e.previous=j;setTimeout(function(){e.previous=j;e.selectedItem=i},1)}false!==e._trigger("select",a,{item:i})&&e.element.val(i.value);e.term=e.element.val();e.close(a);e.selectedItem=i},blur:function(){e.menu.element.is(":visible")&&e.element.val()!==e.term&&e.element.val(e.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");
|
42
|
-
this.menu.element.remove();b.Widget.prototype.destroy.call(this)},_setOption:function(e,h){b.Widget.prototype._setOption.apply(this,arguments);e==="source"&&this._initSource();if(e==="appendTo")this.menu.element.appendTo(b(h||"body",this.element[0].ownerDocument)[0]);e==="disabled"&&
|
43
|
-
"string"){g=this.options.source;this.source=function(a,f){e.xhr&&e.xhr.abort();e.xhr=b.ajax({url:g,data:a,dataType:"json",autocompleteRequest:++d,success:function(i){this.autocompleteRequest===d&&f(i)},error:function(){this.autocompleteRequest===d&&f([])}})}}else this.source=
|
44
|
-
|
45
|
-
this.element.val()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){if(e.length&&e[0].label&&e[0].value)return e;return b.map(e,function(h){if(typeof h==="string")return{label:h,value:h};return b.extend({label:h.label||
|
46
|
-
|
47
|
-
else this.search(null,h)},widget:function(){return this.menu.element}});b.extend(b.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
|
33
|
+
"aria-selected":"false",tabIndex:-1}).blur();d.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(d){this.running=d?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});b.extend(b.ui.accordion,{version:"1.8.11",
|
34
|
+
animations:{slide:function(d,e){d=b.extend({easing:"swing",duration:300},d,e);if(d.toHide.size())if(d.toShow.size()){var h=d.toShow.css("overflow"),g=0,a={},f={},i,j=d.toShow;i=j[0].style.width;j.width(parseInt(j.parent().width(),10)-parseInt(j.css("paddingLeft"),10)-parseInt(j.css("paddingRight"),10)-(parseInt(j.css("borderLeftWidth"),10)||0)-(parseInt(j.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],function(l,o){f[o]="hide";var m=(""+b.css(d.toShow[0],o)).match(/^([\d+-.]+)(.*)$/);
|
35
|
+
a[o]={value:m[1],unit:m[2]||"px"}});d.toShow.css({height:0,overflow:"hidden"}).show();d.toHide.filter(":hidden").each(d.complete).end().filter(":visible").animate(f,{step:function(l,o){if(o.prop=="height")g=o.end-o.start===0?0:(o.now-o.start)/(o.end-o.start);d.toShow[0].style[o.prop]=g*a[o.prop].value+a[o.prop].unit},duration:d.duration,easing:d.easing,complete:function(){d.autoHeight||d.toShow.css("height","");d.toShow.css({width:i,overflow:h});d.complete()}})}else d.toHide.animate({height:"hide",
|
36
|
+
paddingTop:"hide",paddingBottom:"hide"},d);else d.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},d)},bounceslide:function(d){this.slide(d,{easing:d.down?"easeOutBounce":"swing",duration:d.down?1E3:200})}}})})(jQuery);
|
37
|
+
(function(b){var d=0;b.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var e=this,h=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(a){if(!(e.options.disabled||e.element.attr("readonly"))){g=
|
38
|
+
false;var f=b.ui.keyCode;switch(a.keyCode){case f.PAGE_UP:e._move("previousPage",a);break;case f.PAGE_DOWN:e._move("nextPage",a);break;case f.UP:e._move("previous",a);a.preventDefault();break;case f.DOWN:e._move("next",a);a.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:if(e.menu.active){g=true;a.preventDefault()}case f.TAB:if(!e.menu.active)break;e.menu.select(a);break;case f.ESCAPE:e.element.val(e.term);e.close(a);break;default:clearTimeout(e.searching);e.searching=setTimeout(function(){if(e.term!=
|
39
|
+
e.element.val()){e.selectedItem=null;e.search(null,a)}},e.options.delay)}}}).bind("keypress.autocomplete",function(a){if(g){g=false;a.preventDefault()}}).bind("focus.autocomplete",function(){if(!e.options.disabled){e.selectedItem=null;e.previous=e.element.val()}}).bind("blur.autocomplete",function(a){if(!e.options.disabled){clearTimeout(e.searching);e.closing=setTimeout(function(){e.close(a);e._change(a)},150)}});this._initSource();this.response=function(){return e._response.apply(e,arguments)};this.menu=
|
40
|
+
b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||"body",h)[0]).mousedown(function(a){var f=e.menu.element[0];b(a.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(i){i.target!==e.element[0]&&i.target!==f&&!b.ui.contains(f,i.target)&&e.close()})},1);setTimeout(function(){clearTimeout(e.closing)},13)}).menu({focus:function(a,f){var i=f.item.data("item.autocomplete");false!==e._trigger("focus",a,{item:i})&&/^key/.test(a.originalEvent.type)&&
|
41
|
+
e.element.val(i.value)},selected:function(a,f){var i=f.item.data("item.autocomplete"),j=e.previous;if(e.element[0]!==h.activeElement){e.element.focus();e.previous=j;setTimeout(function(){e.previous=j;e.selectedItem=i},1)}false!==e._trigger("select",a,{item:i})&&e.element.val(i.value);e.term=e.element.val();e.close(a);e.selectedItem=i},blur:function(){e.menu.element.is(":visible")&&e.element.val()!==e.term&&e.element.val(e.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");
|
42
|
+
b.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();b.Widget.prototype.destroy.call(this)},_setOption:function(e,h){b.Widget.prototype._setOption.apply(this,arguments);e==="source"&&this._initSource();if(e==="appendTo")this.menu.element.appendTo(b(h||"body",this.element[0].ownerDocument)[0]);e==="disabled"&&
|
43
|
+
h&&this.xhr&&this.xhr.abort()},_initSource:function(){var e=this,h,g;if(b.isArray(this.options.source)){h=this.options.source;this.source=function(a,f){f(b.ui.autocomplete.filter(h,a.term))}}else if(typeof this.options.source==="string"){g=this.options.source;this.source=function(a,f){e.xhr&&e.xhr.abort();e.xhr=b.ajax({url:g,data:a,dataType:"json",autocompleteRequest:++d,success:function(i){this.autocompleteRequest===d&&f(i)},error:function(){this.autocompleteRequest===d&&f([])}})}}else this.source=
|
44
|
+
this.options.source},search:function(e,h){e=e!=null?e:this.element.val();this.term=this.element.val();if(e.length<this.options.minLength)return this.close(h);clearTimeout(this.closing);if(this._trigger("search",h)!==false)return this._search(e)},_search:function(e){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:e},this.response)},_response:function(e){if(!this.options.disabled&&e&&e.length){e=this._normalize(e);this._suggest(e);this._trigger("open")}else this.close();
|
45
|
+
this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(e){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",e)}},_change:function(e){this.previous!==this.element.val()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){if(e.length&&e[0].label&&e[0].value)return e;return b.map(e,function(h){if(typeof h==="string")return{label:h,value:h};return b.extend({label:h.label||
|
46
|
+
h.value,value:h.value||h.label},h)})},_suggest:function(e){var h=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(h,e);this.menu.deactivate();this.menu.refresh();h.show();this._resizeMenu();h.position(b.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new b.Event("mouseover"))},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(e,h){var g=this;
|
47
|
+
b.each(h,function(a,f){g._renderItem(e,f)})},_renderItem:function(e,h){return b("<li></li>").data("item.autocomplete",h).append(b("<a></a>").text(h.label)).appendTo(e)},_move:function(e,h){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(e)||this.menu.last()&&/^next/.test(e)){this.element.val(this.term);this.menu.deactivate()}else this.menu[e](h);else this.search(null,h)},widget:function(){return this.menu.element}});b.extend(b.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
|
48
|
+
"\\$&")},filter:function(e,h){var g=RegExp(b.ui.autocomplete.escapeRegex(h),"i");return b.grep(e,function(a){return g.test(a.label||a.value||a)})}})})(jQuery);
|
48
49
|
(function(b){b.widget("ui.menu",{_create:function(){var d=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(e){if(b(e.target).closest(".ui-menu-item a").length){e.preventDefault();d.select(e)}});this.refresh()},refresh:function(){var d=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
|
49
50
|
-1).mouseenter(function(e){d.activate(e,b(this).parent())}).mouseleave(function(){d.deactivate()})},activate:function(d,e){this.deactivate();if(this.hasScroll()){var h=e.offset().top-this.element.offset().top,g=this.element.attr("scrollTop"),a=this.element.height();if(h<0)this.element.attr("scrollTop",g+h);else h>=a&&this.element.attr("scrollTop",g+h-a+e.height())}this.active=e.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",d,{item:e})},
|
50
51
|
deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(d){this.move("next",".ui-menu-item:first",d)},previous:function(d){this.move("prev",".ui-menu-item:last",d)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(d,e,h){if(this.active){d=this.active[d+"All"](".ui-menu-item").eq(0);
|
@@ -56,19 +57,18 @@ e);if(typeof this.options.disabled!=="boolean")this.options.disabled=this.elemen
|
|
56
57
|
function(){if(!a.disabled){b(this).addClass("ui-state-hover");this===d&&b(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){a.disabled||b(this).removeClass(i)}).bind("focus.button",function(){b(this).addClass("ui-state-focus")}).bind("blur.button",function(){b(this).removeClass("ui-state-focus")});f&&this.element.bind("change.button",function(){g.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(a.disabled)return false;b(this).toggleClass("ui-state-active");
|
57
58
|
g.buttonElement.attr("aria-pressed",g.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(a.disabled)return false;b(this).addClass("ui-state-active");g.buttonElement.attr("aria-pressed",true);var j=g.element[0];h(j).not(j).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(a.disabled)return false;b(this).addClass("ui-state-active");
|
58
59
|
d=this;b(document).one("mouseup",function(){d=null})}).bind("mouseup.button",function(){if(a.disabled)return false;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(j){if(a.disabled)return false;if(j.keyCode==b.ui.keyCode.SPACE||j.keyCode==b.ui.keyCode.ENTER)b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(j){j.keyCode===b.ui.keyCode.SPACE&&b(this).click()})}this._setOption("disabled",
|
59
|
-
a.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){
|
60
|
-
this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
|
61
|
-
this.buttonElement.removeAttr("title");b.Widget.prototype.destroy.call(this)},_setOption:function(g,a){b.Widget.prototype._setOption.apply(this,arguments);if(g==="disabled")a?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var g=this.element.is(":disabled");g!==this.options.disabled&&this._setOption("disabled",g);if(this.type==="radio")h(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
|
60
|
+
a.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){var g=this.element.parents().filter(":last"),a="label[for="+this.element.attr("id")+"]";this.buttonElement=g.find(a);if(!this.buttonElement.length){g=g.length?g.siblings():this.element.siblings();this.buttonElement=g.filter(a);if(!this.buttonElement.length)this.buttonElement=g.find(a)}this.element.addClass("ui-helper-hidden-accessible");
|
61
|
+
(g=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",g)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
|
62
|
+
this.hasTitle||this.buttonElement.removeAttr("title");b.Widget.prototype.destroy.call(this)},_setOption:function(g,a){b.Widget.prototype._setOption.apply(this,arguments);if(g==="disabled")a?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var g=this.element.is(":disabled");g!==this.options.disabled&&this._setOption("disabled",g);if(this.type==="radio")h(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
|
62
63
|
true):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var g=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
|
63
|
-
a=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(g.empty()).text(),f=this.options.icons,i=f.primary&&f.secondary,j=[];if(f.primary||f.secondary){j.push("ui-button-text-icon"+(i?"s":f.primary?"-primary":"-secondary"));f.primary&&g.prepend("<span class='ui-button-icon-primary ui-icon "+f.primary+"'></span>");f.secondary&&g.append("<span class='ui-button-icon-secondary ui-icon "+f.secondary+"'></span>");if(!this.options.text){j.push(i?"ui-button-icons-only":
|
64
|
-
|
65
|
-
|
66
|
-
b.Widget.prototype.destroy.call(this)}})})(jQuery);
|
64
|
+
a=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(g.empty()).text(),f=this.options.icons,i=f.primary&&f.secondary,j=[];if(f.primary||f.secondary){if(this.options.text)j.push("ui-button-text-icon"+(i?"s":f.primary?"-primary":"-secondary"));f.primary&&g.prepend("<span class='ui-button-icon-primary ui-icon "+f.primary+"'></span>");f.secondary&&g.append("<span class='ui-button-icon-secondary ui-icon "+f.secondary+"'></span>");if(!this.options.text){j.push(i?"ui-button-icons-only":
|
65
|
+
"ui-button-icon-only");this.hasTitle||g.attr("title",a)}}else j.push("ui-button-text-only");g.addClass(j.join(" "))}}});b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(g,a){g==="disabled"&&this.buttons.button("option",g,a);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},
|
66
|
+
destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");b.Widget.prototype.destroy.call(this)}})})(jQuery);
|
67
67
|
(function(b,d){function e(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
|
68
68
|
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
|
69
69
|
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
|
70
70
|
minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};b.extend(this._defaults,this.regional[""]);this.dpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function h(a,f){b.extend(a,f);for(var i in f)if(f[i]==
|
71
|
-
null||f[i]==d)a[i]=f[i];return a}b.extend(b.ui,{datepicker:{version:"
|
71
|
+
null||f[i]==d)a[i]=f[i];return a}b.extend(b.ui,{datepicker:{version:"1.8.11"}});var g=(new Date).getTime();b.extend(e.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){h(this._defaults,a||{});return this},_attachDatepicker:function(a,f){var i=null,j;for(j in this._defaults){var l=a.getAttribute("date:"+j);if(l){i=i||{};try{i[j]=eval(l)}catch(o){i[j]=l}}}j=a.nodeName.toLowerCase();
|
72
72
|
l=j=="div"||j=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var m=this._newInst(b(a),l);m.settings=b.extend({},f||{},i||{});if(j=="input")this._connectDatepicker(a,m);else l&&this._inlineDatepicker(a,m)},_newInst:function(a,f){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:f,dpDiv:!f?this.dpDiv:b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
|
73
73
|
_connectDatepicker:function(a,f){var i=b(a);f.append=b([]);f.trigger=b([]);if(!i.hasClass(this.markerClassName)){this._attachments(i,f);i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(j,l,o){f.settings[l]=o}).bind("getData.datepicker",function(j,l){return this._get(f,l)});this._autoSize(f);b.data(a,"datepicker",f)}},_attachments:function(a,f){var i=this._get(f,"appendText"),j=this._get(f,"isRTL");f.append&&
|
74
74
|
f.append.remove();if(i){f.append=b('<span class="'+this._appendClass+'">'+i+"</span>");a[j?"before":"after"](f.append)}a.unbind("focus",this._showDatepicker);f.trigger&&f.trigger.remove();i=this._get(f,"showOn");if(i=="focus"||i=="both")a.focus(this._showDatepicker);if(i=="button"||i=="both"){i=this._get(f,"buttonText");var l=this._get(f,"buttonImage");f.trigger=b(this._get(f,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:l,alt:i,title:i}):b('<button type="button"></button>').addClass(this._triggerClass).html(l==
|
@@ -80,60 +80,60 @@ this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.da
|
|
80
80
|
this._doKeyUp)}else if(j=="div"||j=="span")f.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var f=b(a),i=b.data(a,"datepicker");if(f.hasClass(this.markerClassName)){var j=a.nodeName.toLowerCase();if(j=="input"){a.disabled=false;i.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(j=="div"||j=="span")f.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,
|
81
81
|
function(l){return l==a?null:l})}},_disableDatepicker:function(a){var f=b(a),i=b.data(a,"datepicker");if(f.hasClass(this.markerClassName)){var j=a.nodeName.toLowerCase();if(j=="input"){a.disabled=true;i.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(j=="div"||j=="span")f.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(l){return l==a?null:
|
82
82
|
l});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var f=0;f<this._disabledInputs.length;f++)if(this._disabledInputs[f]==a)return true;return false},_getInst:function(a){try{return b.data(a,"datepicker")}catch(f){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,f,i){var j=this._getInst(a);if(arguments.length==2&&typeof f=="string")return f=="defaults"?b.extend({},b.datepicker._defaults):j?f=="all"?b.extend({},
|
83
|
-
j.settings):this._get(j,f):null;var l=f||{};if(typeof f=="string"){l={};l[f]=i}if(j){this._curInst==j&&this._hideDatepicker();var o=this._getDateDatepicker(a,true);h(j.settings,l);
|
84
|
-
f);this._updateDatepicker(i);this._updateAlternate(i)}},_getDateDatepicker:function(a,f){var i=this._getInst(a);i&&!i.inline&&this._setDateFromField(i,f);return i?this._getDate(i):null},_doKeyDown:function(a){var f=b.datepicker._getInst(a.target),i=true,j=f.dpDiv.is(".ui-datepicker-rtl");
|
85
|
-
i[0]?b.datepicker._selectDay(a.target,f.selectedMonth,f.selectedYear,i[0]):b.datepicker._hideDatepicker();return false;case 27:b.datepicker._hideDatepicker();break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(f,"stepBigMonths"):-b.datepicker._get(f,"stepMonths"),
|
86
|
-
|
87
|
-
a.metaKey)b.datepicker._adjustDate(a.target,j?-1:+1,"D");i=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(f,"stepBigMonths"):+b.datepicker._get(f,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target
|
88
|
-
b.datepicker._getInst(a.target);if(b.datepicker._get(f,"constrainInput")){f=b.datepicker._possibleChars(b.datepicker._get(f,"dateFormat"));var i=String.fromCharCode(a.charCode==d?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||i<" "||!f||f.indexOf(i)>-1}},_doKeyUp:function(a){a=b.datepicker._getInst(a.target);
|
89
|
-
b.datepicker._updateAlternate(a);b.datepicker._updateDatepicker(a)}}catch(f){b.datepicker.log(f)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=b("input",a.parentNode)[0];if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var f=b.datepicker._getInst(a);
|
90
|
-
null;b.datepicker._lastInput=a;b.datepicker._setDateFromField(f);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(a);b.datepicker._pos[1]+=a.offsetHeight}var j=false;b(a).parents().each(function(){j|=b(this).css("position")=="fixed";return!j});if(j&&b.browser.opera){b.datepicker._pos[0]-=
|
91
|
-
null;f.dpDiv.empty();f.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(f);i=b.datepicker._checkOffset(f,i,j);f.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":j?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"});if(!f.inline){i=b.datepicker._get(f,"showAnim");
|
92
|
-
m.css({left:-k[0],top:-k[1],width:f.dpDiv.outerWidth(),height:f.dpDiv.outerHeight()})}};f.dpDiv.zIndex(b(a).zIndex()+1);b.effects&&b.effects[i]?f.dpDiv.show(i,b.datepicker._get(f,"showOptions"),l,o):f.dpDiv[i||"show"](i?l:null,o);if(!i||!l)o();f.input.is(":visible")&&!f.input.is(":disabled")&&f.input.focus();b.datepicker._curInst=
|
93
|
-
j.length&&j.css({left:-i[0],top:-i[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");
|
94
|
-
a.dpDiv.parent()[0]:a.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}}).end().find("."+
|
95
|
-
17*j+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(i[0]!=1||i[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==b.datepicker._curInst&&b.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&
|
96
|
-
a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);l=a.yearshtml=null},0)}},_getBorders:function(a){var f=function(i){return{thin:1,medium:2,thick:3}[i]||i};return[parseFloat(f(a.css("border-left-width"))),parseFloat(f(a.css("border-top-width")))]},_checkOffset:function(a,f,i){var j=a.dpDiv.outerWidth(),l=a.dpDiv.outerHeight(),o=a.input?a.input.outerWidth():
|
97
|
-
b(document).scrollTop();f.left-=this._get(a,"isRTL")?j-o:0;f.left-=i&&f.left==a.input.offset().left?b(document).scrollLeft():0;f.top-=i&&f.top==a.input.offset().top+m?b(document).scrollTop():0;f.left-=Math.min(f.left,f.left+j>k&&k>j?Math.abs(f.left+j-k):0);f.top-=Math.min(f.top,f.top+l>n&&n>l?Math.abs(l+m):0);return f},_findPos:function(a){for(var f=this._get(this._getInst(a),
|
98
|
-
return[a.left,a.top]},_hideDatepicker:function(a){var f=this._curInst;if(!(!f||a&&f!=b.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(f,"showAnim");var i=this._get(f,"duration"),j=function(){b.datepicker._tidyDialog(f);this._curInst=null};b.effects&&b.effects[a]?f.dpDiv.hide(a,b.datepicker._get(f,"showOptions"),i,j):f.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?
|
99
|
-
f]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(b.datepicker._curInst){a=
|
100
|
-
|
101
|
-
f.drawYear=f.selectedYear=f.currentYear}else{var i=new Date;f.selectedDay=i.getDate();f.drawMonth=f.selectedMonth=i.getMonth();f.drawYear=f.selectedYear=i.getFullYear()}this._notifyChange(f);this._adjustDate(a)},_selectMonthYear:function(a,f,i){a=b(a);var j=this._getInst(a[0]);j._selectingMonthYear=false;j["selected"+(i=="M"?"Month":"Year")]=j["draw"+(i==
|
102
|
-
this._getInst(b(a)[0]);f.input&&f._selectingMonthYear&&setTimeout(function(){f.input.focus()},0);f._selectingMonthYear=!f._selectingMonthYear},_selectDay:function(a,f,i,j){var l=b(a);if(!(b(j).hasClass(this._unselectableClass)||this._isDisabledDatepicker(l[0]))){l=this._getInst(l[0]);l.selectedDay=l.currentDay=b("a",j).html();l.selectedMonth=l.currentMonth=
|
103
|
-
b(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,f){var i=this._getInst(b(a)[0]);f=f!=null?f:this._formatDate(i);i.input&&i.input.val(f);this._updateAlternate(i);var j=this._get(i,"onSelect");if(j)j.apply(i.input?i.input[0]:null,[f,i]);else i.input&&i.input.trigger("change");if(i.inline)this._updateDatepicker(i);else{this._hideDatepicker();
|
104
|
-
"altField");if(f){var i=this._get(a,"altFormat")||this._get(a,"dateFormat"),j=this._getDate(a),l=this.formatDate(i,j,this._getFormatConfig(a));b(f).each(function(){b(this).val(l)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var f=a.getTime();a.setMonth(0);
|
105
|
-
"object"?f.toString():f+"";if(f=="")return null;var j=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff;j=typeof j!="string"?j:(new Date).getFullYear()%100+parseInt(j,10);for(var l=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,m=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,k=(i?
|
106
|
-
s(y);y=RegExp("^\\d{1,"+(y=="@"?14:y=="!"?20:y=="y"&&C?4:y=="o"?3:2)+"}");y=f.substring(x).match(y);if(!y)throw"Missing number at position "+x;x+=y[0].length;return parseInt(y[0],10)},v=function(y,C,K){y=s(y)?K:C;for(C=0;C<y.length;C++)if(f.substr(x,y[C].length).toLowerCase()==y[C].toLowerCase()){x+=y[C].length;return C+1}throw"Unknown name at position "+
|
107
|
-
false;else w();else switch(a.charAt(D)){case "d":p=u("d");break;case "D":v("D",l,o);break;case "o":q=u("o");break;case "m":n=u("m");break;case "M":n=v("M",m,k);break;case "y":i=u("y");break;case "@":var B=new Date(u("@"));i=B.getFullYear();n=B.getMonth()+1;p=B.getDate();break;case "!":B=new Date((u("!")-this._ticksTo1970)/1E4);i=B.getFullYear();n=B.getMonth()+
|
108
|
-
(new Date).getFullYear()%100+(i<=j?0:-100);if(q>-1){n=1;p=q;do{j=this._getDaysInMonth(i,n-1);if(p<=j)break;n++;p-=j}while(1)}B=this._daylightSavingAdjust(new Date(i,n-1,p));if(B.getFullYear()!=i||B.getMonth()+1!=n||B.getDate()!=p)throw"Invalid date";return B},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",
|
109
|
-
Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,f,i){if(!f)return"";var j=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,l=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort;i=(i?i.monthNames:null)||this._defaults.monthNames;var m=function(s){(s=r+1<a.length&&
|
110
|
-
if(f)for(var r=0;r<a.length;r++)if(q)if(a.charAt(r)=="'"&&!m("'"))q=false;else p+=a.charAt(r);else switch(a.charAt(r)){case "d":p+=k("d",f.getDate(),2);break;case "D":p+=n("D",f.getDay(),j,l);break;case "o":p+=k("o",(f.getTime()-(new Date(f.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":p+=k("m",f.getMonth()+1,2);break;case "M":p+=n("M",
|
111
|
-
1E4+this._ticksTo1970;break;case "'":if(m("'"))p+="'";else q=true;break;default:p+=a.charAt(r)}return p},_possibleChars:function(a){for(var f="",i=false,j=function(o){(o=l+1<a.length&&a.charAt(l+1)==o)&&l++;return o},l=0;l<a.length;l++)if(i)if(a.charAt(l)=="'"&&!j("'"))i=false;else f+=a.charAt(l);else switch(a.charAt(l)){case "d":case "m":case "y":case "@":f+=
|
112
|
-
f){return a.settings[f]!==d?a.settings[f]:this._defaults[f]},_setDateFromField:function(a,f){if(a.input.val()!=a.lastVal){var i=this._get(a,"dateFormat"),j=a.lastVal=a.input?a.input.val():null,l,o;l=o=this._getDefaultDate(a);var m=this._getFormatConfig(a);try{l=this.parseDate(i,j,m)||o}catch(k){this.log(k);j=f?"":j}a.selectedDay=l.getDate();a.drawMonth=a.selectedMonth=
|
113
|
-
j?l.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,f,i){var j=function(o){var m=new Date;m.setDate(m.getDate()+o);return m},l=function(o){try{return b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),o,b.datepicker._getFormatConfig(a))}catch(m){}var k=
|
114
|
-
k=k.getDate();for(var q=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=q.exec(o);r;){switch(r[2]||"d"){case "d":case "D":k+=parseInt(r[1],10);break;case "w":case "W":k+=parseInt(r[1],10)*7;break;case "m":case "M":p+=parseInt(r[1],10);k=Math.min(k,b.datepicker._getDaysInMonth(n,p));break;case "y":case "Y":n+=parseInt(r[1],10);k=Math.min(k,b.datepicker._getDaysInMonth(n,p))}r=q.exec(o)}return new Date(n,
|
115
|
-
f.toString()=="Invalid Date"?i:f){f.setHours(0);f.setMinutes(0);f.setSeconds(0);f.setMilliseconds(0)}return this._daylightSavingAdjust(f)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,f,i){var j=!f,l=a.selectedMonth,o=a.selectedYear;f=this._restrictMinMax(a,this._determineDate(a,f,new Date));a.selectedDay=
|
116
|
-
f.getFullYear();if((l!=a.selectedMonth||o!=a.selectedYear)&&!i)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(j?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var f=new Date;f=this._daylightSavingAdjust(new Date(f.getFullYear(),
|
117
|
-
"hideIfNoPrevNext"),o=this._get(a,"navigationAsDateFormat"),m=this._getNumberOfMonths(a),k=this._get(a,"showCurrentAtPos"),n=this._get(a,"stepMonths"),p=m[0]!=1||m[1]!=1,q=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),r=this._getMinMaxDate(a,"min"),s=this._getMinMaxDate(a,"max");k=a.drawMonth-k;var u=a.drawYear;if(k<0){k+=12;u--}if(s){var v=
|
118
|
-
for(v=r&&v<r?r:v;this._daylightSavingAdjust(new Date(u,k,1))>v;){k--;if(k<0){k=11;u--}}}a.drawMonth=k;a.drawYear=u;v=this._get(a,"prevText");v=!o?v:this.formatDate(v,this._daylightSavingAdjust(new Date(u,k-n,1)),this._getFormatConfig(a));v=this._canAdjustMonth(a,-1,u,k)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._adjustDate('#"+a.id+"', -"+n+", 'M');\" title=\""+v+'"><span class="ui-icon ui-icon-circle-triangle-'+
|
119
|
-
v+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+v+"</span></a>";var w=this._get(a,"nextText");w=!o?w:this.formatDate(w,this._daylightSavingAdjust(new Date(u,k+n,1)),this._getFormatConfig(a));l=this._canAdjustMonth(a,+1,u,k)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._adjustDate('#"+a.id+"', +"+n+", 'M');\" title=\""+w+'"><span class="ui-icon ui-icon-circle-triangle-'+
|
120
|
-
w+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+w+"</span></a>";n=this._get(a,"currentText");w=this._get(a,"gotoCurrent")&&a.currentDay?q:f;n=!o?n:this.formatDate(n,w,this._getFormatConfig(a));o=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+g+'.datepicker._hideDatepicker();">'+this._get(a,
|
121
|
-
w)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._gotoToday('#"+a.id+"');\">"+n+"</button>":"")+(i?"":o)+"</div>":"";o=parseInt(this._get(a,"firstDay"),10);o=isNaN(o)?0:o;n=this._get(a,"showWeek");w=this._get(a,"dayNames");this._get(a,"dayNamesShort");var x=this._get(a,"dayNamesMin"),D=
|
122
|
-
K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var N=this._getDefaultDate(a),L="",H=0;H<m[0];H++){for(var O="",I=0;I<m[1];I++){var P=this._daylightSavingAdjust(new Date(u,k,a.selectedDay)),A=" ui-corner-all",E="";if(p){E+='<div class="ui-datepicker-group';if(m[1]>1)switch(I){case 0:E+=" ui-datepicker-group-first";A=" ui-corner-"+(i?"right":"left");break;case m[1]-
|
123
|
-
A=""}E+='">'}E+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+A+'">'+(/all|left/.test(A)&&H==0?i?l:v:"")+(/all|right/.test(A)&&H==0?i?v:l:"")+this._generateMonthYearHeader(a,k,u,r,s,H>0||I>0,D,B)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var F=n?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(A=0;A<7;A++){var z=(A+
|
124
|
-
F+"</tr></thead><tbody>";F=this._getDaysInMonth(u,k);if(u==a.selectedYear&&k==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,F);A=(this._getFirstDayOfMonth(u,k)-o+7)%7;F=p?6:Math.ceil((A+F)/7);z=this._daylightSavingAdjust(new Date(u,k,1-A));for(var Q=0;Q<F;Q++){E+="<tr>";var R=!n?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(z)+"</td>";for(A=0;A<7;A++){var J=
|
125
|
-
((A+o+6)%7>=5?" ui-datepicker-week-end":"")+(G?" ui-datepicker-other-month":"")+(z.getTime()==P.getTime()&&k==a.selectedMonth&&a._keyEvent||N.getTime()==z.getTime()&&N.getTime()==P.getTime()?" "+this._dayOverClass:"")+(M?" "+this._unselectableClass+" ui-state-disabled":"")+(G&&!C?"":" "+J[1]+(z.getTime()==q.getTime()?" "+this._currentClass:"")+(z.getTime()==f.getTime()?" ui-datepicker-today":
|
126
|
-
a.id+"',"+z.getMonth()+","+z.getFullYear()+', this);return false;"')+">"+(G&&!C?" ":M?'<span class="ui-state-default">'+z.getDate()+"</span>":'<a class="ui-state-default'+(z.getTime()==f.getTime()?" ui-state-highlight":"")+(z.getTime()==q.getTime()?" ui-state-active":"")+(G?" ui-priority-secondary":"")+'" href="#">'+z.getDate()+"</a>")+"</td>";z.setDate(z.getDate()+1);z=this._daylightSavingAdjust(z)}E+=
|
127
|
-
""):"");O+=E}L+=O}L+=j+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return L},_generateMonthYearHeader:function(a,f,i,j,l,o,m,k){var n=this._get(a,"changeMonth"),p=this._get(a,"changeYear"),q=this._get(a,"showMonthAfterYear"),r='<div class="ui-datepicker-title">',
|
128
|
-
i;s+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+g+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+g+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var v=0;v<12;v++)if((!m||v>=j.getMonth())&&(!u||v<=l.getMonth()))s+='<option value="'+v+'"'+(v==f?' selected="selected"':"")+">"+k[v]+"</option>";s+="</select>"}q||(r+=s+(o||!(n&&
|
129
|
-
var w=(new Date).getFullYear();m=function(x){x=x.match(/c[+-].*/)?i+parseInt(x.substring(1),10):x.match(/[+-].*/)?w+parseInt(x,10):parseInt(x,10);return isNaN(x)?w:x};f=m(k[0]);k=Math.max(f,m(k[1]||""));f=j?Math.max(f,j.getFullYear()):f;k=l?Math.min(k,l.getFullYear()):k;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+g+".datepicker._selectMonthYear('#"+
|
130
|
-
f+'"'+(f==i?' selected="selected"':"")+">"+f+"</option>";a.yearshtml+="</select>";if(b.browser.mozilla)r+='<select class="ui-datepicker-year"><option value="'+i+'" selected="selected">'+i+"</option></select>";else{r+=a.yearshtml;a.yearshtml=null}}r+=this._get(a,"yearSuffix");if(q)r+=(o||!(n&&p)?" ":"")+s;r+="</div>";return r},_adjustInstDate:function(a,f,i){var j=
|
131
|
-
this._daylightSavingAdjust(new Date(j,l,f)));a.selectedDay=j.getDate();a.drawMonth=a.selectedMonth=j.getMonth();a.drawYear=a.selectedYear=j.getFullYear();if(i=="M"||i=="Y")this._notifyChange(a)},_restrictMinMax:function(a,f){var i=this._getMinMaxDate(a,"min"),j=this._getMinMaxDate(a,"max");i=i&&f<i?i:f;return i=j&&i>j?j:i},_notifyChange:function(a){var f=this._get(a,
|
132
|
-
"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,f){return this._determineDate(a,this._get(a,f+"Date"),null)},_getDaysInMonth:function(a,f){return 32-this._daylightSavingAdjust(new Date(a,f,32)).getDate()},_getFirstDayOfMonth:function(a,f){return(new Date(a,f,1)).getDay()},_canAdjustMonth:function(a,f,i,j){var l=this._getNumberOfMonths(a);
|
133
|
-
i.getMonth()));return this._isInRange(a,i)},_isInRange:function(a,f){var i=this._getMinMaxDate(a,"min"),j=this._getMinMaxDate(a,"max");return(!i||f.getTime()>=i.getTime())&&(!j||f.getTime()<=j.getTime())},_getFormatConfig:function(a){var f=this._get(a,"shortYearCutoff");f=typeof f!="string"?f:(new Date).getFullYear()%100+parseInt(f,10);return{shortYearCutoff:f,dayNamesShort:this._get(a,
|
134
|
-
"monthNames")}},_formatDate:function(a,f,i,j){if(!f){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}f=f?typeof f=="object"?f:this._daylightSavingAdjust(new Date(j,i,f)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),f,this._getFormatConfig(a))}});b.fn.datepicker=
|
135
|
-
b.datepicker.initialized=true}var f=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(f));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,
|
136
|
-
a)})};b.datepicker=new e;b.datepicker.initialized=false;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="
|
83
|
+
j.settings):this._get(j,f):null;var l=f||{};if(typeof f=="string"){l={};l[f]=i}if(j){this._curInst==j&&this._hideDatepicker();var o=this._getDateDatepicker(a,true),m=this._getMinMaxDate(j,"min"),k=this._getMinMaxDate(j,"max");h(j.settings,l);if(m!==null&&l.dateFormat!==d&&l.minDate===d)j.settings.minDate=this._formatDate(j,m);if(k!==null&&l.dateFormat!==d&&l.maxDate===d)j.settings.maxDate=this._formatDate(j,k);this._attachments(b(a),j);this._autoSize(j);this._setDateDatepicker(a,o);this._updateDatepicker(j)}},
|
84
|
+
_changeDatepicker:function(a,f,i){this._optionDatepicker(a,f,i)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,f){var i=this._getInst(a);if(i){this._setDate(i,f);this._updateDatepicker(i);this._updateAlternate(i)}},_getDateDatepicker:function(a,f){var i=this._getInst(a);i&&!i.inline&&this._setDateFromField(i,f);return i?this._getDate(i):null},_doKeyDown:function(a){var f=b.datepicker._getInst(a.target),i=true,j=f.dpDiv.is(".ui-datepicker-rtl");
|
85
|
+
f._keyEvent=true;if(b.datepicker._datepickerShowing)switch(a.keyCode){case 9:b.datepicker._hideDatepicker();i=false;break;case 13:i=b("td."+b.datepicker._dayOverClass+":not(."+b.datepicker._currentClass+")",f.dpDiv);i[0]?b.datepicker._selectDay(a.target,f.selectedMonth,f.selectedYear,i[0]):b.datepicker._hideDatepicker();return false;case 27:b.datepicker._hideDatepicker();break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(f,"stepBigMonths"):-b.datepicker._get(f,"stepMonths"),
|
86
|
+
"M");break;case 34:b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(f,"stepBigMonths"):+b.datepicker._get(f,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)b.datepicker._clearDate(a.target);i=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)b.datepicker._gotoToday(a.target);i=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,j?+1:-1,"D");i=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?
|
87
|
+
-b.datepicker._get(f,"stepBigMonths"):-b.datepicker._get(f,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,-7,"D");i=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,j?-1:+1,"D");i=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(f,"stepBigMonths"):+b.datepicker._get(f,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,
|
88
|
+
+7,"D");i=a.ctrlKey||a.metaKey;break;default:i=false}else if(a.keyCode==36&&a.ctrlKey)b.datepicker._showDatepicker(this);else i=false;if(i){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var f=b.datepicker._getInst(a.target);if(b.datepicker._get(f,"constrainInput")){f=b.datepicker._possibleChars(b.datepicker._get(f,"dateFormat"));var i=String.fromCharCode(a.charCode==d?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||i<" "||!f||f.indexOf(i)>-1}},_doKeyUp:function(a){a=b.datepicker._getInst(a.target);
|
89
|
+
if(a.input.val()!=a.lastVal)try{if(b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,b.datepicker._getFormatConfig(a))){b.datepicker._setDateFromField(a);b.datepicker._updateAlternate(a);b.datepicker._updateDatepicker(a)}}catch(f){b.datepicker.log(f)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=b("input",a.parentNode)[0];if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var f=b.datepicker._getInst(a);
|
90
|
+
b.datepicker._curInst&&b.datepicker._curInst!=f&&b.datepicker._curInst.dpDiv.stop(true,true);var i=b.datepicker._get(f,"beforeShow");h(f.settings,i?i.apply(a,[a,f]):{});f.lastVal=null;b.datepicker._lastInput=a;b.datepicker._setDateFromField(f);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(a);b.datepicker._pos[1]+=a.offsetHeight}var j=false;b(a).parents().each(function(){j|=b(this).css("position")=="fixed";return!j});if(j&&b.browser.opera){b.datepicker._pos[0]-=
|
91
|
+
document.documentElement.scrollLeft;b.datepicker._pos[1]-=document.documentElement.scrollTop}i={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=null;f.dpDiv.empty();f.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(f);i=b.datepicker._checkOffset(f,i,j);f.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":j?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"});if(!f.inline){i=b.datepicker._get(f,"showAnim");
|
92
|
+
var l=b.datepicker._get(f,"duration"),o=function(){b.datepicker._datepickerShowing=true;var m=f.dpDiv.find("iframe.ui-datepicker-cover");if(m.length){var k=b.datepicker._getBorders(f.dpDiv);m.css({left:-k[0],top:-k[1],width:f.dpDiv.outerWidth(),height:f.dpDiv.outerHeight()})}};f.dpDiv.zIndex(b(a).zIndex()+1);b.effects&&b.effects[i]?f.dpDiv.show(i,b.datepicker._get(f,"showOptions"),l,o):f.dpDiv[i||"show"](i?l:null,o);if(!i||!l)o();f.input.is(":visible")&&!f.input.is(":disabled")&&f.input.focus();b.datepicker._curInst=
|
93
|
+
f}}},_updateDatepicker:function(a){var f=this,i=b.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a));var j=a.dpDiv.find("iframe.ui-datepicker-cover");j.length&&j.css({left:-i[0],top:-i[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");
|
94
|
+
this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!f._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}}).end().find("."+
|
95
|
+
this._dayOverClass+" a").trigger("mouseover").end();i=this._getNumberOfMonths(a);j=i[1];j>1?a.dpDiv.addClass("ui-datepicker-multi-"+j).css("width",17*j+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(i[0]!=1||i[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==b.datepicker._curInst&&b.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&
|
96
|
+
a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var l=a.yearshtml;setTimeout(function(){l===a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);l=a.yearshtml=null},0)}},_getBorders:function(a){var f=function(i){return{thin:1,medium:2,thick:3}[i]||i};return[parseFloat(f(a.css("border-left-width"))),parseFloat(f(a.css("border-top-width")))]},_checkOffset:function(a,f,i){var j=a.dpDiv.outerWidth(),l=a.dpDiv.outerHeight(),o=a.input?a.input.outerWidth():
|
97
|
+
0,m=a.input?a.input.outerHeight():0,k=document.documentElement.clientWidth+b(document).scrollLeft(),n=document.documentElement.clientHeight+b(document).scrollTop();f.left-=this._get(a,"isRTL")?j-o:0;f.left-=i&&f.left==a.input.offset().left?b(document).scrollLeft():0;f.top-=i&&f.top==a.input.offset().top+m?b(document).scrollTop():0;f.left-=Math.min(f.left,f.left+j>k&&k>j?Math.abs(f.left+j-k):0);f.top-=Math.min(f.top,f.top+l>n&&n>l?Math.abs(l+m):0);return f},_findPos:function(a){for(var f=this._get(this._getInst(a),
|
98
|
+
"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||b.expr.filters.hidden(a));)a=a[f?"previousSibling":"nextSibling"];a=b(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var f=this._curInst;if(!(!f||a&&f!=b.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(f,"showAnim");var i=this._get(f,"duration"),j=function(){b.datepicker._tidyDialog(f);this._curInst=null};b.effects&&b.effects[a]?f.dpDiv.hide(a,b.datepicker._get(f,"showOptions"),i,j):f.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?
|
99
|
+
"fadeOut":"hide"](a?i:null,j);a||j();if(a=this._get(f,"onClose"))a.apply(f.input?f.input[0]:null,[f.input?f.input.val():"",f]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(b.datepicker._curInst){a=
|
100
|
+
b(a.target);a[0].id!=b.datepicker._mainDivId&&a.parents("#"+b.datepicker._mainDivId).length==0&&!a.hasClass(b.datepicker.markerClassName)&&!a.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&!(b.datepicker._inDialog&&b.blockUI)&&b.datepicker._hideDatepicker()}},_adjustDate:function(a,f,i){a=b(a);var j=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(j,f+(i=="M"?this._get(j,"showCurrentAtPos"):0),i);this._updateDatepicker(j)}},_gotoToday:function(a){a=
|
101
|
+
b(a);var f=this._getInst(a[0]);if(this._get(f,"gotoCurrent")&&f.currentDay){f.selectedDay=f.currentDay;f.drawMonth=f.selectedMonth=f.currentMonth;f.drawYear=f.selectedYear=f.currentYear}else{var i=new Date;f.selectedDay=i.getDate();f.drawMonth=f.selectedMonth=i.getMonth();f.drawYear=f.selectedYear=i.getFullYear()}this._notifyChange(f);this._adjustDate(a)},_selectMonthYear:function(a,f,i){a=b(a);var j=this._getInst(a[0]);j._selectingMonthYear=false;j["selected"+(i=="M"?"Month":"Year")]=j["draw"+(i==
|
102
|
+
"M"?"Month":"Year")]=parseInt(f.options[f.selectedIndex].value,10);this._notifyChange(j);this._adjustDate(a)},_clickMonthYear:function(a){var f=this._getInst(b(a)[0]);f.input&&f._selectingMonthYear&&setTimeout(function(){f.input.focus()},0);f._selectingMonthYear=!f._selectingMonthYear},_selectDay:function(a,f,i,j){var l=b(a);if(!(b(j).hasClass(this._unselectableClass)||this._isDisabledDatepicker(l[0]))){l=this._getInst(l[0]);l.selectedDay=l.currentDay=b("a",j).html();l.selectedMonth=l.currentMonth=
|
103
|
+
f;l.selectedYear=l.currentYear=i;this._selectDate(a,this._formatDate(l,l.currentDay,l.currentMonth,l.currentYear))}},_clearDate:function(a){a=b(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,f){var i=this._getInst(b(a)[0]);f=f!=null?f:this._formatDate(i);i.input&&i.input.val(f);this._updateAlternate(i);var j=this._get(i,"onSelect");if(j)j.apply(i.input?i.input[0]:null,[f,i]);else i.input&&i.input.trigger("change");if(i.inline)this._updateDatepicker(i);else{this._hideDatepicker();
|
104
|
+
this._lastInput=i.input[0];typeof i.input[0]!="object"&&i.input.focus();this._lastInput=null}},_updateAlternate:function(a){var f=this._get(a,"altField");if(f){var i=this._get(a,"altFormat")||this._get(a,"dateFormat"),j=this._getDate(a),l=this.formatDate(i,j,this._getFormatConfig(a));b(f).each(function(){b(this).val(l)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var f=a.getTime();a.setMonth(0);
|
105
|
+
a.setDate(1);return Math.floor(Math.round((f-a)/864E5)/7)+1},parseDate:function(a,f,i){if(a==null||f==null)throw"Invalid arguments";f=typeof f=="object"?f.toString():f+"";if(f=="")return null;var j=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff;j=typeof j!="string"?j:(new Date).getFullYear()%100+parseInt(j,10);for(var l=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,m=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,k=(i?
|
106
|
+
i.monthNames:null)||this._defaults.monthNames,n=i=-1,p=-1,q=-1,r=false,s=function(y){(y=D+1<a.length&&a.charAt(D+1)==y)&&D++;return y},u=function(y){var C=s(y);y=RegExp("^\\d{1,"+(y=="@"?14:y=="!"?20:y=="y"&&C?4:y=="o"?3:2)+"}");y=f.substring(x).match(y);if(!y)throw"Missing number at position "+x;x+=y[0].length;return parseInt(y[0],10)},v=function(y,C,K){y=s(y)?K:C;for(C=0;C<y.length;C++)if(f.substr(x,y[C].length).toLowerCase()==y[C].toLowerCase()){x+=y[C].length;return C+1}throw"Unknown name at position "+
|
107
|
+
x;},w=function(){if(f.charAt(x)!=a.charAt(D))throw"Unexpected literal at position "+x;x++},x=0,D=0;D<a.length;D++)if(r)if(a.charAt(D)=="'"&&!s("'"))r=false;else w();else switch(a.charAt(D)){case "d":p=u("d");break;case "D":v("D",l,o);break;case "o":q=u("o");break;case "m":n=u("m");break;case "M":n=v("M",m,k);break;case "y":i=u("y");break;case "@":var B=new Date(u("@"));i=B.getFullYear();n=B.getMonth()+1;p=B.getDate();break;case "!":B=new Date((u("!")-this._ticksTo1970)/1E4);i=B.getFullYear();n=B.getMonth()+
|
108
|
+
1;p=B.getDate();break;case "'":if(s("'"))w();else r=true;break;default:w()}if(i==-1)i=(new Date).getFullYear();else if(i<100)i+=(new Date).getFullYear()-(new Date).getFullYear()%100+(i<=j?0:-100);if(q>-1){n=1;p=q;do{j=this._getDaysInMonth(i,n-1);if(p<=j)break;n++;p-=j}while(1)}B=this._daylightSavingAdjust(new Date(i,n-1,p));if(B.getFullYear()!=i||B.getMonth()+1!=n||B.getDate()!=p)throw"Invalid date";return B},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",
|
109
|
+
RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,f,i){if(!f)return"";var j=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,l=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort;i=(i?i.monthNames:null)||this._defaults.monthNames;var m=function(s){(s=r+1<a.length&&
|
110
|
+
a.charAt(r+1)==s)&&r++;return s},k=function(s,u,v){u=""+u;if(m(s))for(;u.length<v;)u="0"+u;return u},n=function(s,u,v,w){return m(s)?w[u]:v[u]},p="",q=false;if(f)for(var r=0;r<a.length;r++)if(q)if(a.charAt(r)=="'"&&!m("'"))q=false;else p+=a.charAt(r);else switch(a.charAt(r)){case "d":p+=k("d",f.getDate(),2);break;case "D":p+=n("D",f.getDay(),j,l);break;case "o":p+=k("o",(f.getTime()-(new Date(f.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":p+=k("m",f.getMonth()+1,2);break;case "M":p+=n("M",
|
111
|
+
f.getMonth(),o,i);break;case "y":p+=m("y")?f.getFullYear():(f.getYear()%100<10?"0":"")+f.getYear()%100;break;case "@":p+=f.getTime();break;case "!":p+=f.getTime()*1E4+this._ticksTo1970;break;case "'":if(m("'"))p+="'";else q=true;break;default:p+=a.charAt(r)}return p},_possibleChars:function(a){for(var f="",i=false,j=function(o){(o=l+1<a.length&&a.charAt(l+1)==o)&&l++;return o},l=0;l<a.length;l++)if(i)if(a.charAt(l)=="'"&&!j("'"))i=false;else f+=a.charAt(l);else switch(a.charAt(l)){case "d":case "m":case "y":case "@":f+=
|
112
|
+
"0123456789";break;case "D":case "M":return null;case "'":if(j("'"))f+="'";else i=true;break;default:f+=a.charAt(l)}return f},_get:function(a,f){return a.settings[f]!==d?a.settings[f]:this._defaults[f]},_setDateFromField:function(a,f){if(a.input.val()!=a.lastVal){var i=this._get(a,"dateFormat"),j=a.lastVal=a.input?a.input.val():null,l,o;l=o=this._getDefaultDate(a);var m=this._getFormatConfig(a);try{l=this.parseDate(i,j,m)||o}catch(k){this.log(k);j=f?"":j}a.selectedDay=l.getDate();a.drawMonth=a.selectedMonth=
|
113
|
+
l.getMonth();a.drawYear=a.selectedYear=l.getFullYear();a.currentDay=j?l.getDate():0;a.currentMonth=j?l.getMonth():0;a.currentYear=j?l.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,f,i){var j=function(o){var m=new Date;m.setDate(m.getDate()+o);return m},l=function(o){try{return b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),o,b.datepicker._getFormatConfig(a))}catch(m){}var k=
|
114
|
+
(o.toLowerCase().match(/^c/)?b.datepicker._getDate(a):null)||new Date,n=k.getFullYear(),p=k.getMonth();k=k.getDate();for(var q=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=q.exec(o);r;){switch(r[2]||"d"){case "d":case "D":k+=parseInt(r[1],10);break;case "w":case "W":k+=parseInt(r[1],10)*7;break;case "m":case "M":p+=parseInt(r[1],10);k=Math.min(k,b.datepicker._getDaysInMonth(n,p));break;case "y":case "Y":n+=parseInt(r[1],10);k=Math.min(k,b.datepicker._getDaysInMonth(n,p))}r=q.exec(o)}return new Date(n,
|
115
|
+
p,k)};if(f=(f=f==null||f===""?i:typeof f=="string"?l(f):typeof f=="number"?isNaN(f)?i:j(f):new Date(f.getTime()))&&f.toString()=="Invalid Date"?i:f){f.setHours(0);f.setMinutes(0);f.setSeconds(0);f.setMilliseconds(0)}return this._daylightSavingAdjust(f)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,f,i){var j=!f,l=a.selectedMonth,o=a.selectedYear;f=this._restrictMinMax(a,this._determineDate(a,f,new Date));a.selectedDay=
|
116
|
+
a.currentDay=f.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=f.getMonth();a.drawYear=a.selectedYear=a.currentYear=f.getFullYear();if((l!=a.selectedMonth||o!=a.selectedYear)&&!i)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(j?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var f=new Date;f=this._daylightSavingAdjust(new Date(f.getFullYear(),
|
117
|
+
f.getMonth(),f.getDate()));var i=this._get(a,"isRTL"),j=this._get(a,"showButtonPanel"),l=this._get(a,"hideIfNoPrevNext"),o=this._get(a,"navigationAsDateFormat"),m=this._getNumberOfMonths(a),k=this._get(a,"showCurrentAtPos"),n=this._get(a,"stepMonths"),p=m[0]!=1||m[1]!=1,q=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),r=this._getMinMaxDate(a,"min"),s=this._getMinMaxDate(a,"max");k=a.drawMonth-k;var u=a.drawYear;if(k<0){k+=12;u--}if(s){var v=
|
118
|
+
this._daylightSavingAdjust(new Date(s.getFullYear(),s.getMonth()-m[0]*m[1]+1,s.getDate()));for(v=r&&v<r?r:v;this._daylightSavingAdjust(new Date(u,k,1))>v;){k--;if(k<0){k=11;u--}}}a.drawMonth=k;a.drawYear=u;v=this._get(a,"prevText");v=!o?v:this.formatDate(v,this._daylightSavingAdjust(new Date(u,k-n,1)),this._getFormatConfig(a));v=this._canAdjustMonth(a,-1,u,k)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._adjustDate('#"+a.id+"', -"+n+", 'M');\" title=\""+v+'"><span class="ui-icon ui-icon-circle-triangle-'+
|
119
|
+
(i?"e":"w")+'">'+v+"</span></a>":l?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+v+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+v+"</span></a>";var w=this._get(a,"nextText");w=!o?w:this.formatDate(w,this._daylightSavingAdjust(new Date(u,k+n,1)),this._getFormatConfig(a));l=this._canAdjustMonth(a,+1,u,k)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._adjustDate('#"+a.id+"', +"+n+", 'M');\" title=\""+w+'"><span class="ui-icon ui-icon-circle-triangle-'+
|
120
|
+
(i?"w":"e")+'">'+w+"</span></a>":l?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+w+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+w+"</span></a>";n=this._get(a,"currentText");w=this._get(a,"gotoCurrent")&&a.currentDay?q:f;n=!o?n:this.formatDate(n,w,this._getFormatConfig(a));o=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+g+'.datepicker._hideDatepicker();">'+this._get(a,
|
121
|
+
"closeText")+"</button>":"";j=j?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?o:"")+(this._isInRange(a,w)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._gotoToday('#"+a.id+"');\">"+n+"</button>":"")+(i?"":o)+"</div>":"";o=parseInt(this._get(a,"firstDay"),10);o=isNaN(o)?0:o;n=this._get(a,"showWeek");w=this._get(a,"dayNames");this._get(a,"dayNamesShort");var x=this._get(a,"dayNamesMin"),D=
|
122
|
+
this._get(a,"monthNames"),B=this._get(a,"monthNamesShort"),y=this._get(a,"beforeShowDay"),C=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var N=this._getDefaultDate(a),L="",H=0;H<m[0];H++){for(var O="",I=0;I<m[1];I++){var P=this._daylightSavingAdjust(new Date(u,k,a.selectedDay)),A=" ui-corner-all",E="";if(p){E+='<div class="ui-datepicker-group';if(m[1]>1)switch(I){case 0:E+=" ui-datepicker-group-first";A=" ui-corner-"+(i?"right":"left");break;case m[1]-
|
123
|
+
1:E+=" ui-datepicker-group-last";A=" ui-corner-"+(i?"left":"right");break;default:E+=" ui-datepicker-group-middle";A=""}E+='">'}E+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+A+'">'+(/all|left/.test(A)&&H==0?i?l:v:"")+(/all|right/.test(A)&&H==0?i?v:l:"")+this._generateMonthYearHeader(a,k,u,r,s,H>0||I>0,D,B)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var F=n?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(A=0;A<7;A++){var z=(A+
|
124
|
+
o)%7;F+="<th"+((A+o+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+w[z]+'">'+x[z]+"</span></th>"}E+=F+"</tr></thead><tbody>";F=this._getDaysInMonth(u,k);if(u==a.selectedYear&&k==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,F);A=(this._getFirstDayOfMonth(u,k)-o+7)%7;F=p?6:Math.ceil((A+F)/7);z=this._daylightSavingAdjust(new Date(u,k,1-A));for(var Q=0;Q<F;Q++){E+="<tr>";var R=!n?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(z)+"</td>";for(A=0;A<7;A++){var J=
|
125
|
+
y?y.apply(a.input?a.input[0]:null,[z]):[true,""],G=z.getMonth()!=k,M=G&&!K||!J[0]||r&&z<r||s&&z>s;R+='<td class="'+((A+o+6)%7>=5?" ui-datepicker-week-end":"")+(G?" ui-datepicker-other-month":"")+(z.getTime()==P.getTime()&&k==a.selectedMonth&&a._keyEvent||N.getTime()==z.getTime()&&N.getTime()==P.getTime()?" "+this._dayOverClass:"")+(M?" "+this._unselectableClass+" ui-state-disabled":"")+(G&&!C?"":" "+J[1]+(z.getTime()==q.getTime()?" "+this._currentClass:"")+(z.getTime()==f.getTime()?" ui-datepicker-today":
|
126
|
+
""))+'"'+((!G||C)&&J[2]?' title="'+J[2]+'"':"")+(M?"":' onclick="DP_jQuery_'+g+".datepicker._selectDay('#"+a.id+"',"+z.getMonth()+","+z.getFullYear()+', this);return false;"')+">"+(G&&!C?" ":M?'<span class="ui-state-default">'+z.getDate()+"</span>":'<a class="ui-state-default'+(z.getTime()==f.getTime()?" ui-state-highlight":"")+(z.getTime()==q.getTime()?" ui-state-active":"")+(G?" ui-priority-secondary":"")+'" href="#">'+z.getDate()+"</a>")+"</td>";z.setDate(z.getDate()+1);z=this._daylightSavingAdjust(z)}E+=
|
127
|
+
R+"</tr>"}k++;if(k>11){k=0;u++}E+="</tbody></table>"+(p?"</div>"+(m[0]>0&&I==m[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");O+=E}L+=O}L+=j+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return L},_generateMonthYearHeader:function(a,f,i,j,l,o,m,k){var n=this._get(a,"changeMonth"),p=this._get(a,"changeYear"),q=this._get(a,"showMonthAfterYear"),r='<div class="ui-datepicker-title">',
|
128
|
+
s="";if(o||!n)s+='<span class="ui-datepicker-month">'+m[f]+"</span>";else{m=j&&j.getFullYear()==i;var u=l&&l.getFullYear()==i;s+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+g+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+g+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var v=0;v<12;v++)if((!m||v>=j.getMonth())&&(!u||v<=l.getMonth()))s+='<option value="'+v+'"'+(v==f?' selected="selected"':"")+">"+k[v]+"</option>";s+="</select>"}q||(r+=s+(o||!(n&&
|
129
|
+
p)?" ":""));a.yearshtml="";if(o||!p)r+='<span class="ui-datepicker-year">'+i+"</span>";else{k=this._get(a,"yearRange").split(":");var w=(new Date).getFullYear();m=function(x){x=x.match(/c[+-].*/)?i+parseInt(x.substring(1),10):x.match(/[+-].*/)?w+parseInt(x,10):parseInt(x,10);return isNaN(x)?w:x};f=m(k[0]);k=Math.max(f,m(k[1]||""));f=j?Math.max(f,j.getFullYear()):f;k=l?Math.min(k,l.getFullYear()):k;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+g+".datepicker._selectMonthYear('#"+
|
130
|
+
a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+g+".datepicker._clickMonthYear('#"+a.id+"');\">";f<=k;f++)a.yearshtml+='<option value="'+f+'"'+(f==i?' selected="selected"':"")+">"+f+"</option>";a.yearshtml+="</select>";if(b.browser.mozilla)r+='<select class="ui-datepicker-year"><option value="'+i+'" selected="selected">'+i+"</option></select>";else{r+=a.yearshtml;a.yearshtml=null}}r+=this._get(a,"yearSuffix");if(q)r+=(o||!(n&&p)?" ":"")+s;r+="</div>";return r},_adjustInstDate:function(a,f,i){var j=
|
131
|
+
a.drawYear+(i=="Y"?f:0),l=a.drawMonth+(i=="M"?f:0);f=Math.min(a.selectedDay,this._getDaysInMonth(j,l))+(i=="D"?f:0);j=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(j,l,f)));a.selectedDay=j.getDate();a.drawMonth=a.selectedMonth=j.getMonth();a.drawYear=a.selectedYear=j.getFullYear();if(i=="M"||i=="Y")this._notifyChange(a)},_restrictMinMax:function(a,f){var i=this._getMinMaxDate(a,"min"),j=this._getMinMaxDate(a,"max");i=i&&f<i?i:f;return i=j&&i>j?j:i},_notifyChange:function(a){var f=this._get(a,
|
132
|
+
"onChangeMonthYear");if(f)f.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,f){return this._determineDate(a,this._get(a,f+"Date"),null)},_getDaysInMonth:function(a,f){return 32-this._daylightSavingAdjust(new Date(a,f,32)).getDate()},_getFirstDayOfMonth:function(a,f){return(new Date(a,f,1)).getDay()},_canAdjustMonth:function(a,f,i,j){var l=this._getNumberOfMonths(a);
|
133
|
+
i=this._daylightSavingAdjust(new Date(i,j+(f<0?f:l[0]*l[1]),1));f<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth()));return this._isInRange(a,i)},_isInRange:function(a,f){var i=this._getMinMaxDate(a,"min"),j=this._getMinMaxDate(a,"max");return(!i||f.getTime()>=i.getTime())&&(!j||f.getTime()<=j.getTime())},_getFormatConfig:function(a){var f=this._get(a,"shortYearCutoff");f=typeof f!="string"?f:(new Date).getFullYear()%100+parseInt(f,10);return{shortYearCutoff:f,dayNamesShort:this._get(a,
|
134
|
+
"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,f,i,j){if(!f){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}f=f?typeof f=="object"?f:this._daylightSavingAdjust(new Date(j,i,f)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),f,this._getFormatConfig(a))}});b.fn.datepicker=
|
135
|
+
function(a){if(!this.length)return this;if(!b.datepicker.initialized){b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv);b.datepicker.initialized=true}var f=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(f));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,
|
136
|
+
[this[0]].concat(f));return this.each(function(){typeof a=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(f)):b.datepicker._attachDatepicker(this,a)})};b.datepicker=new e;b.datepicker.initialized=false;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="1.8.11";window["DP_jQuery_"+g]=b})(jQuery);
|
137
137
|
(function(b,d){var e={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},h={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};b.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(g){var a=b(this).css(g).offset().top;a<0&&
|
138
138
|
b(this).css("top",g.top-a)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var g=this,a=g.options,f=a.title||" ",i=b.ui.dialog.getTitleId(g.element),j=(g.uiDialog=b("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a.dialogClass).css({zIndex:a.zIndex}).attr("tabIndex",
|
139
139
|
-1).css("outline",0).keydown(function(m){if(a.closeOnEscape&&m.keyCode&&m.keyCode===b.ui.keyCode.ESCAPE){g.close(m);m.preventDefault()}}).attr({role:"dialog","aria-labelledby":i}).mousedown(function(m){g.moveToTop(false,m)});g.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(j);var l=(g.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(j),o=b('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role",
|
@@ -151,7 +151,7 @@ l,a(o))},stop:function(l,o){b(this).removeClass("ui-dialog-resizing");i.height=b
|
|
151
151
|
if(j in e)i=true;if(j in h)f[j]=l});i&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",f)},_setOption:function(g,a){var f=this.uiDialog;switch(g){case "beforeclose":g="beforeClose";break;case "buttons":this._createButtons(a);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+a);break;case "dialogClass":f.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a);break;case "disabled":a?f.addClass("ui-dialog-disabled"):
|
152
152
|
f.removeClass("ui-dialog-disabled");break;case "draggable":var i=f.is(":data(draggable)");i&&!a&&f.draggable("destroy");!i&&a&&this._makeDraggable();break;case "position":this._position(a);break;case "resizable":(i=f.is(":data(resizable)"))&&!a&&f.resizable("destroy");i&&typeof a==="string"&&f.resizable("option","handles",a);!i&&a!==false&&this._makeResizable(a);break;case "title":b(".ui-dialog-title",this.uiDialogTitlebar).html(""+(a||" "))}b.Widget.prototype._setOption.apply(this,arguments)},
|
153
153
|
_size:function(){var g=this.options,a,f,i=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(g.minWidth>g.width)g.width=g.minWidth;a=this.uiDialog.css({height:"auto",width:g.width}).height();f=Math.max(0,g.minHeight-a);if(g.height==="auto")if(b.support.minHeight)this.element.css({minHeight:f,height:"auto"});else{this.uiDialog.show();g=this.element.css("height","auto").height();i||this.uiDialog.hide();this.element.height(Math.max(g,f))}else this.element.height(Math.max(g.height-
|
154
|
-
a,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});b.extend(b.ui.dialog,{version:"
|
154
|
+
a,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});b.extend(b.ui.dialog,{version:"1.8.11",uuid:0,maxZ:0,getTitleId:function(g){g=g.attr("id");if(!g){this.uuid+=1;g=this.uuid}return"ui-dialog-title-"+g},overlay:function(g){this.$el=b.ui.dialog.overlay.create(g)}});b.extend(b.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(g){return g+".dialog-overlay"}).join(" "),
|
155
155
|
create:function(g){if(this.instances.length===0){setTimeout(function(){b.ui.dialog.overlay.instances.length&&b(document).bind(b.ui.dialog.overlay.events,function(f){if(b(f.target).zIndex()<b.ui.dialog.overlay.maxZ)return false})},1);b(document).bind("keydown.dialog-overlay",function(f){if(g.options.closeOnEscape&&f.keyCode&&f.keyCode===b.ui.keyCode.ESCAPE){g.close(f);f.preventDefault()}});b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)}var a=(this.oldInstances.pop()||b("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),
|
156
156
|
height:this.height()});b.fn.bgiframe&&a.bgiframe();this.instances.push(a);return a},destroy:function(g){var a=b.inArray(g,this.instances);a!=-1&&this.oldInstances.push(this.instances.splice(a,1)[0]);this.instances.length===0&&b([document,window]).unbind(".dialog-overlay");g.remove();var f=0;b.each(this.instances,function(){f=Math.max(f,this.css("z-index"))});this.maxZ=f},height:function(){var g,a;if(b.browser.msie&&b.browser.version<7){g=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
|
157
157
|
a=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return g<a?b(window).height()+"px":g+"px"}else return b(document).height()+"px"},width:function(){var g,a;if(b.browser.msie&&b.browser.version<7){g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);a=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return g<a?b(window).width()+"px":g+"px"}else return b(document).width()+"px"},resize:function(){var g=b([]);b.each(b.ui.dialog.overlay.instances,
|
@@ -166,43 +166,43 @@ this.options.revert.call(this.element,e)){var h=this;b(this.helper).animate(this
|
|
166
166
|
d.target)e=true});return e},_createHelper:function(d){var e=this.options;d=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[d])):e.helper=="clone"?this.element.clone():this.element;d.parents("body").length||d.appendTo(e.appendTo=="parent"?this.element[0].parentNode:e.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(d){if(typeof d=="string")d=d.split(" ");if(b.isArray(d))d={left:+d[0],top:+d[1]||
|
167
167
|
0};if("left"in d)this.offset.click.left=d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],
|
168
168
|
this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var d=this.element.position();return{top:d.top-
|
169
|
-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0
|
170
|
-
"parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[(d.containment=="document"?0:b(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(d.containment=="document"?0:b(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(d.containment=="document"?0:b(window).scrollLeft())+b(d.containment=="document"?
|
171
|
-
0:b(window).scrollTop())+(b(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)&&d.containment.constructor!=Array){var e=b(d.containment)[0];if(e){d=b(d.containment).offset();var h=b(e).css("overflow")!="hidden";this.containment=[d.left+(parseInt(b(e).css("borderLeftWidth"),
|
172
|
-
10)||0)+(parseInt(b(e).css("
|
173
|
-
Array)this.containment=d.containment},_convertPositionTo:function(d,e){if(!e)e=this.position;var h=d=="absolute"?1:-1,g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(g[0].tagName);return{top:e.top+this.offset.relative.top*h+this.offset.parent.top*h-(b.browser.safari&&
|
174
|
-
a?0:g.scrollTop())*h),left:e.left+this.offset.relative.left*h+this.offset.parent.left*h-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:g.scrollLeft())*h)}},_generatePosition:function(d){var e=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],
|
175
|
-
if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])a=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])f=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])a=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])f=
|
176
|
-
e.grid[1])*e.grid[1];f=this.containment?!(f-this.offset.click.top<this.containment[1]||f-this.offset.click.top>this.containment[3])?f:!(f-this.offset.click.top<this.containment[1])?f-e.grid[1]:f+e.grid[1]:f;a=this.originalPageX+Math.round((a-this.originalPageX)/e.grid[0])*e.grid[0];a=this.containment?!(a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2])?
|
177
|
-
this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
|
178
|
-
this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(d,e,h){h=h||this._uiHash();b.ui.plugin.call(this,d,[e,h]);if(d=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.Widget.prototype._trigger.call(this,d,e,h)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,
|
179
|
-
b.ui.plugin.add("draggable","connectToSortable",{start:function(d,e){var h=b(this).data("draggable"),g=h.options,a=b.extend({},e,{item:h.element});h.sortables=[];b(g.connectToSortable).each(function(){var f=b.data(this,"sortable");if(f&&!f.options.disabled){h.sortables.push({instance:f,shouldRevert:f.options.revert});f.
|
180
|
-
0;h.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(d);this.instance.options.helper=this.instance.options._helper;h.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",d,g)}})},drag:function(d,e){var h=
|
181
|
-
h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(g).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return e.helper[0]};
|
182
|
-
true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger("toSortable",d);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}this.instance.currentItem&&
|
183
|
-
0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();h._trigger("fromSortable",d);h.dropped=false}})}});b.ui.plugin.add("draggable","cursor",
|
184
|
-
d.css("cursor");d.css("cursor",e.cursor)},stop:function(){var d=b(this).data("draggable").options;d._cursor&&b("body").css("cursor",d._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var d=b(this).data("draggable").options;b(d.iframeFix===true?"iframe":d.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+
|
185
|
-
stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","opacity",{start:function(d,e){var h=b(e.helper),g=b(this).data("draggable").options;if(h.css("opacity"))g._opacity=h.css("opacity");h.css("opacity",g.opacity)},stop:function(d,e){var h=b(this).data("draggable").options;h._opacity&&b(e.helper).css("opacity",
|
186
|
-
document&&d.scrollParent[0].tagName!="HTML")d.overflowOffset=d.scrollParent.offset()},drag:function(d){var e=b(this).data("draggable"),h=e.options,g=false;if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML"){if(!h.axis||h.axis!="x")if(e.overflowOffset.top+e.scrollParent[0].offsetHeight-d.pageY<h.scrollSensitivity)e.scrollParent[0].scrollTop=g=e.scrollParent[0].scrollTop+
|
187
|
-
h.scrollSpeed;if(!h.axis||h.axis!="y")if(e.overflowOffset.left+e.scrollParent[0].offsetWidth-d.pageX<h.scrollSensitivity)e.scrollParent[0].scrollLeft=g=e.scrollParent[0].scrollLeft+h.scrollSpeed;else if(d.pageX-e.overflowOffset.left<h.scrollSensitivity)e.scrollParent[0].scrollLeft=g=e.scrollParent[0].scrollLeft-h.scrollSpeed}else{if(!h.axis||h.axis!="x")if(d.pageY-b(document).scrollTop()<
|
188
|
-
(d.pageY-b(document).scrollTop())<h.scrollSensitivity)g=b(document).scrollTop(b(document).scrollTop()+h.scrollSpeed);if(!h.axis||h.axis!="y")if(d.pageX-b(document).scrollLeft()<h.scrollSensitivity)g=b(document).scrollLeft(b(document).scrollLeft()-h.scrollSpeed);else if(b(window).width()-(d.pageX-b(document).scrollLeft())<h.scrollSensitivity)g=b(document).scrollLeft(b(document).scrollLeft()+
|
189
|
-
"snap",{start:function(){var d=b(this).data("draggable"),e=d.options;d.snapElements=[];b(e.snap.constructor!=String?e.snap.items||":data(draggable)":e.snap).each(function(){var h=b(this),g=h.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:h.outerWidth(),height:h.outerHeight(),top:g.top,left:g.left})})},drag:function(d,e){for(var h=b(this).data("draggable"),
|
190
|
-
h.snapElements.length-1;o>=0;o--){var m=h.snapElements[o].left,k=m+h.snapElements[o].width,n=h.snapElements[o].top,p=n+h.snapElements[o].height;if(m-a<f&&f<k+a&&n-a<j&&j<p+a||m-a<f&&f<k+a&&n-a<l&&l<p+a||m-a<i&&i<k+a&&n-a<j&&j<p+a||m-a<i&&i<k+a&&n-a<l&&l<p+a){if(g.snapMode!="inner"){var q=Math.abs(n-l)<=a,r=Math.abs(p-j)<=a,s=Math.abs(m-i)<=a,u=Math.abs(k-f)<=a;if(q)e.position.top=
|
191
|
-
{top:p,left:0}).top-h.margins.top;if(s)e.position.left=h._convertPositionTo("relative",{top:0,left:m-h.helperProportions.width}).left-h.margins.left;if(u)e.position.left=h._convertPositionTo("relative",{top:0,left:k}).left-h.margins.left}var v=q||r||s||u;if(g.snapMode!="outer"){q=Math.abs(n-j)<=a;r=Math.abs(p-l)<=a;s=Math.abs(m-f)<=a;u=Math.abs(k-i)<=a;if(q)e.position.top=
|
192
|
-
left:0}).top-h.margins.top;if(s)e.position.left=h._convertPositionTo("relative",{top:0,left:m}).left-h.margins.left;if(u)e.position.left=h._convertPositionTo("relative",{top:0,left:k-h.helperProportions.width}).left-h.margins.left}if(!h.snapElements[o].snapping&&(q||r||s||u||v))h.options.snap.snap&&h.options.snap.snap.call(h.element,d,b.extend(h._uiHash(),
|
193
|
-
d,b.extend(h._uiHash(),{snapItem:h.snapElements[o].item}));h.snapElements[o].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var d=b(this).data("draggable").options;d=b.makeArray(b(d.stack)).sort(function(h,g){return(parseInt(b(h).css("zIndex"),10)||0)-(parseInt(b(g).css("zIndex"),10)||0)});if(d.length){var e=
|
194
|
-
e){var h=b(e.helper),g=b(this).data("draggable").options;if(h.css("zIndex"))g._zIndex=h.css("zIndex");h.css("zIndex",g.zIndex)},stop:function(d,e){var h=b(this).data("draggable").options;h._zIndex&&b(e.helper).css("zIndex",h._zIndex)}})})(jQuery);
|
169
|
+
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),
|
170
|
+
height:this.helper.outerHeight()}},_setContainment:function(){var d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[(d.containment=="document"?0:b(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(d.containment=="document"?0:b(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(d.containment=="document"?0:b(window).scrollLeft())+b(d.containment=="document"?
|
171
|
+
document:window).width()-this.helperProportions.width-this.margins.left,(d.containment=="document"?0:b(window).scrollTop())+(b(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)&&d.containment.constructor!=Array){var e=b(d.containment)[0];if(e){d=b(d.containment).offset();var h=b(e).css("overflow")!="hidden";this.containment=[d.left+(parseInt(b(e).css("borderLeftWidth"),
|
172
|
+
10)||0)+(parseInt(b(e).css("paddingLeft"),10)||0),d.top+(parseInt(b(e).css("borderTopWidth"),10)||0)+(parseInt(b(e).css("paddingTop"),10)||0),d.left+(h?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(b(e).css("borderLeftWidth"),10)||0)-(parseInt(b(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,d.top+(h?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(b(e).css("borderTopWidth"),10)||0)-(parseInt(b(e).css("paddingBottom"),
|
173
|
+
10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom]}}else if(d.containment.constructor==Array)this.containment=d.containment},_convertPositionTo:function(d,e){if(!e)e=this.position;var h=d=="absolute"?1:-1,g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(g[0].tagName);return{top:e.top+this.offset.relative.top*h+this.offset.parent.top*h-(b.browser.safari&&
|
174
|
+
b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:g.scrollTop())*h),left:e.left+this.offset.relative.left*h+this.offset.parent.left*h-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:g.scrollLeft())*h)}},_generatePosition:function(d){var e=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],
|
175
|
+
this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName),a=d.pageX,f=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])a=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])f=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])a=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])f=
|
176
|
+
this.containment[3]+this.offset.click.top}if(e.grid){f=this.originalPageY+Math.round((f-this.originalPageY)/e.grid[1])*e.grid[1];f=this.containment?!(f-this.offset.click.top<this.containment[1]||f-this.offset.click.top>this.containment[3])?f:!(f-this.offset.click.top<this.containment[1])?f-e.grid[1]:f+e.grid[1]:f;a=this.originalPageX+Math.round((a-this.originalPageX)/e.grid[0])*e.grid[0];a=this.containment?!(a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2])?
|
177
|
+
a:!(a-this.offset.click.left<this.containment[0])?a-e.grid[0]:a+e.grid[0]:a}}return{top:f-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
|
178
|
+
g?0:h.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(d,e,h){h=h||this._uiHash();b.ui.plugin.call(this,d,[e,h]);if(d=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.Widget.prototype._trigger.call(this,d,e,h)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,
|
179
|
+
offset:this.positionAbs}}});b.extend(b.ui.draggable,{version:"1.8.11"});b.ui.plugin.add("draggable","connectToSortable",{start:function(d,e){var h=b(this).data("draggable"),g=h.options,a=b.extend({},e,{item:h.element});h.sortables=[];b(g.connectToSortable).each(function(){var f=b.data(this,"sortable");if(f&&!f.options.disabled){h.sortables.push({instance:f,shouldRevert:f.options.revert});f.refreshPositions();f._trigger("activate",d,a)}})},stop:function(d,e){var h=b(this).data("draggable"),g=b.extend({},
|
180
|
+
e,{item:h.element});b.each(h.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;h.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(d);this.instance.options.helper=this.instance.options._helper;h.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",d,g)}})},drag:function(d,e){var h=
|
181
|
+
b(this).data("draggable"),g=this;b.each(h.sortables,function(){this.instance.positionAbs=h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(g).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return e.helper[0]};
|
182
|
+
d.target=this.instance.currentItem[0];this.instance._mouseCapture(d,true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger("toSortable",d);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}this.instance.currentItem&&
|
183
|
+
this.instance._mouseDrag(d)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();h._trigger("fromSortable",d);h.dropped=false}})}});b.ui.plugin.add("draggable","cursor",
|
184
|
+
{start:function(){var d=b("body"),e=b(this).data("draggable").options;if(d.css("cursor"))e._cursor=d.css("cursor");d.css("cursor",e.cursor)},stop:function(){var d=b(this).data("draggable").options;d._cursor&&b("body").css("cursor",d._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var d=b(this).data("draggable").options;b(d.iframeFix===true?"iframe":d.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+
|
185
|
+
"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(b(this).offset()).appendTo("body")})},stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","opacity",{start:function(d,e){var h=b(e.helper),g=b(this).data("draggable").options;if(h.css("opacity"))g._opacity=h.css("opacity");h.css("opacity",g.opacity)},stop:function(d,e){var h=b(this).data("draggable").options;h._opacity&&b(e.helper).css("opacity",
|
186
|
+
h._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var d=b(this).data("draggable");if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML")d.overflowOffset=d.scrollParent.offset()},drag:function(d){var e=b(this).data("draggable"),h=e.options,g=false;if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML"){if(!h.axis||h.axis!="x")if(e.overflowOffset.top+e.scrollParent[0].offsetHeight-d.pageY<h.scrollSensitivity)e.scrollParent[0].scrollTop=g=e.scrollParent[0].scrollTop+
|
187
|
+
h.scrollSpeed;else if(d.pageY-e.overflowOffset.top<h.scrollSensitivity)e.scrollParent[0].scrollTop=g=e.scrollParent[0].scrollTop-h.scrollSpeed;if(!h.axis||h.axis!="y")if(e.overflowOffset.left+e.scrollParent[0].offsetWidth-d.pageX<h.scrollSensitivity)e.scrollParent[0].scrollLeft=g=e.scrollParent[0].scrollLeft+h.scrollSpeed;else if(d.pageX-e.overflowOffset.left<h.scrollSensitivity)e.scrollParent[0].scrollLeft=g=e.scrollParent[0].scrollLeft-h.scrollSpeed}else{if(!h.axis||h.axis!="x")if(d.pageY-b(document).scrollTop()<
|
188
|
+
h.scrollSensitivity)g=b(document).scrollTop(b(document).scrollTop()-h.scrollSpeed);else if(b(window).height()-(d.pageY-b(document).scrollTop())<h.scrollSensitivity)g=b(document).scrollTop(b(document).scrollTop()+h.scrollSpeed);if(!h.axis||h.axis!="y")if(d.pageX-b(document).scrollLeft()<h.scrollSensitivity)g=b(document).scrollLeft(b(document).scrollLeft()-h.scrollSpeed);else if(b(window).width()-(d.pageX-b(document).scrollLeft())<h.scrollSensitivity)g=b(document).scrollLeft(b(document).scrollLeft()+
|
189
|
+
h.scrollSpeed)}g!==false&&b.ui.ddmanager&&!h.dropBehaviour&&b.ui.ddmanager.prepareOffsets(e,d)}});b.ui.plugin.add("draggable","snap",{start:function(){var d=b(this).data("draggable"),e=d.options;d.snapElements=[];b(e.snap.constructor!=String?e.snap.items||":data(draggable)":e.snap).each(function(){var h=b(this),g=h.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:h.outerWidth(),height:h.outerHeight(),top:g.top,left:g.left})})},drag:function(d,e){for(var h=b(this).data("draggable"),
|
190
|
+
g=h.options,a=g.snapTolerance,f=e.offset.left,i=f+h.helperProportions.width,j=e.offset.top,l=j+h.helperProportions.height,o=h.snapElements.length-1;o>=0;o--){var m=h.snapElements[o].left,k=m+h.snapElements[o].width,n=h.snapElements[o].top,p=n+h.snapElements[o].height;if(m-a<f&&f<k+a&&n-a<j&&j<p+a||m-a<f&&f<k+a&&n-a<l&&l<p+a||m-a<i&&i<k+a&&n-a<j&&j<p+a||m-a<i&&i<k+a&&n-a<l&&l<p+a){if(g.snapMode!="inner"){var q=Math.abs(n-l)<=a,r=Math.abs(p-j)<=a,s=Math.abs(m-i)<=a,u=Math.abs(k-f)<=a;if(q)e.position.top=
|
191
|
+
h._convertPositionTo("relative",{top:n-h.helperProportions.height,left:0}).top-h.margins.top;if(r)e.position.top=h._convertPositionTo("relative",{top:p,left:0}).top-h.margins.top;if(s)e.position.left=h._convertPositionTo("relative",{top:0,left:m-h.helperProportions.width}).left-h.margins.left;if(u)e.position.left=h._convertPositionTo("relative",{top:0,left:k}).left-h.margins.left}var v=q||r||s||u;if(g.snapMode!="outer"){q=Math.abs(n-j)<=a;r=Math.abs(p-l)<=a;s=Math.abs(m-f)<=a;u=Math.abs(k-i)<=a;if(q)e.position.top=
|
192
|
+
h._convertPositionTo("relative",{top:n,left:0}).top-h.margins.top;if(r)e.position.top=h._convertPositionTo("relative",{top:p-h.helperProportions.height,left:0}).top-h.margins.top;if(s)e.position.left=h._convertPositionTo("relative",{top:0,left:m}).left-h.margins.left;if(u)e.position.left=h._convertPositionTo("relative",{top:0,left:k-h.helperProportions.width}).left-h.margins.left}if(!h.snapElements[o].snapping&&(q||r||s||u||v))h.options.snap.snap&&h.options.snap.snap.call(h.element,d,b.extend(h._uiHash(),
|
193
|
+
{snapItem:h.snapElements[o].item}));h.snapElements[o].snapping=q||r||s||u||v}else{h.snapElements[o].snapping&&h.options.snap.release&&h.options.snap.release.call(h.element,d,b.extend(h._uiHash(),{snapItem:h.snapElements[o].item}));h.snapElements[o].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var d=b(this).data("draggable").options;d=b.makeArray(b(d.stack)).sort(function(h,g){return(parseInt(b(h).css("zIndex"),10)||0)-(parseInt(b(g).css("zIndex"),10)||0)});if(d.length){var e=
|
194
|
+
parseInt(d[0].style.zIndex)||0;b(d).each(function(h){this.style.zIndex=e+h});this[0].style.zIndex=e+d.length}}});b.ui.plugin.add("draggable","zIndex",{start:function(d,e){var h=b(e.helper),g=b(this).data("draggable").options;if(h.css("zIndex"))g._zIndex=h.css("zIndex");h.css("zIndex",g.zIndex)},stop:function(d,e){var h=b(this).data("draggable").options;h._zIndex&&b(e.helper).css("zIndex",h._zIndex)}})})(jQuery);
|
195
195
|
(function(b){b.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,e=d.accept;this.isover=0;this.isout=1;this.accept=b.isFunction(e)?e:function(h){return h.is(e)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[d.scope]=b.ui.ddmanager.droppables[d.scope]||[];b.ui.ddmanager.droppables[d.scope].push(this);
|
196
196
|
d.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var d=b.ui.ddmanager.droppables[this.options.scope],e=0;e<d.length;e++)d[e]==this&&d.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(d,e){if(d=="accept")this.accept=b.isFunction(e)?e:function(h){return h.is(e)};b.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var e=b.ui.ddmanager.current;this.options.activeClass&&
|
197
197
|
this.element.addClass(this.options.activeClass);e&&this._trigger("activate",d,this.ui(e))},_deactivate:function(d){var e=b.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);e&&this._trigger("deactivate",d,this.ui(e))},_over:function(d){var e=b.ui.ddmanager.current;if(!(!e||(e.currentItem||e.element)[0]==this.element[0]))if(this.accept.call(this.element[0],e.currentItem||e.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
|
198
198
|
this._trigger("over",d,this.ui(e))}},_out:function(d){var e=b.ui.ddmanager.current;if(!(!e||(e.currentItem||e.element)[0]==this.element[0]))if(this.accept.call(this.element[0],e.currentItem||e.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",d,this.ui(e))}},_drop:function(d,e){var h=e||b.ui.ddmanager.current;if(!h||(h.currentItem||h.element)[0]==this.element[0])return false;var g=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var a=
|
199
199
|
b.data(this,"droppable");if(a.options.greedy&&!a.options.disabled&&a.options.scope==h.options.scope&&a.accept.call(a.element[0],h.currentItem||h.element)&&b.ui.intersect(h,b.extend(a,{offset:a.element.offset()}),a.options.tolerance)){g=true;return false}});if(g)return false;if(this.accept.call(this.element[0],h.currentItem||h.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
|
200
|
-
d,this.ui(h));return this.element}return false},ui:function(d){return{draggable:d.currentItem||d.element,helper:d.helper,position:d.position,offset:d.positionAbs}}});b.extend(b.ui.droppable,{version:"
|
201
|
-
|
202
|
-
|
203
|
-
"
|
204
|
-
|
205
|
-
|
200
|
+
d,this.ui(h));return this.element}return false},ui:function(d){return{draggable:d.currentItem||d.element,helper:d.helper,position:d.position,offset:d.positionAbs}}});b.extend(b.ui.droppable,{version:"1.8.11"});b.ui.intersect=function(d,e,h){if(!e.offset)return false;var g=(d.positionAbs||d.position.absolute).left,a=g+d.helperProportions.width,f=(d.positionAbs||d.position.absolute).top,i=f+d.helperProportions.height,j=e.offset.left,l=j+e.proportions.width,o=e.offset.top,m=o+e.proportions.height;switch(h){case "fit":return j<=
|
201
|
+
g&&a<=l&&o<=f&&i<=m;case "intersect":return j<g+d.helperProportions.width/2&&a-d.helperProportions.width/2<l&&o<f+d.helperProportions.height/2&&i-d.helperProportions.height/2<m;case "pointer":return b.ui.isOver((d.positionAbs||d.position.absolute).top+(d.clickOffset||d.offset.click).top,(d.positionAbs||d.position.absolute).left+(d.clickOffset||d.offset.click).left,o,j,e.proportions.height,e.proportions.width);case "touch":return(f>=o&&f<=m||i>=o&&i<=m||f<o&&i>m)&&(g>=j&&g<=l||a>=j&&a<=l||g<j&&a>l);
|
202
|
+
default:return false}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(d,e){var h=b.ui.ddmanager.droppables[d.options.scope]||[],g=e?e.type:null,a=(d.currentItem||d.element).find(":data(droppable)").andSelf(),f=0;a:for(;f<h.length;f++)if(!(h[f].options.disabled||d&&!h[f].accept.call(h[f].element[0],d.currentItem||d.element))){for(var i=0;i<a.length;i++)if(a[i]==h[f].element[0]){h[f].proportions.height=0;continue a}h[f].visible=h[f].element.css("display")!="none";if(h[f].visible){g==
|
203
|
+
"mousedown"&&h[f]._activate.call(h[f],e);h[f].offset=h[f].element.offset();h[f].proportions={width:h[f].element[0].offsetWidth,height:h[f].element[0].offsetHeight}}}},drop:function(d,e){var h=false;b.each(b.ui.ddmanager.droppables[d.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&b.ui.intersect(d,this,this.options.tolerance))h=h||this._drop.call(this,e);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],d.currentItem||d.element)){this.isout=
|
204
|
+
1;this.isover=0;this._deactivate.call(this,e)}}});return h},drag:function(d,e){d.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(d,e);b.each(b.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var h=b.ui.intersect(d,this,this.options.tolerance);if(h=!h&&this.isover==1?"isout":h&&this.isover==0?"isover":null){var g;if(this.options.greedy){var a=this.element.parents(":data(droppable):eq(0)");if(a.length){g=b.data(a[0],"droppable");
|
205
|
+
g.greedyChild=h=="isover"?1:0}}if(g&&h=="isover"){g.isover=0;g.isout=1;g._out.call(g,e)}this[h]=1;this[h=="isout"?"isover":"isout"]=0;this[h=="isover"?"_over":"_out"].call(this,e);if(g&&h=="isout"){g.isout=0;g.isover=1;g._over.call(g,e)}}}})}}})(jQuery);
|
206
206
|
(function(b){b.widget("ui.panel",{options:{event:"click",collapsible:true,collapseType:"default",collapsed:false,accordion:false,collapseSpeed:"fast",draggable:false,trueVerticalText:true,vHeight:"220px",stackable:true,width:"auto",controls:false,cookie:null,widgetClass:"ui-helper-reset ui-widget ui-panel",headerClass:"ui-helper-reset ui-widget-header ui-panel-header ui-corner-top",contentClass:"ui-helper-reset ui-widget-content ui-panel-content ui-corner-bottom",contentTextClass:"ui-panel-content-text",
|
207
207
|
rightboxClass:"ui-panel-rightbox",controlsClass:"ui-panel-controls",titleClass:"ui-panel-title",titleTextClass:"ui-panel-title-text",iconClass:"ui-icon",hoverClass:"ui-state-hover",collapsePnlClass:"ui-panel-clps-pnl",headerIconClpsd:"ui-icon-triangle-1-e",headerIcon:"ui-icon-triangle-1-s",slideRIconClpsd:"ui-icon-arrowthickstop-1-w",slideRIcon:"ui-icon-arrowthickstop-1-e",slideLIconClpsd:"ui-icon-arrowthickstop-1-e",slideLIcon:"ui-icon-arrowthickstop-1-w"},_init:function(){this._panelize()},_panelize:function(){if(this.element.is("div")){var d=
|
208
208
|
this,e=this.options;this.panelBox=this.element;if(e.width=="auto")e.width=this.panelBox.css("width");else this.panelBox.css("width",e.width);this.panelBox.attr("role","panel");e.id=this.panelBox.attr("id");this.headerBox=this.element.children(":first");this.contentBox=this.element.children().eq(1);e.content=this.contentBox.html();this.contentBox.wrapInner("<div/>");this.contentTextBox=this.contentBox.children(":first").addClass(e.contentTextClass);this.headerBox.wrapInner("<div><span/></div>");this.titleBox=
|
@@ -227,7 +227,7 @@ f.collisionPosition.left<0?j+l+o:i>0?j+l+o:0}},top:function(a,f){if(f.at[1]!=="c
|
|
227
227
|
j=i.offset(),l=parseInt(b.curCSS(a,"top",true),10)||0,o=parseInt(b.curCSS(a,"left",true),10)||0;j={top:f.top-j.top+l,left:f.left-j.left+o};"using"in f?f.using.call(a,j):i.css(j)};b.fn.offset=function(a){var f=this[0];if(!f||!f.ownerDocument)return null;if(a)return this.each(function(){b.offset.setOffset(this,a)});return g.call(this)}}})(jQuery);
|
228
228
|
(function(b,d){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
|
229
229
|
this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(e){if(e===d)return this._value();this._setOption("value",e);return this},_setOption:function(e,h){if(e==="value"){this.options.value=h;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var e=this.options.value;if(typeof e!=="number")e=0;return Math.min(this.options.max,Math.max(this.min,e))},_percentage:function(){return 100*
|
230
|
-
this._value()/this.options.max},_refreshValue:function(){var e=this.value(),h=this._percentage();if(this.oldValue!==e){this.oldValue=e;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",e===this.options.max).width(h.toFixed(0)+"%");this.element.attr("aria-valuenow",e)}});b.extend(b.ui.progressbar,{version:"
|
230
|
+
this._value()/this.options.max},_refreshValue:function(){var e=this.value(),h=this._percentage();if(this.oldValue!==e){this.oldValue=e;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",e===this.options.max).width(h.toFixed(0)+"%");this.element.attr("aria-valuenow",e)}});b.extend(b.ui.progressbar,{version:"1.8.11"})})(jQuery);
|
231
231
|
(function(b){b.widget("ui.resizable",b.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var h=this,g=this.options;this.element.addClass("ui-resizable");b.extend(this,{_aspectRatio:!!g.aspectRatio,aspectRatio:g.aspectRatio,originalElement:this.element,
|
232
232
|
_proportionallyResizeElements:[],_helper:g.helper||g.ghost||g.animate?g.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&b.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(b('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
|
233
233
|
top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
|
@@ -248,7 +248,7 @@ this.size.height,k=/sw|nw|w/.test(a);a=/nw|ne|n/.test(a);if(j&&k)h.left=o-g.minW
|
|
248
248
|
this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>');var g=b.browser.msie&&b.browser.version<7,a=g?1:0;g=g?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:"absolute",left:this.elementOffset.left-a+"px",top:this.elementOffset.top-a+"px",zIndex:++h.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(h,
|
249
249
|
g){return{width:this.originalSize.width+g}},w:function(h,g){return{left:this.originalPosition.left+g,width:this.originalSize.width-g}},n:function(h,g,a){return{top:this.originalPosition.top+a,height:this.originalSize.height-a}},s:function(h,g,a){return{height:this.originalSize.height+a}},se:function(h,g,a){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[h,g,a]))},sw:function(h,g,a){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[h,g,
|
250
250
|
a]))},ne:function(h,g,a){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[h,g,a]))},nw:function(h,g,a){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[h,g,a]))}},_propagate:function(h,g){b.ui.plugin.call(this,h,[g,this.ui()]);h!="resize"&&this._trigger(h,g,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
|
251
|
-
originalPosition:this.originalPosition}}});b.extend(b.ui.resizable,{version:"
|
251
|
+
originalPosition:this.originalPosition}}});b.extend(b.ui.resizable,{version:"1.8.11"});b.ui.plugin.add("resizable","alsoResize",{start:function(){var h=b(this).data("resizable").options,g=function(a){b(a).each(function(){var f=b(this);f.data("resizable-alsoresize",{width:parseInt(f.width(),10),height:parseInt(f.height(),10),left:parseInt(f.css("left"),10),top:parseInt(f.css("top"),10),position:f.css("position")})})};if(typeof h.alsoResize=="object"&&!h.alsoResize.parentNode)if(h.alsoResize.length){h.alsoResize=
|
252
252
|
h.alsoResize[0];g(h.alsoResize)}else b.each(h.alsoResize,function(a){g(a)});else g(h.alsoResize)},resize:function(h,g){var a=b(this).data("resizable"),f=a.options,i=a.originalSize,j=a.originalPosition,l={height:a.size.height-i.height||0,width:a.size.width-i.width||0,top:a.position.top-j.top||0,left:a.position.left-j.left||0},o=function(m,k){b(m).each(function(){var n=b(this),p=b(this).data("resizable-alsoresize"),q={},r=k&&k.length?k:n.parents(g.originalElement[0]).length?["width","height"]:["width",
|
253
253
|
"height","top","left"];b.each(r,function(s,u){var v=(p[u]||0)+(l[u]||0);if(v&&v>=0)q[u]=v||null});if(b.browser.opera&&/relative/.test(n.css("position"))){a._revertToRelativePosition=true;n.css({position:"absolute",top:"auto",left:"auto"})}n.css(q)})};typeof f.alsoResize=="object"&&!f.alsoResize.nodeType?b.each(f.alsoResize,function(m,k){o(m,k)}):o(f.alsoResize)},stop:function(){var h=b(this).data("resizable"),g=h.options,a=function(f){b(f).each(function(){var i=b(this);i.css({position:i.data("resizable-alsoresize").position})})};
|
254
254
|
if(h._revertToRelativePosition){h._revertToRelativePosition=false;typeof g.alsoResize=="object"&&!g.alsoResize.nodeType?b.each(g.alsoResize,function(f){a(f)}):a(g.alsoResize)}b(this).removeData("resizable-alsoresize")}});b.ui.plugin.add("resizable","animate",{stop:function(h){var g=b(this).data("resizable"),a=g.options,f=g._proportionallyResizeElements,i=f.length&&/textarea/i.test(f[0].nodeName),j=i&&b.ui.hasScroll(f[0],"left")?0:g.sizeDiff.height;i={width:g.size.width-(i?0:g.sizeDiff.width),height:g.size.height-
|
@@ -268,15 +268,15 @@ d,{unselecting:g.element})}});b(d.target).parents().andSelf().each(function(){va
|
|
268
268
|
this.options,g=this.opos[0],a=this.opos[1],f=d.pageX,i=d.pageY;if(g>f){var j=f;f=g;g=j}if(a>i){j=i;i=a;a=j}this.helper.css({left:g,top:a,width:f-g,height:i-a});this.selectees.each(function(){var l=b.data(this,"selectable-item");if(!(!l||l.element==e.element[0])){var o=false;if(h.tolerance=="touch")o=!(l.left>f||l.right<g||l.top>i||l.bottom<a);else if(h.tolerance=="fit")o=l.left>g&&l.right<f&&l.top>a&&l.bottom<i;if(o){if(l.selected){l.$element.removeClass("ui-selected");l.selected=false}if(l.unselecting){l.$element.removeClass("ui-unselecting");
|
269
269
|
l.unselecting=false}if(!l.selecting){l.$element.addClass("ui-selecting");l.selecting=true;e._trigger("selecting",d,{selecting:l.element})}}else{if(l.selecting)if(d.metaKey&&l.startselected){l.$element.removeClass("ui-selecting");l.selecting=false;l.$element.addClass("ui-selected");l.selected=true}else{l.$element.removeClass("ui-selecting");l.selecting=false;if(l.startselected){l.$element.addClass("ui-unselecting");l.unselecting=true}e._trigger("unselecting",d,{unselecting:l.element})}if(l.selected)if(!d.metaKey&&
|
270
270
|
!l.startselected){l.$element.removeClass("ui-selected");l.selected=false;l.$element.addClass("ui-unselecting");l.unselecting=true;e._trigger("unselecting",d,{unselecting:l.element})}}}});return false}},_mouseStop:function(d){var e=this;this.dragged=false;b(".ui-unselecting",this.element[0]).each(function(){var h=b.data(this,"selectable-item");h.$element.removeClass("ui-unselecting");h.unselecting=false;h.startselected=false;e._trigger("unselected",d,{unselected:h.element})});b(".ui-selecting",this.element[0]).each(function(){var h=
|
271
|
-
b.data(this,"selectable-item");h.$element.removeClass("ui-selecting").addClass("ui-selected");h.selecting=false;h.selected=true;h.startselected=true;e._trigger("selected",d,{selected:h.element})});this._trigger("stop",d);this.helper.remove();return false}});b.extend(b.ui.selectable,{version:"
|
271
|
+
b.data(this,"selectable-item");h.$element.removeClass("ui-selecting").addClass("ui-selected");h.selecting=false;h.selected=true;h.startselected=true;e._trigger("selected",d,{selected:h.element})});this._trigger("stop",d);this.helper.remove();return false}});b.extend(b.ui.selectable,{version:"1.8.11"})})(jQuery);
|
272
272
|
(function(b){b.widget("ui.selectmenu",{getter:"value",version:"1.8",eventPrefix:"selectmenu",options:{transferClasses:true,typeAhead:"sequential",style:"dropdown",positionOptions:{my:"left top",at:"left bottom",offset:null},width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null,bgImage:function(){},wrapperElement:""},_create:function(){var d=this,e=this.options,h=this.element.attr("id")||"ui-selectmenu-"+Math.random().toString(16).slice(2,10);this.ids=[h+"-button",h+"-menu"];
|
273
|
-
this._safemouseup=true;this.newelement=b('<a class="'+this.widgetBaseClass+' ui-widget ui-state-default ui-corner-all" id="'+this.ids[0]+'" role="button" href="#" tabindex="0" aria-haspopup="true" aria-owns="'+this.ids[1]+'"></a>').insertAfter(this.element);this.newelement.wrap(e.wrapperElement);(h=this.element.attr("tabindex"))&&this.newelement.attr("tabindex",h);this.newelement.data("selectelement",this.element);this.selectmenuIcon=b('<span class="'+this.widgetBaseClass+
|
274
|
-
this.newelement.prepend('<span class="'+d.widgetBaseClass+'-status" />');b('label[for="'+this.element.attr("id")+'"]').attr("for",this.ids[0]).bind("click.selectmenu",function(){d.newelement[0].focus();return false});this.newelement.bind("mousedown.selectmenu",function(g){d._toggle(g,true);if(e.style=="popup"){d._safemouseup=false;setTimeout(function(){d._safemouseup=true},300)}return false}).bind("click.selectmenu",function(){return false}).bind("keydown.selectmenu",
|
275
|
-
true;break;case b.ui.keyCode.SPACE:d._toggle(g);break;case b.ui.keyCode.UP:g.altKey?d.open(g):d._moveSelection(-1);break;case b.ui.keyCode.DOWN:g.altKey?d.open(g):d._moveSelection(1);break;case b.ui.keyCode.LEFT:d._moveSelection(-1);break;case b.ui.keyCode.RIGHT:d._moveSelection(1);break;case b.ui.keyCode.TAB:a=true;break;default:a=true;d._typeAhead(g.keyCode,"mouseup")}return a}).bind("mouseover.selectmenu focus.selectmenu",function(){e.disabled||
|
276
|
-
function(){e.disabled||b(this).removeClass(d.widgetBaseClass+"-focus ui-state-hover")});b(document).bind("mousedown.selectmenu",function(g){d.close(g)});this.element.bind("click.selectmenu",function(){d._refreshValue()}).bind("focus.selectmenu",function(){this.newelement&&this.newelement[0].focus()});h=this.element.width();this.newelement.width(e.width?e.width:h);this.element.hide();this.list=
|
277
|
-
this.ids[0]+'" id="'+this.ids[1]+'"></ul>').appendTo("body");this.list.wrap(e.wrapperElement);this.list.bind("keydown.selectmenu",function(g){var a=false;switch(g.keyCode){case b.ui.keyCode.UP:g.altKey?d.close(g,true):d._moveFocus(-1);break;case b.ui.keyCode.DOWN:g.altKey?d.close(g,true):d._moveFocus(1);break;case b.ui.keyCode.LEFT:d._moveFocus(-1);break;case b.ui.keyCode.RIGHT:d._moveFocus(1);
|
278
|
-
break;case b.ui.keyCode.PAGE_DOWN:d._scrollPage("down");break;case b.ui.keyCode.END:d._moveFocus(":last");break;case b.ui.keyCode.ENTER:case b.ui.keyCode.SPACE:d.close(g,true);b(g.target).parents("li:eq(0)").trigger("mouseup");break;case b.ui.keyCode.TAB:a=true;d.close(g,true);break;case b.ui.keyCode.ESCAPE:d.close(g,true);break;default:a=true;d._typeAhead(g.keyCode,"focus")}return a});b(window).bind("resize.selectmenu",
|
279
|
-
h=[];this.element.find("option").each(function(){h.push({value:b(this).attr("value"),text:d._formatText(b(this).text()),selected:b(this).attr("selected"),classes:b(this).attr("class"),typeahead:b(this).attr("typeahead"),parentOptGroup:b(this).parent("optgroup").attr("label"),bgImage:e.bgImage.call(b(this))})});var g=d.options.style=="popup"?" ui-state-active":"";this.list.html("");for(var a=0;a<h.length;a++){var f=b('<li role="presentation"><a href="#" tabindex="-1" role="option" aria-selected="false"'+
|
273
|
+
this._safemouseup=true;if(b.browser.msie)e.typeAhead="";this.newelement=b('<a class="'+this.widgetBaseClass+' ui-widget ui-state-default ui-corner-all" id="'+this.ids[0]+'" role="button" href="#" tabindex="0" aria-haspopup="true" aria-owns="'+this.ids[1]+'"></a>').insertAfter(this.element);this.newelement.wrap(e.wrapperElement);(h=this.element.attr("tabindex"))&&this.newelement.attr("tabindex",h);this.newelement.data("selectelement",this.element);this.selectmenuIcon=b('<span class="'+this.widgetBaseClass+
|
274
|
+
'-icon ui-icon"></span>').prependTo(this.newelement);this.newelement.prepend('<span class="'+d.widgetBaseClass+'-status" />');b('label[for="'+this.element.attr("id")+'"]').attr("for",this.ids[0]).bind("click.selectmenu",function(){d.newelement[0].focus();return false});this.newelement.bind("mousedown.selectmenu",function(g){d._toggle(g,true);if(e.style=="popup"){d._safemouseup=false;setTimeout(function(){d._safemouseup=true},300)}return false}).bind("click.selectmenu",function(){return false}).bind("keydown.selectmenu",
|
275
|
+
function(g){var a=false;switch(g.keyCode){case b.ui.keyCode.ENTER:a=true;break;case b.ui.keyCode.SPACE:d._toggle(g);break;case b.ui.keyCode.UP:g.altKey?d.open(g):d._moveSelection(-1);break;case b.ui.keyCode.DOWN:g.altKey?d.open(g):d._moveSelection(1);break;case b.ui.keyCode.LEFT:d._moveSelection(-1);break;case b.ui.keyCode.RIGHT:d._moveSelection(1);break;case b.ui.keyCode.TAB:a=true;break;default:a=true;d._typeAhead(g.keyCode,"mouseup")}return a}).bind("mouseover.selectmenu focus.selectmenu",function(){e.disabled||
|
276
|
+
b(this).addClass(d.widgetBaseClass+"-focus ui-state-hover")}).bind("mouseout.selectmenu blur.selectmenu",function(){e.disabled||b(this).removeClass(d.widgetBaseClass+"-focus ui-state-hover")});b(document).bind("mousedown.selectmenu",function(g){d.close(g)});this.element.bind("click.selectmenu",function(){d._refreshValue()}).bind("focus.selectmenu",function(){this.newelement&&this.newelement[0].focus()});h=this.element.width();this.newelement.width(e.width?e.width:h);this.element.hide();this.list=
|
277
|
+
b('<ul class="'+d.widgetBaseClass+'-menu ui-widget ui-widget-content" aria-hidden="true" role="listbox" aria-labelledby="'+this.ids[0]+'" id="'+this.ids[1]+'"></ul>').appendTo("body");this.list.wrap(e.wrapperElement);this.list.bind("keydown.selectmenu",function(g){var a=false;switch(g.keyCode){case b.ui.keyCode.UP:g.altKey?d.close(g,true):d._moveFocus(-1);break;case b.ui.keyCode.DOWN:g.altKey?d.close(g,true):d._moveFocus(1);break;case b.ui.keyCode.LEFT:d._moveFocus(-1);break;case b.ui.keyCode.RIGHT:d._moveFocus(1);
|
278
|
+
break;case b.ui.keyCode.HOME:d._moveFocus(":first");break;case b.ui.keyCode.PAGE_UP:d._scrollPage("up");break;case b.ui.keyCode.PAGE_DOWN:d._scrollPage("down");break;case b.ui.keyCode.END:d._moveFocus(":last");break;case b.ui.keyCode.ENTER:case b.ui.keyCode.SPACE:d.close(g,true);b(g.target).parents("li:eq(0)").trigger("mouseup");break;case b.ui.keyCode.TAB:a=true;d.close(g,true);break;case b.ui.keyCode.ESCAPE:d.close(g,true);break;default:a=true;d._typeAhead(g.keyCode,"focus")}return a});b(window).bind("resize.selectmenu",
|
279
|
+
b.proxy(d._refreshPosition,this))},_init:function(){var d=this,e=this.options,h=[];this.element.find("option").each(function(){h.push({value:b(this).attr("value"),text:d._formatText(b(this).text()),selected:b(this).attr("selected"),classes:b(this).attr("class"),typeahead:b(this).attr("typeahead"),parentOptGroup:b(this).parent("optgroup").attr("label"),bgImage:e.bgImage.call(b(this))})});var g=d.options.style=="popup"?" ui-state-active":"";this.list.html("");for(var a=0;a<h.length;a++){var f=b('<li role="presentation"><a href="#" tabindex="-1" role="option" aria-selected="false"'+
|
280
280
|
(h[a].typeahead?' typeahead="'+h[a].typeahead+'"':"")+">"+h[a].text+"</a></li>").data("index",a).addClass(h[a].classes).data("optionClasses",h[a].classes||"").bind("mouseup.selectmenu",function(l){if(d._safemouseup){var o=b(this).data("index")!=d._selectedIndex();d.index(b(this).data("index"));d.select(l);o&&d.change(l);d.close(l,true)}return false}).bind("click.selectmenu",function(){return false}).bind("mouseover.selectmenu focus.selectmenu",function(){d._selectedOptionLi().addClass(g);d._focusedOptionLi().removeClass(d.widgetBaseClass+
|
281
281
|
"-item-focus ui-state-hover");b(this).removeClass("ui-state-active").addClass(d.widgetBaseClass+"-item-focus ui-state-hover")}).bind("mouseout.selectmenu blur.selectmenu",function(){b(this).is(d._selectedOptionLi().selector)&&b(this).addClass(g);b(this).removeClass(d.widgetBaseClass+"-item-focus ui-state-hover")});if(h[a].parentOptGroup){var i=d.widgetBaseClass+"-group-"+h[a].parentOptGroup.replace(/[^a-zA-Z0-9]/g,"");this.list.find("li."+i).size()?this.list.find("li."+i+":last ul").append(f):b('<li role="presentation" class="'+
|
282
282
|
d.widgetBaseClass+"-group "+i+'"><span class="'+d.widgetBaseClass+'-group-label">'+h[a].parentOptGroup+"</span><ul></ul></li>").appendTo(this.list).find("ul").append(f)}else f.appendTo(this.list);this.list.bind("mousedown.selectmenu mouseup.selectmenu",function(){return false});if(e.icons)for(var j in e.icons)if(f.is(e.icons[j].find)){f.data("optionClasses",h[a].classes+" "+d.widgetBaseClass+"-hasIcon").addClass(d.widgetBaseClass+"-hasIcon");i=e.icons[j].icon||"";f.find("a:eq(0)").prepend('<span class="'+
|
@@ -312,53 +312,53 @@ this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui
|
|
312
312
|
return e=this._trimAlignValue(e)}else{e=this.options.values.slice();for(h=0;h<e.length;h+=1)e[h]=this._trimAlignValue(e[h]);return e}},_trimAlignValue:function(d){if(d<=this._valueMin())return this._valueMin();if(d>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,h=(d-this._valueMin())%e;alignValue=d-h;if(Math.abs(h)*2>=e)alignValue+=h>0?e:-e;return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
|
313
313
|
_refreshValue:function(){var d=this.options.range,e=this.options,h=this,g=!this._animateOff?e.animate:false,a,f={},i,j,l,o;if(this.options.values&&this.options.values.length)this.handles.each(function(m){a=(h.values(m)-h._valueMin())/(h._valueMax()-h._valueMin())*100;f[h.orientation==="horizontal"?"left":"bottom"]=a+"%";b(this).stop(1,1)[g?"animate":"css"](f,e.animate);if(h.options.range===true)if(h.orientation==="horizontal"){if(m===0)h.range.stop(1,1)[g?"animate":"css"]({left:a+"%"},e.animate);
|
314
314
|
if(m===1)h.range[g?"animate":"css"]({width:a-i+"%"},{queue:false,duration:e.animate})}else{if(m===0)h.range.stop(1,1)[g?"animate":"css"]({bottom:a+"%"},e.animate);if(m===1)h.range[g?"animate":"css"]({height:a-i+"%"},{queue:false,duration:e.animate})}i=a});else{j=this.value();l=this._valueMin();o=this._valueMax();a=o!==l?(j-l)/(o-l)*100:0;f[h.orientation==="horizontal"?"left":"bottom"]=a+"%";this.handle.stop(1,1)[g?"animate":"css"](f,e.animate);if(d==="min"&&this.orientation==="horizontal")this.range.stop(1,
|
315
|
-
1)[g?"animate":"css"]({width:a+"%"},e.animate);if(d==="max"&&this.orientation==="horizontal")this.range[g?"animate":"css"]({width:100-a+"%"},{queue:false,duration:e.animate});if(d==="min"&&this.orientation==="vertical")this.range.stop(1,1)[g?"animate":"css"]({height:a+"%"},e.animate);if(d==="max"&&this.orientation==="vertical")this.range[g?"animate":"css"]({height:100-a+"%"},{queue:false,duration:e.animate})}}});b.extend(b.ui.slider,{version:"
|
315
|
+
1)[g?"animate":"css"]({width:a+"%"},e.animate);if(d==="max"&&this.orientation==="horizontal")this.range[g?"animate":"css"]({width:100-a+"%"},{queue:false,duration:e.animate});if(d==="min"&&this.orientation==="vertical")this.range.stop(1,1)[g?"animate":"css"]({height:a+"%"},e.animate);if(d==="max"&&this.orientation==="vertical")this.range[g?"animate":"css"]({height:100-a+"%"},{queue:false,duration:e.animate})}}});b.extend(b.ui.slider,{version:"1.8.11"})})(jQuery);
|
316
316
|
(function(b){b.widget("ui.sortable",b.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
|
317
|
-
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var d=this.items.length-1;d>=0;d--)this.items[d].item.removeData("sortable-item");return this},_setOption:function(d,e){if(d==="disabled"){this.options[d]=
|
318
|
-
arguments)},_mouseCapture:function(d,e){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(d);var h=null,g=this;b(d.target).parents().each(function(){if(b.data(this,"sortable-item")==g){h=b(this);return false}});if(b.data(d.target,"sortable-item")==g)h=b(d.target);if(!h)return false;if(this.options.handle&&!e){var a=false;
|
319
|
-
h;this._removeCurrentsFromItems();return true},_mouseStart:function(d,e,h){e=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(d);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-
|
320
|
-
{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
|
321
|
-
if(e.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("body").css("cursor",e.cursor)}if(e.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",e.opacity)}if(e.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",e.zIndex)}if(this.scrollParent[0]!=
|
322
|
-
d,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!h)for(h=this.containers.length-1;h>=0;h--)this.containers[h]._trigger("activate",d,this._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!e.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,d);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(d);
|
323
|
-
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var e=this.options,h=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-d.pageY<e.scrollSensitivity)this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+e.scrollSpeed;else if(d.pageY-this.overflowOffset.top<
|
324
|
-
this.scrollParent[0].offsetWidth-d.pageX<e.scrollSensitivity)this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+e.scrollSpeed;else if(d.pageX-this.overflowOffset.left<e.scrollSensitivity)this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-e.scrollSpeed}else{if(d.pageY-b(document).scrollTop()<e.scrollSensitivity)h=b(document).scrollTop(b(document).scrollTop()-
|
325
|
-
e.scrollSpeed);if(d.pageX-b(document).scrollLeft()<e.scrollSensitivity)h=b(document).scrollLeft(b(document).scrollLeft()-e.scrollSpeed);else if(b(window).width()-(d.pageX-b(document).scrollLeft())<e.scrollSensitivity)h=b(document).scrollLeft(b(document).scrollLeft()+e.scrollSpeed)}h!==false&&b.ui.ddmanager&&!e.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,
|
326
|
-
"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(e=this.items.length-1;e>=0;e--){h=this.items[e];var g=h.item[0],a=this._intersectsWithPointer(h);if(a)if(g!=this.currentItem[0]&&this.placeholder[a==1?"next":"prev"]()[0]!=g&&!b.ui.contains(this.placeholder[0],g)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],
|
327
|
-
h);else break;this._trigger("change",d,this._uiHash());break}}this._contactContainers(d);b.ui.ddmanager&&b.ui.ddmanager.drag(this,d);this._trigger("sort",d,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,e){if(d){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,d);if(this.options.revert){var h=this,g=h.placeholder.offset();
|
328
|
-
document.body?0:this.offsetParent[0].scrollLeft),top:g.top-this.offset.parent.top-h.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){h._clear(d)})}else this._clear(d,e);return false}},cancel:function(){if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):
|
329
|
-
null,this._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,this._uiHash(this));this.containers[d].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();b.extend(this,
|
330
|
-
b(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(d){var e=this._getItemsAsjQuery(d&&d.connected),h=[];d=d||{};b(e).each(function(){var g=(b(d.item||this).attr(d.attribute||"id")||"").match(d.expression||/(.+)[-=_](.+)/);if(g)h.push((d.key||g[1]+"[]")+"="+(d.key&&d.expression?g[1]:g[2]))});!h.length&&d.key&&h.push(d.key+"=");return h.join("&")},
|
331
|
-
"id")||"")});return h},_intersectsWith:function(d){var e=this.positionAbs.left,h=e+this.helperProportions.width,g=this.positionAbs.top,a=g+this.helperProportions.height,f=d.left,i=f+d.width,j=d.top,l=j+d.height,o=this.offset.click.top,m=this.offset.click.left;o=g+o>j&&g+o<l&&e+m>f&&e+m<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||
|
332
|
-
this.helperProportions.width/2&&h-this.helperProportions.width/2<i&&j<g+this.helperProportions.height/2&&a-this.helperProportions.height/2<l},_intersectsWithPointer:function(d){var e=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height);d=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width);e=e&&d;d=this._getDragVerticalDirection();
|
333
|
-
2:1)},_intersectsWithSides:function(d){var e=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top+d.height/2,d.height);d=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left+d.width/2,d.width);var h=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return this.floating&&g?g=="right"&&d||g=="left"&&!d:h&&(h=="down"&&e||h=="up"&&!e)},
|
334
|
-
_getDragHorizontalDirection:function(){var d=this.positionAbs.left-this.lastPositionAbs.left;return d!=0&&(d>0?"right":"left")},refresh:function(d){this._refreshItems(d);this.refreshPositions();return this},_connectWith:function(){var d=this.options;return d.connectWith.constructor==String?[d.connectWith]:d.connectWith},_getItemsAsjQuery:function(d){var e=[],h=[],g=this._connectWith();
|
335
|
-
this&&!i.options.disabled)h.push([b.isFunction(i.options.items)?i.options.items.call(i.element):b(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}h.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),
|
336
|
-
this.currentItem.find(":data(sortable-item)"),e=0;e<this.items.length;e++)for(var h=0;h<d.length;h++)d[h]==this.items[e].item[0]&&this.items.splice(e,1)},_refreshItems:function(d){this.items=[];this.containers=[this];var e=this.items,h=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],d,{item:this.currentItem}):b(this.options.items,this.element),
|
337
|
-
if(j&&j!=this&&!j.options.disabled){h.push([b.isFunction(j.options.items)?j.options.items.call(j.element[0],d,{item:this.currentItem}):b(j.options.items,j.element),j]);this.containers.push(j)}}for(a=h.length-1;a>=0;a--){d=h[a][1];g=h[a][0];i=0;for(f=g.length;i<f;i++){j=b(g[i]);j.data("sortable-item",d);e.push({item:j,instance:d,width:0,height:0,left:0,top:0})}}},refreshPositions:function(d){if(this.offsetParent&&
|
338
|
-
0;e--){var h=this.items[e],g=this.options.toleranceElement?b(this.options.toleranceElement,h.item):h.item;if(!d){h.width=g.outerWidth();h.height=g.outerHeight()}g=g.offset();h.left=g.left;h.top=g.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--){g=this.containers[e].element.offset();this.containers[e].containerCache.left=
|
339
|
-
this.containers[e].element.outerWidth();this.containers[e].containerCache.height=this.containers[e].element.outerHeight()}return this},_createPlaceholder:function(d){var e=d||this,h=e.options;if(!h.placeholder||h.placeholder.constructor==String){var g=h.placeholder;h.placeholder={element:function(){var a=b(document.createElement(e.currentItem[0].nodeName)).addClass(g||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];
|
340
|
-
update:function(a,f){if(!(g&&!h.forcePlaceholderSize)){f.height()||f.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10));f.width()||f.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10))}}}}e.placeholder=b(h.placeholder.element.call(e.element,e.currentItem));e.currentItem.after(e.placeholder);
|
341
|
-
null,h=null,g=this.containers.length-1;g>=0;g--)if(!b.ui.contains(this.currentItem[0],this.containers[g].element[0]))if(this._intersectsWith(this.containers[g].containerCache)){if(!(e&&b.ui.contains(this.containers[g].element[0],e.element[0]))){e=this.containers[g];h=g}}else if(this.containers[g].containerCache.over){this.containers[g]._trigger("out",d,this._uiHash(this));this.containers[g].containerCache.over=0}if(e)if(this.containers.length===
|
342
|
-
this.containers[h].containerCache.over=1}else if(this.currentContainer!=this.containers[h]){e=1E4;g=null;for(var a=this.positionAbs[this.containers[h].floating?"left":"top"],f=this.items.length-1;f>=0;f--)if(b.ui.contains(this.containers[h].element[0],this.items[f].item[0])){var i=this.items[f][this.containers[h].floating?"left":"top"];if(Math.abs(i-a)<e){e=Math.abs(i-a);g=this.items[f]}}if(g||this.options.dropOnEmpty){this.currentContainer=
|
343
|
-
null,this.containers[h].element,true);this._trigger("change",d,this._uiHash());this.containers[h]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[h]._trigger("over",d,this._uiHash(this));this.containers[h].containerCache.over=1}}},_createHelper:function(d){var e=this.options;d=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[d,this.currentItem])):
|
344
|
-
b(e.appendTo!="parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);if(d[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(d[0].style.width==""||e.forceHelperSize)d.width(this.currentItem.width());if(d[0].style.height==
|
345
|
-
"string")d=d.split(" ");if(b.isArray(d))d={left:+d[0],top:+d[1]||0};if("left"in d)this.offset.click.left=d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
|
346
|
-
"absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
|
347
|
-
"relative"){var d=this.currentItem.position();return{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions=
|
348
|
-
_setContainment:function(){var d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(d.containment=="document"?document:window).height()||
|
349
|
-
this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)){var e=b(d.containment)[0];d=b(d.containment).offset();var h=b(e).css("overflow")!="hidden";this.containment=[d.left+(parseInt(b(e).css("borderLeftWidth"),10)||0)+(parseInt(b(e).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(b(e).css("borderTopWidth"),10)||0)+(parseInt(b(e).css("paddingTop"),10)||0)-this.margins.top,d.left+(h?Math.max(e.scrollWidth,
|
350
|
-
10)||0)-(parseInt(b(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(h?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(b(e).css("borderTopWidth"),10)||0)-(parseInt(b(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(d,e){if(!e)e=this.position;var h=d=="absolute"?1:-1,g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=
|
351
|
-
this.offsetParent:this.scrollParent,a=/(html|body)/i.test(g[0].tagName);return{top:e.top+this.offset.relative.top*h+this.offset.parent.top*h-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:g.scrollTop())*h),left:e.left+this.offset.relative.left*h+this.offset.parent.left*h-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
|
352
|
-
this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var a=d.pageX,f=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-
|
353
|
-
this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])f=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])a=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])f=this.containment[3]+this.offset.click.top}if(e.grid){f=this.originalPageY+Math.round((f-this.originalPageY)/e.grid[1])*e.grid[1];f=this.containment?!(f-this.offset.click.top<
|
354
|
-
f:!(f-this.offset.click.top<this.containment[1])?f-e.grid[1]:f+e.grid[1]:f;a=this.originalPageX+Math.round((a-this.originalPageX)/e.grid[0])*e.grid[0];a=this.containment?!(a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2])?a:!(a-this.offset.click.left<this.containment[0])?a-e.grid[0]:a+e.grid[0]:a}}return{top:f-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&
|
355
|
-
g?0:h.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:h.scrollLeft())}},_rearrange:function(d,e,h,g){h?h[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?e.item[0]:e.item[0].nextSibling);this.counter=
|
356
|
-
a.counter&&a.refreshPositions(!g)},0)},_clear:function(d,e){this.reverting=false;var h=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var g in this._storedCSS)if(this._storedCSS[g]=="auto"||this._storedCSS[g]=="static")this._storedCSS[g]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();
|
357
|
-
a,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!e)h.push(function(a){this._trigger("update",a,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){e||h.push(function(a){this._trigger("remove",a,this._uiHash())});for(g=this.containers.length-1;g>=0;g--)if(b.ui.contains(this.containers[g].element[0],
|
358
|
-
f,this._uiHash(this))}}.call(this,this.containers[g]));h.push(function(a){return function(f){a._trigger("update",f,this._uiHash(this))}}.call(this,this.containers[g]))}}for(g=this.containers.length-1;g>=0;g--){e||h.push(function(a){return function(f){a._trigger("deactivate",f,this._uiHash(this))}}.call(this,this.containers[g]));if(this.containers[g].containerCache.over){h.push(function(a){return function(f){a._trigger("out",
|
359
|
-
0}}this._storedCursor&&b("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger("beforeStop",d,this._uiHash());for(g=0;g<h.length;g++)h[g].call(this,d);this._trigger("stop",d,this._uiHash())}return false}e||
|
360
|
-
this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!e){for(g=0;g<h.length;g++)h[g].call(this,d);this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(d){var e=d||this;return{helper:e.helper,placeholder:e.placeholder||b([]),position:e.position,
|
361
|
-
b.extend(b.ui.sortable,{version:"
|
317
|
+
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var d=this.items.length-1;d>=0;d--)this.items[d].item.removeData("sortable-item");return this},_setOption:function(d,e){if(d==="disabled"){this.options[d]=
|
318
|
+
e;this.widget()[e?"addClass":"removeClass"]("ui-sortable-disabled")}else b.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(d,e){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(d);var h=null,g=this;b(d.target).parents().each(function(){if(b.data(this,"sortable-item")==g){h=b(this);return false}});if(b.data(d.target,"sortable-item")==g)h=b(d.target);if(!h)return false;if(this.options.handle&&!e){var a=false;
|
319
|
+
b(this.options.handle,h).find("*").andSelf().each(function(){if(this==d.target)a=true});if(!a)return false}this.currentItem=h;this._removeCurrentsFromItems();return true},_mouseStart:function(d,e,h){e=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(d);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-
|
320
|
+
this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");b.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
|
321
|
+
this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();e.containment&&this._setContainment();if(e.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("body").css("cursor",e.cursor)}if(e.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",e.opacity)}if(e.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",e.zIndex)}if(this.scrollParent[0]!=
|
322
|
+
document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",d,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!h)for(h=this.containers.length-1;h>=0;h--)this.containers[h]._trigger("activate",d,this._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!e.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,d);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(d);
|
323
|
+
return true},_mouseDrag:function(d){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var e=this.options,h=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-d.pageY<e.scrollSensitivity)this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+e.scrollSpeed;else if(d.pageY-this.overflowOffset.top<
|
324
|
+
e.scrollSensitivity)this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop-e.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-d.pageX<e.scrollSensitivity)this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+e.scrollSpeed;else if(d.pageX-this.overflowOffset.left<e.scrollSensitivity)this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-e.scrollSpeed}else{if(d.pageY-b(document).scrollTop()<e.scrollSensitivity)h=b(document).scrollTop(b(document).scrollTop()-
|
325
|
+
e.scrollSpeed);else if(b(window).height()-(d.pageY-b(document).scrollTop())<e.scrollSensitivity)h=b(document).scrollTop(b(document).scrollTop()+e.scrollSpeed);if(d.pageX-b(document).scrollLeft()<e.scrollSensitivity)h=b(document).scrollLeft(b(document).scrollLeft()-e.scrollSpeed);else if(b(window).width()-(d.pageX-b(document).scrollLeft())<e.scrollSensitivity)h=b(document).scrollLeft(b(document).scrollLeft()+e.scrollSpeed)}h!==false&&b.ui.ddmanager&&!e.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,
|
326
|
+
d)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(e=this.items.length-1;e>=0;e--){h=this.items[e];var g=h.item[0],a=this._intersectsWithPointer(h);if(a)if(g!=this.currentItem[0]&&this.placeholder[a==1?"next":"prev"]()[0]!=g&&!b.ui.contains(this.placeholder[0],g)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],
|
327
|
+
g):true)){this.direction=a==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(h))this._rearrange(d,h);else break;this._trigger("change",d,this._uiHash());break}}this._contactContainers(d);b.ui.ddmanager&&b.ui.ddmanager.drag(this,d);this._trigger("sort",d,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,e){if(d){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,d);if(this.options.revert){var h=this,g=h.placeholder.offset();
|
328
|
+
h.reverting=true;b(this.helper).animate({left:g.left-this.offset.parent.left-h.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:g.top-this.offset.parent.top-h.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){h._clear(d)})}else this._clear(d,e);return false}},cancel:function(){if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):
|
329
|
+
this.currentItem.show();for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",null,this._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,this._uiHash(this));this.containers[d].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();b.extend(this,
|
330
|
+
{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):b(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(d){var e=this._getItemsAsjQuery(d&&d.connected),h=[];d=d||{};b(e).each(function(){var g=(b(d.item||this).attr(d.attribute||"id")||"").match(d.expression||/(.+)[-=_](.+)/);if(g)h.push((d.key||g[1]+"[]")+"="+(d.key&&d.expression?g[1]:g[2]))});!h.length&&d.key&&h.push(d.key+"=");return h.join("&")},
|
331
|
+
toArray:function(d){var e=this._getItemsAsjQuery(d&&d.connected),h=[];d=d||{};e.each(function(){h.push(b(d.item||this).attr(d.attribute||"id")||"")});return h},_intersectsWith:function(d){var e=this.positionAbs.left,h=e+this.helperProportions.width,g=this.positionAbs.top,a=g+this.helperProportions.height,f=d.left,i=f+d.width,j=d.top,l=j+d.height,o=this.offset.click.top,m=this.offset.click.left;o=g+o>j&&g+o<l&&e+m>f&&e+m<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||
|
332
|
+
this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>d[this.floating?"width":"height"]?o:f<e+this.helperProportions.width/2&&h-this.helperProportions.width/2<i&&j<g+this.helperProportions.height/2&&a-this.helperProportions.height/2<l},_intersectsWithPointer:function(d){var e=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height);d=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width);e=e&&d;d=this._getDragVerticalDirection();
|
333
|
+
var h=this._getDragHorizontalDirection();if(!e)return false;return this.floating?h&&h=="right"||d=="down"?2:1:d&&(d=="down"?2:1)},_intersectsWithSides:function(d){var e=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top+d.height/2,d.height);d=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left+d.width/2,d.width);var h=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return this.floating&&g?g=="right"&&d||g=="left"&&!d:h&&(h=="down"&&e||h=="up"&&!e)},
|
334
|
+
_getDragVerticalDirection:function(){var d=this.positionAbs.top-this.lastPositionAbs.top;return d!=0&&(d>0?"down":"up")},_getDragHorizontalDirection:function(){var d=this.positionAbs.left-this.lastPositionAbs.left;return d!=0&&(d>0?"right":"left")},refresh:function(d){this._refreshItems(d);this.refreshPositions();return this},_connectWith:function(){var d=this.options;return d.connectWith.constructor==String?[d.connectWith]:d.connectWith},_getItemsAsjQuery:function(d){var e=[],h=[],g=this._connectWith();
|
335
|
+
if(g&&d)for(d=g.length-1;d>=0;d--)for(var a=b(g[d]),f=a.length-1;f>=0;f--){var i=b.data(a[f],"sortable");if(i&&i!=this&&!i.options.disabled)h.push([b.isFunction(i.options.items)?i.options.items.call(i.element):b(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}h.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),
|
336
|
+
this]);for(d=h.length-1;d>=0;d--)h[d][0].each(function(){e.push(this)});return b(e)},_removeCurrentsFromItems:function(){for(var d=this.currentItem.find(":data(sortable-item)"),e=0;e<this.items.length;e++)for(var h=0;h<d.length;h++)d[h]==this.items[e].item[0]&&this.items.splice(e,1)},_refreshItems:function(d){this.items=[];this.containers=[this];var e=this.items,h=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],d,{item:this.currentItem}):b(this.options.items,this.element),
|
337
|
+
this]],g=this._connectWith();if(g)for(var a=g.length-1;a>=0;a--)for(var f=b(g[a]),i=f.length-1;i>=0;i--){var j=b.data(f[i],"sortable");if(j&&j!=this&&!j.options.disabled){h.push([b.isFunction(j.options.items)?j.options.items.call(j.element[0],d,{item:this.currentItem}):b(j.options.items,j.element),j]);this.containers.push(j)}}for(a=h.length-1;a>=0;a--){d=h[a][1];g=h[a][0];i=0;for(f=g.length;i<f;i++){j=b(g[i]);j.data("sortable-item",d);e.push({item:j,instance:d,width:0,height:0,left:0,top:0})}}},refreshPositions:function(d){if(this.offsetParent&&
|
338
|
+
this.helper)this.offset.parent=this._getParentOffset();for(var e=this.items.length-1;e>=0;e--){var h=this.items[e],g=this.options.toleranceElement?b(this.options.toleranceElement,h.item):h.item;if(!d){h.width=g.outerWidth();h.height=g.outerHeight()}g=g.offset();h.left=g.left;h.top=g.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--){g=this.containers[e].element.offset();this.containers[e].containerCache.left=
|
339
|
+
g.left;this.containers[e].containerCache.top=g.top;this.containers[e].containerCache.width=this.containers[e].element.outerWidth();this.containers[e].containerCache.height=this.containers[e].element.outerHeight()}return this},_createPlaceholder:function(d){var e=d||this,h=e.options;if(!h.placeholder||h.placeholder.constructor==String){var g=h.placeholder;h.placeholder={element:function(){var a=b(document.createElement(e.currentItem[0].nodeName)).addClass(g||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];
|
340
|
+
if(!g)a.style.visibility="hidden";return a},update:function(a,f){if(!(g&&!h.forcePlaceholderSize)){f.height()||f.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10));f.width()||f.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10))}}}}e.placeholder=b(h.placeholder.element.call(e.element,e.currentItem));e.currentItem.after(e.placeholder);
|
341
|
+
h.placeholder.update(e,e.placeholder)},_contactContainers:function(d){for(var e=null,h=null,g=this.containers.length-1;g>=0;g--)if(!b.ui.contains(this.currentItem[0],this.containers[g].element[0]))if(this._intersectsWith(this.containers[g].containerCache)){if(!(e&&b.ui.contains(this.containers[g].element[0],e.element[0]))){e=this.containers[g];h=g}}else if(this.containers[g].containerCache.over){this.containers[g]._trigger("out",d,this._uiHash(this));this.containers[g].containerCache.over=0}if(e)if(this.containers.length===
|
342
|
+
1){this.containers[h]._trigger("over",d,this._uiHash(this));this.containers[h].containerCache.over=1}else if(this.currentContainer!=this.containers[h]){e=1E4;g=null;for(var a=this.positionAbs[this.containers[h].floating?"left":"top"],f=this.items.length-1;f>=0;f--)if(b.ui.contains(this.containers[h].element[0],this.items[f].item[0])){var i=this.items[f][this.containers[h].floating?"left":"top"];if(Math.abs(i-a)<e){e=Math.abs(i-a);g=this.items[f]}}if(g||this.options.dropOnEmpty){this.currentContainer=
|
343
|
+
this.containers[h];g?this._rearrange(d,g,null,true):this._rearrange(d,null,this.containers[h].element,true);this._trigger("change",d,this._uiHash());this.containers[h]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[h]._trigger("over",d,this._uiHash(this));this.containers[h].containerCache.over=1}}},_createHelper:function(d){var e=this.options;d=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[d,this.currentItem])):
|
344
|
+
e.helper=="clone"?this.currentItem.clone():this.currentItem;d.parents("body").length||b(e.appendTo!="parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);if(d[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(d[0].style.width==""||e.forceHelperSize)d.width(this.currentItem.width());if(d[0].style.height==
|
345
|
+
""||e.forceHelperSize)d.height(this.currentItem.height());return d},_adjustOffsetFromHelper:function(d){if(typeof d=="string")d=d.split(" ");if(b.isArray(d))d={left:+d[0],top:+d[1]||0};if("left"in d)this.offset.click.left=d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
|
346
|
+
this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
|
347
|
+
10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var d=this.currentItem.position();return{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions=
|
348
|
+
{width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(d.containment=="document"?document:window).height()||
|
349
|
+
document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)){var e=b(d.containment)[0];d=b(d.containment).offset();var h=b(e).css("overflow")!="hidden";this.containment=[d.left+(parseInt(b(e).css("borderLeftWidth"),10)||0)+(parseInt(b(e).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(b(e).css("borderTopWidth"),10)||0)+(parseInt(b(e).css("paddingTop"),10)||0)-this.margins.top,d.left+(h?Math.max(e.scrollWidth,
|
350
|
+
e.offsetWidth):e.offsetWidth)-(parseInt(b(e).css("borderLeftWidth"),10)||0)-(parseInt(b(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(h?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(b(e).css("borderTopWidth"),10)||0)-(parseInt(b(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(d,e){if(!e)e=this.position;var h=d=="absolute"?1:-1,g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=
|
351
|
+
document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(g[0].tagName);return{top:e.top+this.offset.relative.top*h+this.offset.parent.top*h-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:g.scrollTop())*h),left:e.left+this.offset.relative.left*h+this.offset.parent.left*h-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
|
352
|
+
a?0:g.scrollLeft())*h)}},_generatePosition:function(d){var e=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var a=d.pageX,f=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-
|
353
|
+
this.offset.click.left<this.containment[0])a=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])f=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])a=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])f=this.containment[3]+this.offset.click.top}if(e.grid){f=this.originalPageY+Math.round((f-this.originalPageY)/e.grid[1])*e.grid[1];f=this.containment?!(f-this.offset.click.top<
|
354
|
+
this.containment[1]||f-this.offset.click.top>this.containment[3])?f:!(f-this.offset.click.top<this.containment[1])?f-e.grid[1]:f+e.grid[1]:f;a=this.originalPageX+Math.round((a-this.originalPageX)/e.grid[0])*e.grid[0];a=this.containment?!(a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2])?a:!(a-this.offset.click.left<this.containment[0])?a-e.grid[0]:a+e.grid[0]:a}}return{top:f-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&
|
355
|
+
this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:h.scrollLeft())}},_rearrange:function(d,e,h,g){h?h[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?e.item[0]:e.item[0].nextSibling);this.counter=
|
356
|
+
this.counter?++this.counter:1;var a=this,f=this.counter;window.setTimeout(function(){f==a.counter&&a.refreshPositions(!g)},0)},_clear:function(d,e){this.reverting=false;var h=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var g in this._storedCSS)if(this._storedCSS[g]=="auto"||this._storedCSS[g]=="static")this._storedCSS[g]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();
|
357
|
+
this.fromOutside&&!e&&h.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!e)h.push(function(a){this._trigger("update",a,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){e||h.push(function(a){this._trigger("remove",a,this._uiHash())});for(g=this.containers.length-1;g>=0;g--)if(b.ui.contains(this.containers[g].element[0],
|
358
|
+
this.currentItem[0])&&!e){h.push(function(a){return function(f){a._trigger("receive",f,this._uiHash(this))}}.call(this,this.containers[g]));h.push(function(a){return function(f){a._trigger("update",f,this._uiHash(this))}}.call(this,this.containers[g]))}}for(g=this.containers.length-1;g>=0;g--){e||h.push(function(a){return function(f){a._trigger("deactivate",f,this._uiHash(this))}}.call(this,this.containers[g]));if(this.containers[g].containerCache.over){h.push(function(a){return function(f){a._trigger("out",
|
359
|
+
f,this._uiHash(this))}}.call(this,this.containers[g]));this.containers[g].containerCache.over=0}}this._storedCursor&&b("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger("beforeStop",d,this._uiHash());for(g=0;g<h.length;g++)h[g].call(this,d);this._trigger("stop",d,this._uiHash())}return false}e||
|
360
|
+
this._trigger("beforeStop",d,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!e){for(g=0;g<h.length;g++)h[g].call(this,d);this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(d){var e=d||this;return{helper:e.helper,placeholder:e.placeholder||b([]),position:e.position,
|
361
|
+
originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:d?d.element:null}}});b.extend(b.ui.sortable,{version:"1.8.11"})})(jQuery);
|
362
362
|
(function(b,d){var e=0,h=0;b.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading…</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(g,a){if(g=="selected")this.options.collapsible&&a==this.options.selected||
|
363
363
|
this.select(a);else{this.options[g]=a;this._tabify()}},_tabId:function(g){return g.title&&g.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+ ++e},_sanitizeSelector:function(g){return g.replace(/:/g,"\\:")},_cookie:function(){var g=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++h);return b.cookie.apply(null,[g].concat(b.makeArray(arguments)))},_ui:function(g,a){return{tab:g,panel:a,index:this.anchors.index(g)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var g=
|
364
364
|
b(this);g.html(g.data("label.tabs")).removeData("label.tabs")})},_tabify:function(g){function a(q,r){q.css("display","");!b.support.opacity&&r.opacity&&q[0].style.removeAttribute("filter")}var f=this,i=this.options,j=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=b(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return b("a",this)[0]});this.panels=b([]);this.anchors.each(function(q,r){var s=b(r).attr("href"),u=s.split("#")[0],v;if(u&&(u===location.toString().split("#")[0]||
|
@@ -379,7 +379,7 @@ if(f.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(g+(g+1<this
|
|
379
379
|
this._ui(this.anchors[g],this.panels[g]));return this}},disable:function(g){g=this._getIndex(g);var a=this.options;if(g!=a.selected){this.lis.eq(g).addClass("ui-state-disabled");a.disabled.push(g);a.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[g],this.panels[g]))}return this},select:function(g){g=this._getIndex(g);if(g==-1)if(this.options.collapsible&&this.options.selected!=-1)g=this.options.selected;else return this;this.anchors.eq(g).trigger(this.options.event+".tabs");return this},
|
380
380
|
load:function(g){g=this._getIndex(g);var a=this,f=this.options,i=this.anchors.eq(g)[0],j=b.data(i,"load.tabs");this.abort();if(!j||this.element.queue("tabs").length!==0&&b.data(i,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(g).addClass("ui-state-processing");if(f.spinner){var l=b("span",i);l.data("label.tabs",l.html()).html(f.spinner)}this.xhr=b.ajax(b.extend({},f.ajaxOptions,{url:j,success:function(o,m){a.element.find(a._sanitizeSelector(i.hash)).html(o);a._cleanup();f.cache&&b.data(i,
|
381
381
|
"cache.tabs",true);a._trigger("load",null,a._ui(a.anchors[g],a.panels[g]));try{f.ajaxOptions.success(o,m)}catch(k){}},error:function(o,m){a._cleanup();a._trigger("load",null,a._ui(a.anchors[g],a.panels[g]));try{f.ajaxOptions.error(o,m,g,i)}catch(k){}}}));a.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},
|
382
|
-
url:function(g,a){this.anchors.eq(g).removeData("cache.tabs").data("load.tabs",a);return this},length:function(){return this.anchors.length}});b.extend(b.ui.tabs,{version:"
|
382
|
+
url:function(g,a){this.anchors.eq(g).removeData("cache.tabs").data("load.tabs",a);return this},length:function(){return this.anchors.length}});b.extend(b.ui.tabs,{version:"1.8.11"});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(g,a){var f=this,i=this.options,j=f._rotate||(f._rotate=function(o){clearTimeout(f.rotation);f.rotation=setTimeout(function(){var m=i.selected;f.select(++m<f.anchors.length?m:0)},g);o&&o.stopPropagation()}),l=f._unrotate||(f._unrotate=!a?function(o){o.clientX&&
|
383
383
|
f.rotate(null)}:function(){t=i.selected;j()});if(g){this.element.bind("tabsshow",j);this.anchors.bind(i.event+".tabs",l);j()}else{clearTimeout(f.rotation);this.element.unbind("tabsshow",j);this.anchors.unbind(i.event+".tabs",l);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
|
384
384
|
jQuery.effects||function(b,d){function e(m){var k;if(m&&m.constructor==Array&&m.length==3)return m;if(k=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(m))return[parseInt(k[1],10),parseInt(k[2],10),parseInt(k[3],10)];if(k=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(m))return[parseFloat(k[1])*2.55,parseFloat(k[2])*2.55,parseFloat(k[3])*2.55];if(k=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(m))return[parseInt(k[1],
|
385
385
|
16),parseInt(k[2],16),parseInt(k[3],16)];if(k=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(m))return[parseInt(k[1]+k[1],16),parseInt(k[2]+k[2],16),parseInt(k[3]+k[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(m))return j.transparent;return j[b.trim(m).toLowerCase()]}function h(){var m=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,k={},n,p;if(m&&m.length&&m[0]&&m[m[0]])for(var q=m.length;q--;){n=m[q];if(typeof m[n]=="string"){p=n.replace(/\-(\w)/g,function(r,s){return s.toUpperCase()});
|
@@ -390,7 +390,7 @@ b.curCSS(p,q);if(r!=""&&r!="transparent"||b.nodeName(p,"body"))break;q="backgrou
|
|
390
390
|
211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},l=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.effects.animateClass=function(m,k,n,
|
391
391
|
p){if(b.isFunction(n)){p=n;n=null}return this.queue("fx",function(){var q=b(this),r=q.attr("style")||" ",s=g(h.call(this)),u,v=q.attr("className");b.each(l,function(w,x){m[x]&&q[x+"Class"](m[x])});u=g(h.call(this));q.attr("className",v);q.animate(a(s,u),k,n,function(){b.each(l,function(w,x){m[x]&&q[x+"Class"](m[x])});if(typeof q.attr("style")=="object"){q.attr("style").cssText="";q.attr("style").cssText=r}else q.attr("style",r);p&&p.apply(this,arguments)});s=b.queue(this);u=s.splice(s.length-1,1)[0];
|
392
392
|
s.splice(1,0,u);b.dequeue(this)})};b.fn.extend({_addClass:b.fn.addClass,addClass:function(m,k,n,p){return k?b.effects.animateClass.apply(this,[{add:m},k,n,p]):this._addClass(m)},_removeClass:b.fn.removeClass,removeClass:function(m,k,n,p){return k?b.effects.animateClass.apply(this,[{remove:m},k,n,p]):this._removeClass(m)},_toggleClass:b.fn.toggleClass,toggleClass:function(m,k,n,p,q){return typeof k=="boolean"||k===d?n?b.effects.animateClass.apply(this,[k?{add:m}:{remove:m},n,p,q]):this._toggleClass(m,
|
393
|
-
k):b.effects.animateClass.apply(this,[{toggle:m},k,n,p])},switchClass:function(m,k,n,p,q){return b.effects.animateClass.apply(this,[{add:k,remove:m},n,p,q])}});b.extend(b.effects,{version:"
|
393
|
+
k):b.effects.animateClass.apply(this,[{toggle:m},k,n,p])},switchClass:function(m,k,n,p,q){return b.effects.animateClass.apply(this,[{add:k,remove:m},n,p,q])}});b.extend(b.effects,{version:"1.8.11",save:function(m,k){for(var n=0;n<k.length;n++)k[n]!==null&&m.data("ec.storage."+k[n],m[0].style[k[n]])},restore:function(m,k){for(var n=0;n<k.length;n++)k[n]!==null&&m.css(k[n],m.data("ec.storage."+k[n]))},setMode:function(m,k){if(k=="toggle")k=m.is(":hidden")?"show":"hide";return k},getBaseline:function(m,
|
394
394
|
k){var n,p;switch(m[0]){case "top":n=0;break;case "middle":n=0.5;break;case "bottom":n=1;break;default:n=m[0]/k.height}switch(m[1]){case "left":p=0;break;case "center":p=0.5;break;case "right":p=1;break;default:p=m[1]/k.width}return{x:p,y:n}},createWrapper:function(m){if(m.parent().is(".ui-effects-wrapper"))return m.parent();var k={width:m.outerWidth(true),height:m.outerHeight(true),"float":m.css("float")},n=b("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",
|
395
395
|
border:"none",margin:0,padding:0});m.wrap(n);n=m.parent();if(m.css("position")=="static"){n.css({position:"relative"});m.css({position:"relative"})}else{b.extend(k,{position:m.css("position"),zIndex:m.css("z-index")});b.each(["top","left","bottom","right"],function(p,q){k[q]=m.css(q);if(isNaN(parseInt(k[q],10)))k[q]="auto"});m.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return n.css(k).show()},removeWrapper:function(m){if(m.parent().is(".ui-effects-wrapper"))return m.parent().replaceWith(m);
|
396
396
|
return m},setTransition:function(m,k,n,p){p=p||{};b.each(k,function(q,r){unit=m.cssUnit(r);if(unit[0]>0)p[r]=unit[0]*n+unit[1]});return p}});b.fn.extend({effect:function(m){var k=f.apply(this,arguments),n={options:k[1],duration:k[2],callback:k[3]};k=n.options.mode;var p=b.effects[m];if(b.fx.off||!p)return k?this[k](n.duration,n.callback):this.each(function(){n.callback&&n.callback.call(this)});return p.call(this,n)},_show:b.fn.show,show:function(m){if(i(m))return this._show.apply(this,arguments);
|
@@ -1,157 +1,92 @@
|
|
1
|
-
/* DSt:
|
2
|
-
a simple, agnostic DOM Storage library.
|
3
|
-
http://github.com/gamache/DSt
|
4
|
-
|
5
|
-
AUTHORSHIP:
|
6
|
-
copyright 2010 pete gamache gamache!@#$!@#gmail.com
|
7
|
-
licensed under the MIT License and/or the GPL version 2
|
8
|
-
|
9
|
-
SYNOPSIS:
|
10
|
-
DSt uses the localStorage mechanism to provide per-site, persistent
|
11
|
-
storage of JSON-encodable data.
|
12
|
-
|
13
|
-
USAGE:
|
14
|
-
|
15
|
-
DSt.set(key, value); // sets stored value for given key
|
16
|
-
var value = DSt.get(key); // returns stored value for given key
|
17
|
-
|
18
|
-
DSt.store(input_elt); // stores value of a form input element
|
19
|
-
DSt.recall(input_elt); // recalls stored value of a form input elt
|
20
|
-
|
21
|
-
DSt.store_form(form_elt); // runs DSt.store(elt) on each form input
|
22
|
-
DSt.populate_form(form_elt); // runs DSt.recall(elt) on each form input
|
23
|
-
|
24
|
-
Element IDs may always be given in place of the elements themselves.
|
25
|
-
Values handled by DSt.get/DSt.set can be anything JSON-encodable.
|
26
|
-
|
27
|
-
You may use jQuery.DSt or $.DSt instead of DST if you're using
|
28
|
-
jquery.dst.js.
|
29
|
-
*/
|
30
|
-
|
31
1
|
jQuery.DSt = (function() {
|
32
|
-
var a = {
|
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
|
-
a.set(key, elt.checked ? 1 : 0);
|
2
|
+
var a = {version:0.002005,get:function(b) {
|
3
|
+
var c = localStorage.getItem(b);
|
4
|
+
if (c === undefined || c === null) {
|
5
|
+
c = "null"
|
6
|
+
} else {
|
7
|
+
c = c.toString()
|
8
|
+
}
|
9
|
+
return JSON.parse(c)
|
10
|
+
},set:function(b, c) {
|
11
|
+
return localStorage.setItem(b, JSON.stringify(c))
|
12
|
+
},store:function(b) {
|
13
|
+
if (typeof(b) == "string") {
|
14
|
+
b = document.getElementById(b)
|
15
|
+
}
|
16
|
+
if (!b || b.name == "") {
|
17
|
+
return this
|
18
|
+
}
|
19
|
+
var c = a._form_elt_key(b);
|
20
|
+
if (b.type == "checkbox") {
|
21
|
+
a.set(c, b.checked ? 1 : 0)
|
22
|
+
} else {
|
23
|
+
if (b.type == "radio") {
|
24
|
+
a.set(c, a._radio_value(b))
|
25
|
+
} else {
|
26
|
+
a.set(c, b.value || "")
|
58
27
|
}
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
return this
|
67
|
-
}
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
else if (elt.type == 'radio') {
|
80
|
-
if (elt.value == stored_value) elt.checked = true;
|
81
|
-
}
|
82
|
-
else {
|
83
|
-
elt.value = stored_value || '';
|
28
|
+
}
|
29
|
+
return this
|
30
|
+
},recall:function(b) {
|
31
|
+
if (typeof(b) == "string") {
|
32
|
+
b = document.getElementById(b)
|
33
|
+
}
|
34
|
+
if (!b || b.name == "") {
|
35
|
+
return this
|
36
|
+
}
|
37
|
+
var c = a._form_elt_key(b);
|
38
|
+
var d = a.get(c);
|
39
|
+
if (b.type == "checkbox") {
|
40
|
+
b.checked = !!d
|
41
|
+
} else {
|
42
|
+
if (b.type == "radio") {
|
43
|
+
if (b.value == d) {
|
44
|
+
b.checked = true
|
45
|
+
}
|
46
|
+
} else {
|
47
|
+
b.value = d || ""
|
84
48
|
}
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
}
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
if (
|
98
|
-
|
99
|
-
|
100
|
-
var radios = radio_elt.form.elements[radio_elt.name];
|
101
|
-
var nradios = radios.length;
|
102
|
-
var value = null;
|
103
|
-
for (var i = 0; i < nradios; i++) {
|
104
|
-
if (radios[i].checked) value = radios[i].value;
|
49
|
+
}
|
50
|
+
return this
|
51
|
+
},_form_elt_key:function(b) {
|
52
|
+
return"_form_" + b.form.name + "_field_" + b.name
|
53
|
+
},_radio_value:function(e) {
|
54
|
+
if (typeof(e) == "string") {
|
55
|
+
e = document.getElementById(e)
|
56
|
+
}
|
57
|
+
var f = e.form.elements[e.name];
|
58
|
+
var b = f.length;
|
59
|
+
var d = null;
|
60
|
+
for (var c = 0; c < b; c++) {
|
61
|
+
if (f[c].checked) {
|
62
|
+
d = f[c].value
|
105
63
|
}
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
var nelts = form.elements.length;
|
122
|
-
for (var i = 0; i < nelts; i++) {
|
123
|
-
var node = form.elements[i];
|
124
|
-
if (node.tagName == 'TEXTAREA' ||
|
125
|
-
node.tagName == 'INPUT' &&
|
126
|
-
node.type != 'file' &&
|
127
|
-
node.type != 'button' &&
|
128
|
-
node.type != 'image' &&
|
129
|
-
node.type != 'password' &&
|
130
|
-
node.type != 'submit' &&
|
131
|
-
node.type != 'reset') {
|
132
|
-
fn(node);
|
133
|
-
}
|
64
|
+
}
|
65
|
+
return d
|
66
|
+
},recall_form:function(b) {
|
67
|
+
return a._apply_fn_to_form_inputs(b, a.recall)
|
68
|
+
},store_form:function(b) {
|
69
|
+
return a._apply_fn_to_form_inputs(b, a.store)
|
70
|
+
},_apply_fn_to_form_inputs:function(e, c) {
|
71
|
+
if (typeof(e) == "string") {
|
72
|
+
e = document.getElementById(e)
|
73
|
+
}
|
74
|
+
var f = e.elements.length;
|
75
|
+
for (var b = 0; b < f; b++) {
|
76
|
+
var d = e.elements[b];
|
77
|
+
if (d.tagName == "TEXTAREA" || d.tagName == "INPUT" && d.type != "file" && d.type != "button" && d.type != "image" && d.type != "password" && d.type != "submit" && d.type != "reset") {
|
78
|
+
c(d)
|
134
79
|
}
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
_storage_types: function () {
|
143
|
-
var st = '';
|
144
|
-
for (var i in window) {
|
145
|
-
if (i == 'sessionStorage' || i == 'globalStorage' ||
|
146
|
-
i == 'localStorage' || i == 'openDatabase') {
|
147
|
-
st += st ? (' ' + i) : i;
|
148
|
-
}
|
80
|
+
}
|
81
|
+
return this
|
82
|
+
},_storage_types:function() {
|
83
|
+
var b = "";
|
84
|
+
for (var c in window) {
|
85
|
+
if (c == "sessionStorage" || c == "globalStorage" || c == "localStorage" || c == "openDatabase") {
|
86
|
+
b += b ? (" " + c) : c
|
149
87
|
}
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
return a;
|
156
|
-
})();
|
157
|
-
|
88
|
+
}
|
89
|
+
return b
|
90
|
+
},javascript_accepts_trailing_comma:false};
|
91
|
+
return a
|
92
|
+
})();
|