survivalkit 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +4 -0
- data/README.markdown +81 -0
- data/VERSION +1 -0
- data/lib/survivalkit.rb +9 -0
- data/stylesheets/survivalkit/extend/_all.sass +1 -0
- data/stylesheets/survivalkit/extend/_helpers.sass +20 -0
- data/stylesheets/survivalkit/functions/_all.sass +3 -0
- data/stylesheets/survivalkit/functions/_calculations.sass +19 -0
- data/stylesheets/survivalkit/functions/_color.sass +7 -0
- data/stylesheets/survivalkit/functions/_modular-scale.sass +142 -0
- data/stylesheets/survivalkit/mixins/_all.sass +5 -0
- data/stylesheets/survivalkit/mixins/_helpers.sass +29 -0
- data/stylesheets/survivalkit/mixins/_layout.sass +19 -0
- data/stylesheets/survivalkit/mixins/_sfx.sass +199 -0
- data/stylesheets/survivalkit/mixins/_typography.sass +77 -0
- data/stylesheets/survivalkit/mixins/_ui.sass +49 -0
- data/stylesheets/survivalkit/readme.markdown +1 -0
- data/stylesheets/survivalkit/reset/_meyer-reset.sass +33 -0
- data/stylesheets/survivalkit/reset/_normalize.sass +345 -0
- data/stylesheets/survivalkit/reset/_reset.sass +18 -0
- data/stylesheets/survivalkit/survival_kit/_survival-kit.sass +52 -0
- data/stylesheets/survivalkit/variables/_all.sass +2 -0
- data/stylesheets/survivalkit/variables/_color_names.sass +149 -0
- data/stylesheets/survivalkit/variables/_color_schemes.sass +54 -0
- data/templates/project/files/apple-touch-icon.png +0 -0
- data/templates/project/files/crossdomain.xml +25 -0
- data/templates/project/files/favicon.ico +0 -0
- data/templates/project/files/google.yml +22 -0
- data/templates/project/files/htaccess.htaccess +478 -0
- data/templates/project/files/html/404.html +22 -0
- data/templates/project/files/html/formalize_jquery_demo.html +288 -0
- data/templates/project/files/html/formalize_jquery_disabled.html +288 -0
- data/templates/project/files/html/formalize_jquery_errors.html +288 -0
- data/templates/project/files/html/index.html +63 -0
- data/templates/project/files/html/survivalkit/elements-common.html +549 -0
- data/templates/project/files/html/survivalkit/elements-html5.html +2959 -0
- data/templates/project/files/html/survivalkit/elements-typography.html +196 -0
- data/templates/project/files/html/survivalkit/elements-ui-patterns-drupal.html +625 -0
- data/templates/project/files/html/survivalkit/elements-ui-patterns.html +151 -0
- data/templates/project/files/html/survivalkit/index.html +94 -0
- data/templates/project/files/html/survivalkit/styletile/index.html +1 -0
- data/templates/project/files/html/survivalkit/styletile/styletile.html +168 -0
- data/templates/project/files/humans.txt +43 -0
- data/templates/project/files/robots.txt +5 -0
- data/templates/project/ie.sass +3 -0
- data/templates/project/kit/kit-source.jquery.js +21 -0
- data/templates/project/libs/dd_belatedpng.js +13 -0
- data/templates/project/libs/formalize/README.txt +11 -0
- data/templates/project/libs/formalize/dojo.formalize.js +174 -0
- data/templates/project/libs/formalize/extjs.formalize.js +168 -0
- data/templates/project/libs/formalize/jquery.formalize.js +158 -0
- data/templates/project/libs/formalize/mootools.formalize.js +163 -0
- data/templates/project/libs/formalize/prototype.formalize.js +171 -0
- data/templates/project/libs/formalize/yui.formalize.js +168 -0
- data/templates/project/libs/jquery-1.6.js +8865 -0
- data/templates/project/libs/jquery-1.6.min.js +16 -0
- data/templates/project/libs/modernizr-2.0.min.js +4 -0
- data/templates/project/libs/mootools-core-1.3.1-full-compat-yc.js +485 -0
- data/templates/project/libs/plugins.js +16 -0
- data/templates/project/libs/respond.min.js +7 -0
- data/templates/project/libs/selectivizr.js +5 -0
- data/templates/project/manifest.rb +78 -0
- data/templates/project/partials/01-variables/_all.sass +6 -0
- data/templates/project/partials/01-variables/_base.sass +29 -0
- data/templates/project/partials/01-variables/_colors.sass +21 -0
- data/templates/project/partials/01-variables/_fonts.sass +22 -0
- data/templates/project/partials/01-variables/_grids-all.sass +10 -0
- data/templates/project/partials/02-extend/_all.sass +1 -0
- data/templates/project/partials/02-extend/_typography.sass +39 -0
- data/templates/project/partials/03-defaults/_all.sass +10 -0
- data/templates/project/partials/03-defaults/_common.sass +40 -0
- data/templates/project/partials/03-defaults/_font-face.sass +3 -0
- data/templates/project/partials/03-defaults/markup/_edits.sass +6 -0
- data/templates/project/partials/03-defaults/markup/_grouping.sass +52 -0
- data/templates/project/partials/03-defaults/markup/_headers.sass +33 -0
- data/templates/project/partials/03-defaults/markup/_images.sass +14 -0
- data/templates/project/partials/03-defaults/markup/_semantics.sass +104 -0
- data/templates/project/partials/03-defaults/markup/_tables.sass +48 -0
- data/templates/project/partials/03-defaults/markup/forms/_form-defaults.sass +67 -0
- data/templates/project/partials/03-defaults/markup/forms/_formalize.sass +261 -0
- data/templates/project/partials/04-grids/_grids-blueprint.sass +20 -0
- data/templates/project/partials/04-grids/_grids-susy.sass +38 -0
- data/templates/project/partials/05-ui-patterns/_common.sass +26 -0
- data/templates/project/partials/05-ui-patterns/drupal/_ui-patterns.sass +83 -0
- data/templates/project/partials/06-sprites/_sprites.sass +20 -0
- data/templates/project/partials/07-layout-design/_design.sass +6 -0
- data/templates/project/partials/07-layout-design/_layout.sass +8 -0
- data/templates/project/partials/08-styletile/_tile-design.sass +139 -0
- data/templates/project/partials/08-styletile/_tile-layout.sass +81 -0
- data/templates/project/partials/09-responsive/_responsive-blueprint.sass +139 -0
- data/templates/project/partials/09-responsive/_responsive-susy.sass +106 -0
- data/templates/project/partials/10-media/_print.sass +57 -0
- data/templates/project/partials/11-browser-adjustments/_ie.sass +26 -0
- data/templates/project/partials/11-browser-adjustments/_modernizr.sass +8 -0
- data/templates/project/partials/11-browser-adjustments/_selectivizr.sass +0 -0
- data/templates/project/partials/readme.markdown +3 -0
- data/templates/project/readme.markdown +3 -0
- data/templates/project/script.js +26 -0
- data/templates/project/selectivizr.sass +8 -0
- data/templates/project/sources/BigText/README.markdown +128 -0
- data/templates/project/sources/BigText/artifacts/output.html +32 -0
- data/templates/project/sources/BigText/bigtext.js +242 -0
- data/templates/project/sources/BigText/demo/bigtextWizard.css +129 -0
- data/templates/project/sources/BigText/demo/bigtextWizard.js +373 -0
- data/templates/project/sources/BigText/demo/css/flexbox.css +105 -0
- data/templates/project/sources/BigText/demo/css/images/button_bg.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/datepicker.gif +0 -0
- data/templates/project/sources/BigText/demo/css/images/icon_sprite.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/progress_bar.gif +0 -0
- data/templates/project/sources/BigText/demo/css/images/slider_h_bg.gif +0 -0
- data/templates/project/sources/BigText/demo/css/images/slider_handles.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/slider_v_bg.gif +0 -0
- data/templates/project/sources/BigText/demo/css/images/the_gradient.gif +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-icons_222222_256x240.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-icons_228ef1_256x240.png +0 -0
- data/templates/project/sources/BigText/demo/css/images/ui-icons_ffffff_256x240.png +0 -0
- data/templates/project/sources/BigText/demo/css/jquery-ui-1.8rc3.custom.css +519 -0
- data/templates/project/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.eot +0 -0
- data/templates/project/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.svg +223 -0
- data/templates/project/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.ttf +0 -0
- data/templates/project/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.woff +0 -0
- data/templates/project/sources/BigText/demo/css/league-gothic/stylesheet.css +12 -0
- data/templates/project/sources/BigText/demo/index.html +95 -0
- data/templates/project/sources/BigText/demo/js/jquery.ba-throttle-debounce.js +252 -0
- data/templates/project/sources/BigText/demo/js/jquery.ba-throttle-debounce.min.js +9 -0
- data/templates/project/sources/BigText/demo/js/jquery.smartresize.js +41 -0
- data/templates/project/sources/BigText/demo/js/modernizr-1.6.js +892 -0
- data/templates/project/sources/BigText/demo/js/modernizr-1.6.min.js +30 -0
- data/templates/project/sources/BigText/demo/resizeDemoSmartResize.html +37 -0
- data/templates/project/sources/BigText/demo/resizeDemoThrottle.html +38 -0
- data/templates/project/sources/BigText/demo/simpleDemo.html +42 -0
- data/templates/project/sources/BigText/demo/simpleDemoDiv.html +26 -0
- data/templates/project/sources/BigText/test.bat +4 -0
- data/templates/project/sources/BigText/test.sh +5 -0
- data/templates/project/sources/BigText/test/bigtext.conf +6 -0
- data/templates/project/sources/BigText/test/bigtextTest.js +192 -0
- data/templates/project/sources/BigText/test/lib/JsTestDriver-1.2.2-custom.jar +0 -0
- data/templates/project/sources/BigText/test/lib/jquery-1.4.2.js +6240 -0
- data/templates/project/sources/BigText/test/lib/launch-safari.sh +4 -0
- data/templates/project/sources/Dynamic-Carousel/demo.html +92 -0
- data/templates/project/sources/Dynamic-Carousel/plugin.js +191 -0
- data/templates/project/sources/Dynamic-Carousel/readme.md +10 -0
- data/templates/project/sources/Geared-Scrolling/README.md +31 -0
- data/templates/project/sources/Geared-Scrolling/css/specific.css +88 -0
- data/templates/project/sources/Geared-Scrolling/images/col1.png +0 -0
- data/templates/project/sources/Geared-Scrolling/images/col2.png +0 -0
- data/templates/project/sources/Geared-Scrolling/images/col3.png +0 -0
- data/templates/project/sources/Geared-Scrolling/images/header.png +0 -0
- data/templates/project/sources/Geared-Scrolling/index.html +32 -0
- data/templates/project/sources/Geared-Scrolling/js/init.js +11 -0
- data/templates/project/sources/Geared-Scrolling/js/jquery.heyday.gearedscrolling.js +283 -0
- data/templates/project/sources/Lettering.js/README.md +58 -0
- data/templates/project/sources/Lettering.js/examples/index.html +135 -0
- data/templates/project/sources/Lettering.js/examples/style.css +171 -0
- data/templates/project/sources/Lettering.js/jquery.lettering.js +66 -0
- data/templates/project/sources/PaintbrushJS/common.js +245 -0
- data/templates/project/sources/PaintbrushJS/demo/css/playground.css +334 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/165.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/bee.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/bird.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/helmets.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/jordan.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/leaves.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/lighthouse.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/louvre.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/pods.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/redbarn.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/road.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/sign.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/staples.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/stones.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/tear.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/500/window.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/bg.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/bg-highlight.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/bg.jpg +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/byline.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/current.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/divider.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/forkme.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/images/site/heading.png +0 -0
- data/templates/project/sources/PaintbrushJS/demo/index.html +171 -0
- data/templates/project/sources/PaintbrushJS/demo/script/common.js +245 -0
- data/templates/project/sources/PaintbrushJS/demo/script/paintbrush.js +607 -0
- data/templates/project/sources/PaintbrushJS/demo/script/playground.js +357 -0
- data/templates/project/sources/PaintbrushJS/demo/script/timing.js +23 -0
- data/templates/project/sources/PaintbrushJS/demo/usage.html +183 -0
- data/templates/project/sources/PaintbrushJS/paintbrush.js +595 -0
- data/templates/project/sources/Respond/README.md +76 -0
- data/templates/project/sources/Respond/respond.min.js +2 -0
- data/templates/project/sources/Respond/respond.src.js +286 -0
- data/templates/project/sources/Respond/test/test.css +61 -0
- data/templates/project/sources/Respond/test/test.html +20 -0
- data/templates/project/sources/Respond/test/test2.css +8 -0
- data/templates/project/sources/Respond/test/unit/index.html +28 -0
- data/templates/project/sources/Respond/test/unit/test.css +56 -0
- data/templates/project/sources/Respond/test/unit/test2.css +5 -0
- data/templates/project/sources/Respond/test/unit/tests.js +97 -0
- data/templates/project/sources/Sticky-Footer-jQuery-Plugin/README.md +27 -0
- data/templates/project/sources/Sticky-Footer-jQuery-Plugin/jquery.heyday.stickyfooter.js +154 -0
- data/templates/project/sources/flexie/README.md +142 -0
- data/templates/project/sources/flexie/demo/css/box-flex.css +30 -0
- data/templates/project/sources/flexie/demo/index.html +108 -0
- data/templates/project/sources/flexie/dist/flexie.min.js +33 -0
- data/templates/project/sources/flexie/src/flexie.js +1872 -0
- data/templates/project/sources/flexie/test/css/demo.css +34 -0
- data/templates/project/sources/flexie/test/css/test.css +141 -0
- data/templates/project/sources/flexie/test/index.html +54 -0
- data/templates/project/sources/flexie/vendor/google-compiler/compiler.jar +0 -0
- data/templates/project/sources/flexie/vendor/yuicompressor/yuicompressor-2.4.2.jar +0 -0
- data/templates/project/sources/flickrbomb/css/app.css +41 -0
- data/templates/project/sources/flickrbomb/css/flickrbomb.css +38 -0
- data/templates/project/sources/flickrbomb/css/global.css +0 -0
- data/templates/project/sources/flickrbomb/demo.html +169 -0
- data/templates/project/sources/flickrbomb/images/bg-clouds.jpg +0 -0
- data/templates/project/sources/flickrbomb/images/bg-ground.jpg +0 -0
- data/templates/project/sources/flickrbomb/images/bomb.png +0 -0
- data/templates/project/sources/flickrbomb/images/bomber.jpg +0 -0
- data/templates/project/sources/flickrbomb/images/old.gif +0 -0
- data/templates/project/sources/flickrbomb/images/setupIcon.png +0 -0
- data/templates/project/sources/flickrbomb/js/app.js +28 -0
- data/templates/project/sources/flickrbomb/js/backbone-localstorage.js +94 -0
- data/templates/project/sources/flickrbomb/js/backbone.js +1011 -0
- data/templates/project/sources/flickrbomb/js/flickrbomb-demo.js +310 -0
- data/templates/project/sources/flickrbomb/js/flickrbomb.js +307 -0
- data/templates/project/sources/flickrbomb/js/underscore.js +713 -0
- data/templates/project/sources/formalize/README.txt +23 -0
- data/templates/project/sources/formalize/assets/css/_formalize.sass +274 -0
- data/templates/project/sources/formalize/assets/css/demo.css +47 -0
- data/templates/project/sources/formalize/assets/css/formalize.css +311 -0
- data/templates/project/sources/formalize/assets/css/reset.css +171 -0
- data/templates/project/sources/formalize/assets/css/text.css +81 -0
- data/templates/project/sources/formalize/assets/images/button.png +0 -0
- data/templates/project/sources/formalize/assets/images/select_arrow.gif +0 -0
- data/templates/project/sources/formalize/assets/js/dojo.formalize.js +174 -0
- data/templates/project/sources/formalize/assets/js/dojo.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/extjs.formalize.js +168 -0
- data/templates/project/sources/formalize/assets/js/extjs.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/jquery.formalize.js +158 -0
- data/templates/project/sources/formalize/assets/js/jquery.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/mootools.formalize.js +163 -0
- data/templates/project/sources/formalize/assets/js/mootools.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/prototype.formalize.js +171 -0
- data/templates/project/sources/formalize/assets/js/prototype.formalize.min.js +1 -0
- data/templates/project/sources/formalize/assets/js/yui.formalize.js +168 -0
- data/templates/project/sources/formalize/assets/js/yui.formalize.min.js +1 -0
- data/templates/project/sources/formalize/demo.html +144 -0
- data/templates/project/sources/formalize/dojo_demo.html +213 -0
- data/templates/project/sources/formalize/dojo_disabled.html +213 -0
- data/templates/project/sources/formalize/dojo_errors.html +213 -0
- data/templates/project/sources/formalize/extjs_demo.html +213 -0
- data/templates/project/sources/formalize/extjs_disabled.html +213 -0
- data/templates/project/sources/formalize/extjs_errors.html +213 -0
- data/templates/project/sources/formalize/jquery_demo.html +213 -0
- data/templates/project/sources/formalize/jquery_disabled.html +213 -0
- data/templates/project/sources/formalize/jquery_errors.html +213 -0
- data/templates/project/sources/formalize/mootools_demo.html +213 -0
- data/templates/project/sources/formalize/mootools_disabled.html +213 -0
- data/templates/project/sources/formalize/mootools_errors.html +213 -0
- data/templates/project/sources/formalize/prototype_demo.html +213 -0
- data/templates/project/sources/formalize/prototype_disabled.html +213 -0
- data/templates/project/sources/formalize/prototype_errors.html +213 -0
- data/templates/project/sources/formalize/unstyled.html +210 -0
- data/templates/project/sources/formalize/yui_demo.html +213 -0
- data/templates/project/sources/formalize/yui_disabled.html +213 -0
- data/templates/project/sources/formalize/yui_errors.html +213 -0
- data/templates/project/sources/html5-boilerplate/404.html +38 -0
- data/templates/project/sources/html5-boilerplate/README.md +228 -0
- data/templates/project/sources/html5-boilerplate/apple-touch-icon-114x114-precomposed.png +0 -0
- data/templates/project/sources/html5-boilerplate/apple-touch-icon-57x57-precomposed.png +0 -0
- data/templates/project/sources/html5-boilerplate/apple-touch-icon-72x72-precomposed.png +0 -0
- data/templates/project/sources/html5-boilerplate/apple-touch-icon-precomposed.png +0 -0
- data/templates/project/sources/html5-boilerplate/apple-touch-icon.png +0 -0
- data/templates/project/sources/html5-boilerplate/build/build.xml +821 -0
- data/templates/project/sources/html5-boilerplate/build/config/default.properties +80 -0
- data/templates/project/sources/html5-boilerplate/build/config/project.properties +56 -0
- data/templates/project/sources/html5-boilerplate/build/createproject.sh +50 -0
- data/templates/project/sources/html5-boilerplate/build/runbuildscript.bat +5 -0
- data/templates/project/sources/html5-boilerplate/build/tools/ant-contrib-1.0b3.jar +0 -0
- data/templates/project/sources/html5-boilerplate/build/tools/htmlcompressor-1.1.jar +0 -0
- data/templates/project/sources/html5-boilerplate/build/tools/jpegtran.exe +0 -0
- data/templates/project/sources/html5-boilerplate/build/tools/optipng-0.6.4-exe/LICENSE.txt +21 -0
- data/templates/project/sources/html5-boilerplate/build/tools/optipng-0.6.4-exe/optipng.exe +0 -0
- data/templates/project/sources/html5-boilerplate/build/tools/yuicompressor-2.4.5.jar +0 -0
- data/templates/project/sources/html5-boilerplate/crossdomain.xml +25 -0
- data/templates/project/sources/html5-boilerplate/css/handheld.css +8 -0
- data/templates/project/sources/html5-boilerplate/css/style.css +263 -0
- data/templates/project/sources/html5-boilerplate/demo/elements.html +531 -0
- data/templates/project/sources/html5-boilerplate/demo/hack.css +85 -0
- data/templates/project/sources/html5-boilerplate/demo/hack2.css +41 -0
- data/templates/project/sources/html5-boilerplate/demo/internet_explorer.png +0 -0
- data/templates/project/sources/html5-boilerplate/demo/test_tubes.png +0 -0
- data/templates/project/sources/html5-boilerplate/demo/tests.html +313 -0
- data/templates/project/sources/html5-boilerplate/favicon.ico +0 -0
- data/templates/project/sources/html5-boilerplate/humans.txt +43 -0
- data/templates/project/sources/html5-boilerplate/index.html +80 -0
- data/templates/project/sources/html5-boilerplate/js/libs/dd_belatedpng.js +13 -0
- data/templates/project/sources/html5-boilerplate/js/libs/jquery-1.5.2.js +8374 -0
- data/templates/project/sources/html5-boilerplate/js/libs/jquery-1.5.2.min.js +16 -0
- data/templates/project/sources/html5-boilerplate/js/libs/modernizr-1.7.min.js +2 -0
- data/templates/project/sources/html5-boilerplate/js/plugins.js +16 -0
- data/templates/project/sources/html5-boilerplate/js/script.js +26 -0
- data/templates/project/sources/html5-boilerplate/robots.txt +5 -0
- data/templates/project/sources/html5-boilerplate/test/index.html +31 -0
- data/templates/project/sources/html5-boilerplate/test/qunit/qunit.css +148 -0
- data/templates/project/sources/html5-boilerplate/test/qunit/qunit.js +1265 -0
- data/templates/project/sources/html5-boilerplate/test/tests.js +27 -0
- data/templates/project/sources/iSwipe-jQuery-Plugin/README.md +26 -0
- data/templates/project/sources/iSwipe-jQuery-Plugin/jquery.heyday.iswipe.js +126 -0
- data/templates/project/sources/infinite-scroll/ajax-loader.gif +0 -0
- data/templates/project/sources/infinite-scroll/jquery.infinitescroll.js +425 -0
- data/templates/project/sources/infinite-scroll/jquery.infinitescroll.min.js +8 -0
- data/templates/project/sources/infinite-scroll/site/assets/anivers_regular.otf +0 -0
- data/templates/project/sources/infinite-scroll/site/assets/buttons.psd +0 -0
- data/templates/project/sources/infinite-scroll/site/assets/logo.psd +0 -0
- data/templates/project/sources/infinite-scroll/site/assets/mobius-strip2.ai +2266 -15
- data/templates/project/sources/infinite-scroll/site/assets/pattern.psd +0 -0
- data/templates/project/sources/infinite-scroll/site/assets/selector spots.psd +0 -0
- data/templates/project/sources/infinite-scroll/site/assets/sites.psd +0 -0
- data/templates/project/sources/infinite-scroll/site/buttons.png +0 -0
- data/templates/project/sources/infinite-scroll/site/infinite-scroll-pattern.gif +0 -0
- data/templates/project/sources/infinite-scroll/site/logo.jpg +0 -0
- data/templates/project/sources/infinite-scroll/site/screens.jpg +0 -0
- data/templates/project/sources/infinite-scroll/site/selectors.jpg +0 -0
- data/templates/project/sources/infinite-scroll/test/test-loadingmsg.html +121 -0
- data/templates/project/sources/infinite-scroll/test/test.html +120 -0
- data/templates/project/sources/infinite-scroll/test/test2.html +70 -0
- data/templates/project/sources/infinite-scroll/test/test3.html +68 -0
- data/templates/project/sources/infinite-scroll/test/trigger.html +140 -0
- data/templates/project/sources/infinite-scroll/test/trigger2.html +80 -0
- data/templates/project/sources/infinite-scroll/test/trigger3.html +80 -0
- data/templates/project/sources/infinite-scroll/wp_infinite_scroll.php +454 -0
- data/templates/project/sources/jquery-lightbox/LICENSE.txt +30 -0
- data/templates/project/sources/jquery-lightbox/README.markdown +8 -0
- data/templates/project/sources/jquery-lightbox/css/lightbox.css +129 -0
- data/templates/project/sources/jquery-lightbox/images/blank.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/close.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/closelabel.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/image-0.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/image-1.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/image-2.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/image-3.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/loading.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/next.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/nextlabel.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/prev.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/prevlabel.gif +0 -0
- data/templates/project/sources/jquery-lightbox/images/thumb-0.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/thumb-1.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/thumb-2.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/images/thumb-3.jpg +0 -0
- data/templates/project/sources/jquery-lightbox/index.html +102 -0
- data/templates/project/sources/jquery-lightbox/jquery.lightbox.js +515 -0
- data/templates/project/sources/jquery-ui/AUTHORS.txt +30 -0
- data/templates/project/sources/jquery-ui/GPL-LICENSE.txt +278 -0
- data/templates/project/sources/jquery-ui/MIT-LICENSE.txt +25 -0
- data/templates/project/sources/jquery-ui/README.md +9 -0
- data/templates/project/sources/jquery-ui/build/build.xml +392 -0
- data/templates/project/sources/jquery-ui/build/build/ant-contrib-0.6.jar +0 -0
- data/templates/project/sources/jquery-ui/build/build/google-compiler-20110320.jar +0 -0
- data/templates/project/sources/jquery-ui/build/build/style.xsl +211 -0
- data/templates/project/sources/jquery-ui/build/build/yuicompressor-2.4.2.jar +0 -0
- data/templates/project/sources/jquery-ui/demos/accordion/collapsible.html +57 -0
- data/templates/project/sources/jquery-ui/demos/accordion/custom-icons.html +69 -0
- data/templates/project/sources/jquery-ui/demos/accordion/default.html +85 -0
- data/templates/project/sources/jquery-ui/demos/accordion/fillspace.html +77 -0
- data/templates/project/sources/jquery-ui/demos/accordion/hoverintent.html +134 -0
- data/templates/project/sources/jquery-ui/demos/accordion/index.html +25 -0
- data/templates/project/sources/jquery-ui/demos/accordion/mouseover.html +57 -0
- data/templates/project/sources/jquery-ui/demos/accordion/no-auto-height.html +58 -0
- data/templates/project/sources/jquery-ui/demos/accordion/sortable.html +83 -0
- data/templates/project/sources/jquery-ui/demos/addClass/default.html +52 -0
- data/templates/project/sources/jquery-ui/demos/addClass/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/animate/default.html +61 -0
- data/templates/project/sources/jquery-ui/demos/animate/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/categories.html +72 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/combobox.html +195 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/custom-data.html +96 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/default.html +65 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/folding.html +63 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/images/jquery_32x32.png +0 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/images/jqueryui_32x32.png +0 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/images/sizzlejs_32x32.png +0 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/images/transparent_1x1.png +0 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/images/ui-anim_basic_16x16.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/index.html +27 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/london.xml +114 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/maxheight.html +79 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/multiple-remote.html +85 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/multiple.html +100 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/remote-jsonp.html +87 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/remote-with-cache.html +60 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/remote.html +60 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/search.php +588 -0
- data/templates/project/sources/jquery-ui/demos/autocomplete/xml.html +73 -0
- data/templates/project/sources/jquery-ui/demos/button/checkbox.html +44 -0
- data/templates/project/sources/jquery-ui/demos/button/default.html +38 -0
- data/templates/project/sources/jquery-ui/demos/button/icons.html +56 -0
- data/templates/project/sources/jquery-ui/demos/button/index.html +23 -0
- data/templates/project/sources/jquery-ui/demos/button/radio.html +39 -0
- data/templates/project/sources/jquery-ui/demos/button/splitbutton.html +78 -0
- data/templates/project/sources/jquery-ui/demos/button/toolbar.html +120 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/alt-field.html +36 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/animation.html +58 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/buttonbar.html +35 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/date-formats.html +47 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/date-range.html +49 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/default.html +33 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/dropdown-month-year.html +36 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/icon-trigger.html +37 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/images/calendar.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/index.html +31 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/inline.html +33 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/localization.html +162 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/min-max.html +33 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/multiple-calendars.html +36 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/other-months.html +37 -0
- data/templates/project/sources/jquery-ui/demos/datepicker/show-week.html +39 -0
- data/templates/project/sources/jquery-ui/demos/demos.css +334 -0
- data/templates/project/sources/jquery-ui/demos/dialog/animated.html +56 -0
- data/templates/project/sources/jquery-ui/demos/dialog/default.html +54 -0
- data/templates/project/sources/jquery-ui/demos/dialog/index.html +23 -0
- data/templates/project/sources/jquery-ui/demos/dialog/modal-confirmation.html +69 -0
- data/templates/project/sources/jquery-ui/demos/dialog/modal-form.html +167 -0
- data/templates/project/sources/jquery-ui/demos/dialog/modal-message.html +71 -0
- data/templates/project/sources/jquery-ui/demos/dialog/modal.html +60 -0
- data/templates/project/sources/jquery-ui/demos/draggable/constrain-movement.html +69 -0
- data/templates/project/sources/jquery-ui/demos/draggable/cursor-style.html +49 -0
- data/templates/project/sources/jquery-ui/demos/draggable/default.html +39 -0
- data/templates/project/sources/jquery-ui/demos/draggable/delay-start.html +45 -0
- data/templates/project/sources/jquery-ui/demos/draggable/events.html +77 -0
- data/templates/project/sources/jquery-ui/demos/draggable/handle.html +50 -0
- data/templates/project/sources/jquery-ui/demos/draggable/index.html +28 -0
- data/templates/project/sources/jquery-ui/demos/draggable/revert.html +44 -0
- data/templates/project/sources/jquery-ui/demos/draggable/scroll.html +51 -0
- data/templates/project/sources/jquery-ui/demos/draggable/snap-to.html +68 -0
- data/templates/project/sources/jquery-ui/demos/draggable/sortable.html +57 -0
- data/templates/project/sources/jquery-ui/demos/draggable/visual-feedback.html +77 -0
- data/templates/project/sources/jquery-ui/demos/droppable/accepted-elements.html +60 -0
- data/templates/project/sources/jquery-ui/demos/droppable/default.html +53 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras2.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras2_min.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras3.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras3_min.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras4.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras4_min.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/images/high_tatras_min.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/droppable/index.html +24 -0
- data/templates/project/sources/jquery-ui/demos/droppable/photo-manager.html +184 -0
- data/templates/project/sources/jquery-ui/demos/droppable/propagation.html +80 -0
- data/templates/project/sources/jquery-ui/demos/droppable/revert.html +61 -0
- data/templates/project/sources/jquery-ui/demos/droppable/shopping-cart.html +101 -0
- data/templates/project/sources/jquery-ui/demos/droppable/visual-feedback.html +78 -0
- data/templates/project/sources/jquery-ui/demos/effect/default.html +109 -0
- data/templates/project/sources/jquery-ui/demos/effect/easing.html +108 -0
- data/templates/project/sources/jquery-ui/demos/effect/index.html +19 -0
- data/templates/project/sources/jquery-ui/demos/hide/default.html +102 -0
- data/templates/project/sources/jquery-ui/demos/hide/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/images/calendar.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/demo-config-on-tile.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/demo-config-on.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/demo-spindown-closed.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/demo-spindown-open.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/icon-docs-info.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/images/pbar-ani.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/index.html +329 -0
- data/templates/project/sources/jquery-ui/demos/menu/contextmenu.html +81 -0
- data/templates/project/sources/jquery-ui/demos/menu/default.html +54 -0
- data/templates/project/sources/jquery-ui/demos/menu/index.html +17 -0
- data/templates/project/sources/jquery-ui/demos/position/cycler.html +120 -0
- data/templates/project/sources/jquery-ui/demos/position/default.html +153 -0
- data/templates/project/sources/jquery-ui/demos/position/images/earth.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/position/images/flight.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/position/images/rocket.jpg +0 -0
- data/templates/project/sources/jquery-ui/demos/position/index.html +19 -0
- data/templates/project/sources/jquery-ui/demos/progressbar/animated.html +44 -0
- data/templates/project/sources/jquery-ui/demos/progressbar/default.html +35 -0
- data/templates/project/sources/jquery-ui/demos/progressbar/images/pbar-ani.gif +0 -0
- data/templates/project/sources/jquery-ui/demos/progressbar/index.html +20 -0
- data/templates/project/sources/jquery-ui/demos/progressbar/resize.html +40 -0
- data/templates/project/sources/jquery-ui/demos/removeClass/default.html +52 -0
- data/templates/project/sources/jquery-ui/demos/removeClass/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/resizable/animate.html +43 -0
- data/templates/project/sources/jquery-ui/demos/resizable/aspect-ratio.html +42 -0
- data/templates/project/sources/jquery-ui/demos/resizable/constrain-area.html +47 -0
- data/templates/project/sources/jquery-ui/demos/resizable/default.html +40 -0
- data/templates/project/sources/jquery-ui/demos/resizable/delay-start.html +52 -0
- data/templates/project/sources/jquery-ui/demos/resizable/helper.html +43 -0
- data/templates/project/sources/jquery-ui/demos/resizable/index.html +28 -0
- data/templates/project/sources/jquery-ui/demos/resizable/max-min.html +45 -0
- data/templates/project/sources/jquery-ui/demos/resizable/snap-to-grid.html +42 -0
- data/templates/project/sources/jquery-ui/demos/resizable/synchronous-resize.html +49 -0
- data/templates/project/sources/jquery-ui/demos/resizable/textarea.html +41 -0
- data/templates/project/sources/jquery-ui/demos/resizable/visual-feedback.html +43 -0
- data/templates/project/sources/jquery-ui/demos/selectable/default.html +50 -0
- data/templates/project/sources/jquery-ui/demos/selectable/display-grid.html +55 -0
- data/templates/project/sources/jquery-ui/demos/selectable/index.html +20 -0
- data/templates/project/sources/jquery-ui/demos/selectable/serialize.html +61 -0
- data/templates/project/sources/jquery-ui/demos/show/default.html +104 -0
- data/templates/project/sources/jquery-ui/demos/show/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/slider/colorpicker.html +95 -0
- data/templates/project/sources/jquery-ui/demos/slider/default.html +37 -0
- data/templates/project/sources/jquery-ui/demos/slider/hotelrooms.html +59 -0
- data/templates/project/sources/jquery-ui/demos/slider/index.html +29 -0
- data/templates/project/sources/jquery-ui/demos/slider/multiple-vertical.html +77 -0
- data/templates/project/sources/jquery-ui/demos/slider/range-vertical.html +51 -0
- data/templates/project/sources/jquery-ui/demos/slider/range.html +52 -0
- data/templates/project/sources/jquery-ui/demos/slider/rangemax.html +50 -0
- data/templates/project/sources/jquery-ui/demos/slider/rangemin.html +51 -0
- data/templates/project/sources/jquery-ui/demos/slider/side-scroll.html +140 -0
- data/templates/project/sources/jquery-ui/demos/slider/slider-vertical.html +52 -0
- data/templates/project/sources/jquery-ui/demos/slider/steps.html +51 -0
- data/templates/project/sources/jquery-ui/demos/slider/tabs.html +67 -0
- data/templates/project/sources/jquery-ui/demos/sortable/connect-lists-through-tabs.html +78 -0
- data/templates/project/sources/jquery-ui/demos/sortable/connect-lists.html +58 -0
- data/templates/project/sources/jquery-ui/demos/sortable/default.html +51 -0
- data/templates/project/sources/jquery-ui/demos/sortable/delay-start.html +67 -0
- data/templates/project/sources/jquery-ui/demos/sortable/display-grid.html +54 -0
- data/templates/project/sources/jquery-ui/demos/sortable/empty-lists.html +69 -0
- data/templates/project/sources/jquery-ui/demos/sortable/index.html +26 -0
- data/templates/project/sources/jquery-ui/demos/sortable/items.html +70 -0
- data/templates/project/sources/jquery-ui/demos/sortable/placeholder.html +56 -0
- data/templates/project/sources/jquery-ui/demos/sortable/portlets.html +96 -0
- data/templates/project/sources/jquery-ui/demos/spinner/currency.html +61 -0
- data/templates/project/sources/jquery-ui/demos/spinner/decimal.html +59 -0
- data/templates/project/sources/jquery-ui/demos/spinner/default.html +65 -0
- data/templates/project/sources/jquery-ui/demos/spinner/index.html +20 -0
- data/templates/project/sources/jquery-ui/demos/spinner/latlong.html +60 -0
- data/templates/project/sources/jquery-ui/demos/spinner/overflow.html +47 -0
- data/templates/project/sources/jquery-ui/demos/spinner/time.html +71 -0
- data/templates/project/sources/jquery-ui/demos/switchClass/default.html +47 -0
- data/templates/project/sources/jquery-ui/demos/switchClass/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/tabs/ajax.html +53 -0
- data/templates/project/sources/jquery-ui/demos/tabs/ajax/content1.html +4 -0
- data/templates/project/sources/jquery-ui/demos/tabs/ajax/content2.html +4 -0
- data/templates/project/sources/jquery-ui/demos/tabs/ajax/content3-slow.php +7 -0
- data/templates/project/sources/jquery-ui/demos/tabs/ajax/content4-broken.php +3 -0
- data/templates/project/sources/jquery-ui/demos/tabs/bottom.html +59 -0
- data/templates/project/sources/jquery-ui/demos/tabs/collapsible.html +55 -0
- data/templates/project/sources/jquery-ui/demos/tabs/cookie.html +57 -0
- data/templates/project/sources/jquery-ui/demos/tabs/default.html +49 -0
- data/templates/project/sources/jquery-ui/demos/tabs/index.html +25 -0
- data/templates/project/sources/jquery-ui/demos/tabs/manipulation.html +124 -0
- data/templates/project/sources/jquery-ui/demos/tabs/mouseover.html +53 -0
- data/templates/project/sources/jquery-ui/demos/tabs/sortable.html +58 -0
- data/templates/project/sources/jquery-ui/demos/tabs/vertical.html +61 -0
- data/templates/project/sources/jquery-ui/demos/toggle/default.html +94 -0
- data/templates/project/sources/jquery-ui/demos/toggle/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/toggleClass/default.html +46 -0
- data/templates/project/sources/jquery-ui/demos/toggleClass/index.html +18 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/ajax/content1.html +1 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/ajax/content2.html +1 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/custom-animation.html +58 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/default.html +48 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/delegation-mixbag.html +73 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/forms.html +71 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/index.html +22 -0
- data/templates/project/sources/jquery-ui/demos/tooltip/tracking.html +64 -0
- data/templates/project/sources/jquery-ui/external/jquery.bgiframe-2.1.2.js +39 -0
- data/templates/project/sources/jquery-ui/external/jquery.cookie.js +89 -0
- data/templates/project/sources/jquery-ui/external/jquery.global.de-DE.js +55 -0
- data/templates/project/sources/jquery-ui/external/jquery.global.ja-JP.js +74 -0
- data/templates/project/sources/jquery-ui/external/jquery.global.js +1341 -0
- data/templates/project/sources/jquery-ui/external/jquery.metadata.js +122 -0
- data/templates/project/sources/jquery-ui/external/jquery.mousewheel-3.0.4.js +78 -0
- data/templates/project/sources/jquery-ui/external/qunit.css +215 -0
- data/templates/project/sources/jquery-ui/external/qunit.js +1444 -0
- data/templates/project/sources/jquery-ui/jquery-1.5.1.js +8316 -0
- data/templates/project/sources/jquery-ui/tests/index.html +22 -0
- data/templates/project/sources/jquery-ui/tests/jquery.simulate.js +151 -0
- data/templates/project/sources/jquery-ui/tests/static/button/default.html +161 -0
- data/templates/project/sources/jquery-ui/tests/static/datepicker/datepicker.html +1367 -0
- data/templates/project/sources/jquery-ui/tests/static/datepicker/default.html +86 -0
- data/templates/project/sources/jquery-ui/tests/static/icons.html +246 -0
- data/templates/project/sources/jquery-ui/tests/static/menu/all-menus-icons.html +172 -0
- data/templates/project/sources/jquery-ui/tests/static/menu/default.html +39 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/default.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/default_vertical.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_horizontal.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_horizontal_range.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_horizontal_range_max.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_horizontal_range_min.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_vertical.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_vertical_range.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_vertical_range_max.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/slider/slider_vertical_range_min.html +17 -0
- data/templates/project/sources/jquery-ui/tests/static/static.css +1 -0
- data/templates/project/sources/jquery-ui/tests/static/static.js +9 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion.html +163 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_core.js +53 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_defaults.js +15 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_defaults_deprecated.js +21 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_deprecated.html +161 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_deprecated.js +320 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_events.js +122 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_methods.js +37 -0
- data/templates/project/sources/jquery-ui/tests/unit/accordion/accordion_options.js +266 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete.html +46 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete_core.js +73 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete_defaults.js +19 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete_events.js +206 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete_methods.js +39 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/autocomplete_options.js +247 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/remote_object_array_labels.txt +1 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/remote_object_array_values.txt +1 -0
- data/templates/project/sources/jquery-ui/tests/unit/autocomplete/remote_string_array.txt +1 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button.html +68 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_core.js +70 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_defaults.js +15 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_events.js +8 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_methods.js +19 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_options.js +93 -0
- data/templates/project/sources/jquery-ui/tests/unit/button/button_tickets.js +45 -0
- data/templates/project/sources/jquery-ui/tests/unit/core/core.html +134 -0
- data/templates/project/sources/jquery-ui/tests/unit/core/core.js +157 -0
- data/templates/project/sources/jquery-ui/tests/unit/core/selector.js +253 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker.html +54 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_core.js +441 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_defaults.js +9 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_events.js +117 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_methods.js +118 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_options.js +924 -0
- data/templates/project/sources/jquery-ui/tests/unit/datepicker/datepicker_tickets.js +27 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog.html +57 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_core.js +138 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_defaults.js +35 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_events.js +254 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_methods.js +127 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_options.js +444 -0
- data/templates/project/sources/jquery-ui/tests/unit/dialog/dialog_tickets.js +116 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable.html +53 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable_core.js +67 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable_defaults.js +36 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable_events.js +81 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable_methods.js +99 -0
- data/templates/project/sources/jquery-ui/tests/unit/draggable/draggable_options.js +753 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable.html +53 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable_core.js +36 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable_defaults.js +16 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable_events.js +28 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable_methods.js +86 -0
- data/templates/project/sources/jquery-ui/tests/unit/droppable/droppable_options.js +68 -0
- data/templates/project/sources/jquery-ui/tests/unit/images/jqueryui_32x32.png +0 -0
- data/templates/project/sources/jquery-ui/tests/unit/index.html +64 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu.html +74 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu_core.js +38 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu_defaults.js +13 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu_events.js +24 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu_methods.js +15 -0
- data/templates/project/sources/jquery-ui/tests/unit/menu/menu_options.js +10 -0
- data/templates/project/sources/jquery-ui/tests/unit/position/position.html +62 -0
- data/templates/project/sources/jquery-ui/tests/unit/position/position_core.js +438 -0
- data/templates/project/sources/jquery-ui/tests/unit/position/position_deprecated.html +60 -0
- data/templates/project/sources/jquery-ui/tests/unit/position/position_deprecated.js +32 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar.html +41 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar_core.js +28 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar_defaults.js +11 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar_events.js +51 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar_methods.js +36 -0
- data/templates/project/sources/jquery-ui/tests/unit/progressbar/progressbar_options.js +59 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/images/test.jpg +0 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable.html +53 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable_core.js +148 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable_defaults.js +28 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable_events.js +20 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable_methods.js +64 -0
- data/templates/project/sources/jquery-ui/tests/unit/resizable/resizable_options.js +190 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable.html +56 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable_core.js +16 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable_defaults.js +16 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable_events.js +32 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable_methods.js +93 -0
- data/templates/project/sources/jquery-ui/tests/unit/selectable/selectable_options.js +46 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider.html +55 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider_core.js +292 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider_defaults.js +20 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider_events.js +109 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider_methods.js +102 -0
- data/templates/project/sources/jquery-ui/tests/unit/slider/slider_options.js +146 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable.html +57 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_core.js +9 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_defaults.js +34 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_events.js +147 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_methods.js +108 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_options.js +256 -0
- data/templates/project/sources/jquery-ui/tests/unit/sortable/sortable_tickets.js +83 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner.html +46 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner_core.js +171 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner_defaults.js +16 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner_events.js +64 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner_methods.js +155 -0
- data/templates/project/sources/jquery-ui/tests/unit/spinner/spinner_options.js +154 -0
- data/templates/project/sources/jquery-ui/tests/unit/swarminject.js +9 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/data/test.html +1 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/spinner.gif +0 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs.html +139 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_core.js +50 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_defaults.js +13 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_defaults_deprecated.js +26 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_deprecated.html +138 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_deprecated.js +350 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_events.js +198 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_methods.js +165 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_options.js +146 -0
- data/templates/project/sources/jquery-ui/tests/unit/tabs/tabs_tickets.js +99 -0
- data/templates/project/sources/jquery-ui/tests/unit/testsuite.js +101 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip.html +47 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip_core.js +11 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip_defaults.js +16 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip_events.js +54 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip_methods.js +30 -0
- data/templates/project/sources/jquery-ui/tests/unit/tooltip/tooltip_options.js +62 -0
- data/templates/project/sources/jquery-ui/tests/unit/widget/widget.html +40 -0
- data/templates/project/sources/jquery-ui/tests/unit/widget/widget_core.js +992 -0
- data/templates/project/sources/jquery-ui/tests/visual/addClass/addClass_queue.html +50 -0
- data/templates/project/sources/jquery-ui/tests/visual/all.css +84 -0
- data/templates/project/sources/jquery-ui/tests/visual/all.html +190 -0
- data/templates/project/sources/jquery-ui/tests/visual/animate/animate_backgroundColor_hex.html +44 -0
- data/templates/project/sources/jquery-ui/tests/visual/animate/animate_backgroundColor_rgb.html +35 -0
- data/templates/project/sources/jquery-ui/tests/visual/animate/animate_color_hex.html +44 -0
- data/templates/project/sources/jquery-ui/tests/visual/animate/animate_color_rgb.html +35 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button.html +140 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_disabled_true.html +84 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_input_type_checkbox.html +25 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_option_disabled_true.html +84 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_performance.html +555 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_ticket_5254.html +55 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_ticket_5261.html +42 -0
- data/templates/project/sources/jquery-ui/tests/visual/button/button_ticket_5278.html +58 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/accordion_dialog.html +202 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/accordion_tabs.html +86 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/datepicker_dialog.html +157 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/draggable_accordion.html +65 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html +109 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/sortable_accordion_sortable_tabs.html +108 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/tabs_tabs.html +73 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/tabs_tooltips.html +37 -0
- data/templates/project/sources/jquery-ui/tests/visual/compound/widgets_in_dialog.html +229 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/calendar.gif +0 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker.html +23 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker_multi_inline.html +113 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_4071.html +96 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_4240.html +55 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_4443.html +38 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_5676.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/multimonth.html +23 -0
- data/templates/project/sources/jquery-ui/tests/visual/datepicker/viewport.html +278 -0
- data/templates/project/sources/jquery-ui/tests/visual/dialog/dialog_on_page_with_large_dom.html +2963 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable.html +24 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable.scroll.html +152 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_containment_array.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_cursorAt_object.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_handle_selector.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_iframeFix_false.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_iframeFix_selector.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/draggable/draggable_option_iframeFix_true.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable.css +3 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable.html +33 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable_option_accept_default.html +40 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable_option_accept_function.html +43 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable_option_accept_selector.html +41 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable_ticket_4087.html +51 -0
- data/templates/project/sources/jquery-ui/tests/visual/droppable/droppable_ticket_4088.html +69 -0
- data/templates/project/sources/jquery-ui/tests/visual/effects.all.css +54 -0
- data/templates/project/sources/jquery-ui/tests/visual/effects.all.html +193 -0
- data/templates/project/sources/jquery-ui/tests/visual/effects.all.js +92 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/contextmenu.html +191 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/drilldown.html +266 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/menu.html +147 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/menubar.html +208 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/menubar.js +189 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/popup.html +159 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/popup.js +113 -0
- data/templates/project/sources/jquery-ui/tests/visual/menu/tablemenu.html +67 -0
- data/templates/project/sources/jquery-ui/tests/visual/mouse/mouse_ticket_6946.html +67 -0
- data/templates/project/sources/jquery-ui/tests/visual/position/position.html +67 -0
- data/templates/project/sources/jquery-ui/tests/visual/position/position_margin.html +43 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/images/test.png +0 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable.html +24 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_alsoResize_child.html +48 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_0.5.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_1.0.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_1.5.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxHeight_150.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxWidth_150.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_minHeight_50.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_minWidth_50.html +30 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh100.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh50.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_w50xh100.html +29 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_ticket_3053.html +37 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_ticket_4199.html +37 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_ticket_4217.html +46 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_ticket_4940.html +32 -0
- data/templates/project/sources/jquery-ui/tests/visual/resizable/resizable_ticket_5335.html +52 -0
- data/templates/project/sources/jquery-ui/tests/visual/selectable/selectable.html +40 -0
- data/templates/project/sources/jquery-ui/tests/visual/selectable/selectable_ticket_4341.html +46 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider.html +24 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_horizontal.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_horizontal_range.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_horizontal_range_max.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_horizontal_range_min.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_in_container_with_scrollbars.html +43 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_method_destroy.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_method_disable.html +47 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_animate_false.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_animate_true.html +65 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_max_3.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_max_30.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_max_300.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_min_-3.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_min_-30.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_min_-300.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_orientation_horizontal.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_orientation_vertical.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_range_false.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_range_max.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_range_min.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_range_true.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_step_25.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_step_5.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_value_3.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_value_30.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_values_25_50_75.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_values_25_75.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_option_values_50.html +26 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_ticket_3736.html +36 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_ticket_3762.html +44 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_ticket_4385.html +42 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_ticket_4467.html +34 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_vertical.html +27 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_vertical_range.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_vertical_range_max.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/slider/slider_vertical_range_min.html +28 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable.html +40 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable_massive_scale.html +757 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable_option_revert_false.html +31 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable_option_revert_true.html +31 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable_ticket_4231.html +78 -0
- data/templates/project/sources/jquery-ui/tests/visual/sortable/sortable_ticket_5355.html +58 -0
- data/templates/project/sources/jquery-ui/tests/visual/spinner/spinner.html +43 -0
- data/templates/project/sources/jquery-ui/tests/visual/theme.html +532 -0
- data/templates/project/sources/jquery-ui/tests/visual/tooltip/ajaxcontent.php +2 -0
- data/templates/project/sources/jquery-ui/tests/visual/tooltip/callout.html +213 -0
- data/templates/project/sources/jquery-ui/tests/visual/tooltip/tooltip.html +186 -0
- data/templates/project/sources/jquery-ui/tests/visual/visual.css +3 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-icons_222222_256x240.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-icons_454545_256x240.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-icons_888888_256x240.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.accordion.css +18 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.all.css +11 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.autocomplete.css +13 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.base.css +24 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.button.css +38 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.core.css +41 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.datepicker.css +68 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.dialog.css +21 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.menu.css +44 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.progressbar.css +11 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.resizable.css +25 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.selectable.css +10 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.slider.css +24 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.spinner.css +23 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.tabs.css +17 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.theme.css +252 -0
- data/templates/project/sources/jquery-ui/themes/base/jquery.ui.tooltip.css +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-af.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ar-DZ.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ar.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-az.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-bg.js +24 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-bs.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ca.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-cs.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-da.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-de.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-el.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-en-AU.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-en-GB.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-en-NZ.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-eo.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-es.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-et.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-eu.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fa.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fi.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fo.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fr-CH.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fr.js +25 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-gl.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-he.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-hr.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-hu.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-hy.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-id.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-is.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-it.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ja.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ko.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-kz.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-lt.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-lv.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ml.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ms.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-nl.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-no.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-pl.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-pt-BR.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-pt.js +22 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-rm.js +21 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ro.js +26 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ru.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sk.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sl.js +24 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sq.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sr-SR.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sr.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sv.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ta.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-th.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-tj.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-tr.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-uk.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-vi.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-zh-CN.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-zh-HK.js +23 -0
- data/templates/project/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-zh-TW.js +23 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.blind.js +52 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.bounce.js +102 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.clip.js +69 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.core.js +825 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.drop.js +64 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.explode.js +103 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.fade.js +34 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.fold.js +73 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.highlight.js +51 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.pulsate.js +52 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.scale.js +250 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.shake.js +64 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.slide.js +69 -0
- data/templates/project/sources/jquery-ui/ui/jquery.effects.transfer.js +46 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.accordion.js +669 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.autocomplete.js +439 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.button.js +384 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.core.js +303 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.datepicker.js +1779 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.dialog.js +829 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.draggable.js +799 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.droppable.js +285 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.menu.js +402 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.mouse.js +156 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.position.js +283 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.progressbar.js +107 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.resizable.js +812 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.selectable.js +266 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.slider.js +684 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.sortable.js +1076 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.spinner.js +362 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.tabs.js +1039 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.tooltip.js +146 -0
- data/templates/project/sources/jquery-ui/ui/jquery.ui.widget.js +363 -0
- data/templates/project/sources/jquery-ui/version.txt +1 -0
- data/templates/project/sources/pie/LICENSE-APACHE2.txt +13 -0
- data/templates/project/sources/pie/LICENSE-GPL2.txt +278 -0
- data/templates/project/sources/pie/build.xml +118 -0
- data/templates/project/sources/pie/demos/basic.html +321 -0
- data/templates/project/sources/pie/demos/farbtastic/CHANGELOG.html +26 -0
- data/templates/project/sources/pie/demos/farbtastic/LICENSE.txt +341 -0
- data/templates/project/sources/pie/demos/farbtastic/README.html +71 -0
- data/templates/project/sources/pie/demos/farbtastic/demo1.html +28 -0
- data/templates/project/sources/pie/demos/farbtastic/demo2.html +57 -0
- data/templates/project/sources/pie/demos/farbtastic/farbtastic.css +51 -0
- data/templates/project/sources/pie/demos/farbtastic/farbtastic.js +345 -0
- data/templates/project/sources/pie/demos/farbtastic/farbtastic.min.js +1 -0
- data/templates/project/sources/pie/demos/farbtastic/marker.png +0 -0
- data/templates/project/sources/pie/demos/farbtastic/mask.png +0 -0
- data/templates/project/sources/pie/demos/farbtastic/wheel.png +0 -0
- data/templates/project/sources/pie/demos/tabs-control.png +0 -0
- data/templates/project/sources/pie/demos/tabs.html +296 -0
- data/templates/project/sources/pie/documentation/about.html +63 -0
- data/templates/project/sources/pie/documentation/build.html +72 -0
- data/templates/project/sources/pie/documentation/getting-started.html +66 -0
- data/templates/project/sources/pie/documentation/known-issues.html +205 -0
- data/templates/project/sources/pie/documentation/pie-js.html +89 -0
- data/templates/project/sources/pie/documentation/product-comparison.html +89 -0
- data/templates/project/sources/pie/documentation/q-and-a.html +152 -0
- data/templates/project/sources/pie/documentation/supported-css3-features.html +402 -0
- data/templates/project/sources/pie/site/pie-wp-theme/404.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/archive.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/attachment.php +25 -0
- data/templates/project/sources/pie/site/pie-wp-theme/attachment/attachment-default.php +61 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/CHANGELOG.txt +72 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/README.txt +15 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/admin.php +330 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/ajax-load.php +115 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/attachment.php +126 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/carrington.php +106 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/compatibility.php +234 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/css/colorpicker.css +161 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/blank.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_background.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hex.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hsb_b.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hsb_h.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hsb_s.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_indic.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_overlay.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_rgb_b.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_rgb_g.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_rgb_r.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_select.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_submit.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_background.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hex.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hsb_b.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hsb_h.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hsb_s.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_indic.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_rgb_b.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_rgb_g.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_rgb_r.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_submit.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/select.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/select2.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/slider.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/js/colorpicker.js +490 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/LICENSE.txt +30 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/css/thickbox.css +157 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/img/blank.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/img/loadingAnimation.gif +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/img/macFFBgHack.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/lightbox/thickbox.js +332 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/templates.php +105 -0
- data/templates/project/sources/pie/site/pie-wp-theme/carrington-core/utility.php +821 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comment/comment-default.php +53 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comment/ping.php +33 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comments.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comments/comments-default.php +66 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comments/comments-loop.php +49 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comments/pings-loop.php +38 -0
- data/templates/project/sources/pie/site/pie-wp-theme/comments/threaded.php +31 -0
- data/templates/project/sources/pie/site/pie-wp-theme/content/content-default.php +56 -0
- data/templates/project/sources/pie/site/pie-wp-theme/content/page.php +44 -0
- data/templates/project/sources/pie/site/pie-wp-theme/css/common.css +442 -0
- data/templates/project/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.eot +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.svg +240 -0
- data/templates/project/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.ttf +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.woff +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/error/404.php +31 -0
- data/templates/project/sources/pie/site/pie-wp-theme/error/exit.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/excerpt/excerpt-default.php +41 -0
- data/templates/project/sources/pie/site/pie-wp-theme/footer.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/footer/footer-default.php +53 -0
- data/templates/project/sources/pie/site/pie-wp-theme/forms/comment.php +94 -0
- data/templates/project/sources/pie/site/pie-wp-theme/forms/search.php +33 -0
- data/templates/project/sources/pie/site/pie-wp-theme/functions.php +28 -0
- data/templates/project/sources/pie/site/pie-wp-theme/functions/sidebars.php +42 -0
- data/templates/project/sources/pie/site/pie-wp-theme/header.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/header/header-default.php +99 -0
- data/templates/project/sources/pie/site/pie-wp-theme/img/divider.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/img/favicon.ico +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/img/icons.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/img/logo.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/index.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/CHANGELOG.html +26 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/LICENSE.txt +341 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/README.html +71 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/demo1.html +28 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/demo2.html +57 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/farbtastic.css +51 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/farbtastic.js +345 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/farbtastic.min.js +1 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/marker.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/mask.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/js/farbtastic/wheel.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/loop/archive.php +28 -0
- data/templates/project/sources/pie/site/pie-wp-theme/loop/loop-default.php +33 -0
- data/templates/project/sources/pie/site/pie-wp-theme/loop/search.php +30 -0
- data/templates/project/sources/pie/site/pie-wp-theme/misc/banner.php +21 -0
- data/templates/project/sources/pie/site/pie-wp-theme/misc/nav-posts.php +22 -0
- data/templates/project/sources/pie/site/pie-wp-theme/misc/no-results.php +23 -0
- data/templates/project/sources/pie/site/pie-wp-theme/page.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/pages/pages-default.php +30 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/author.php +52 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/category.php +40 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/home.php +30 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/posts-default.php +30 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/search.php +44 -0
- data/templates/project/sources/pie/site/pie-wp-theme/posts/tag.php +38 -0
- data/templates/project/sources/pie/site/pie-wp-theme/screenshot.png +0 -0
- data/templates/project/sources/pie/site/pie-wp-theme/search.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/sidebar.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/sidebar/sidebar-default.php +68 -0
- data/templates/project/sources/pie/site/pie-wp-theme/single.php +24 -0
- data/templates/project/sources/pie/site/pie-wp-theme/single/single-default.php +40 -0
- data/templates/project/sources/pie/site/pie-wp-theme/style.css +73 -0
- data/templates/project/sources/pie/sources/Angle.js +36 -0
- data/templates/project/sources/pie/sources/BackgroundRenderer.js +381 -0
- data/templates/project/sources/pie/sources/BackgroundStyleInfo.js +295 -0
- data/templates/project/sources/pie/sources/BgPosition.js +104 -0
- data/templates/project/sources/pie/sources/BorderImageRenderer.js +124 -0
- data/templates/project/sources/pie/sources/BorderImageStyleInfo.js +146 -0
- data/templates/project/sources/pie/sources/BorderRadiusStyleInfo.js +68 -0
- data/templates/project/sources/pie/sources/BorderRenderer.js +328 -0
- data/templates/project/sources/pie/sources/BorderStyleInfo.js +101 -0
- data/templates/project/sources/pie/sources/BoundsInfo.js +56 -0
- data/templates/project/sources/pie/sources/BoxShadowInsetRenderer.js +31 -0
- data/templates/project/sources/pie/sources/BoxShadowOutsetRenderer.js +136 -0
- data/templates/project/sources/pie/sources/BoxShadowStyleInfo.js +67 -0
- data/templates/project/sources/pie/sources/Color.js +127 -0
- data/templates/project/sources/pie/sources/Element.js +416 -0
- data/templates/project/sources/pie/sources/Heartbeat.js +16 -0
- data/templates/project/sources/pie/sources/ImgRenderer.js +66 -0
- data/templates/project/sources/pie/sources/Length.js +134 -0
- data/templates/project/sources/pie/sources/Observable.js +44 -0
- data/templates/project/sources/pie/sources/OnBeforeUnload.js +15 -0
- data/templates/project/sources/pie/sources/OnPrint.js +25 -0
- data/templates/project/sources/pie/sources/OnResize.js +12 -0
- data/templates/project/sources/pie/sources/OnScroll.js +15 -0
- data/templates/project/sources/pie/sources/PIE_API.js +35 -0
- data/templates/project/sources/pie/sources/PIE_close.js +2 -0
- data/templates/project/sources/pie/sources/PIE_open.js +47 -0
- data/templates/project/sources/pie/sources/RendererBase.js +299 -0
- data/templates/project/sources/pie/sources/RootRenderer.js +112 -0
- data/templates/project/sources/pie/sources/StyleInfoBase.js +93 -0
- data/templates/project/sources/pie/sources/Tokenizer.js +274 -0
- data/templates/project/sources/pie/sources/Util.js +94 -0
- data/templates/project/sources/pie/sources/VisibilityStyleInfo.js +38 -0
- data/templates/project/sources/pie/sources/closure_externs.js +4 -0
- data/templates/project/sources/pie/sources/closure_preservefunctions.js +4 -0
- data/templates/project/sources/pie/sources/htc_close.txt +2 -0
- data/templates/project/sources/pie/sources/htc_init.js +19 -0
- data/templates/project/sources/pie/sources/htc_open.txt +13 -0
- data/templates/project/sources/pie/sources/js_close.js +1 -0
- data/templates/project/sources/pie/sources/js_open.js +8 -0
- data/templates/project/sources/pie/sources/wrappers/PIE.php +19 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-001.htm +27 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-002.htm +31 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-003.htm +29 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-004.htm +29 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-005.htm +29 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-006.htm +41 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-007.htm +46 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-008.htm +41 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-009.htm +45 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-010.htm +31 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-011.htm +41 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-012.htm +49 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-013.htm +51 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-014.htm +51 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-015.htm +51 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-016.htm +50 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-017.htm +35 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-different-width-001.htm +77 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-initial-value-001.htm +35 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-not-inherited-001.htm +44 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-shorthand-001.htm +69 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-style-001.htm +33 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-style-002.htm +28 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-style-003.htm +28 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-style-004.htm +28 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-style-005.htm +29 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-sum-of-radii-001.htm +158 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-sum-of-radii-002.htm +92 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-with-three-values-001.htm +43 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-radius-with-two-values-001.htm +43 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-top-left-radius-values-001.htm +45 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-top-left-radius-values-002.htm +40 -0
- data/templates/project/sources/pie/tests/IE9 border-radius tests/border-top-left-radius-values-003.htm +51 -0
- data/templates/project/sources/pie/tests/background1.gif +0 -0
- data/templates/project/sources/pie/tests/background2.gif +0 -0
- data/templates/project/sources/pie/tests/basic.html +188 -0
- data/templates/project/sources/pie/tests/border-image-test.html +52 -0
- data/templates/project/sources/pie/tests/border.png +0 -0
- data/templates/project/sources/pie/tests/border2.png +0 -0
- data/templates/project/sources/pie/tests/box-shadow-tests.html +166 -0
- data/templates/project/sources/pie/tests/buttons.html +735 -0
- data/templates/project/sources/pie/tests/color-names.html +32 -0
- data/templates/project/sources/pie/tests/gradient-tests.html +237 -0
- data/templates/project/sources/pie/tests/hiding-tests.html +92 -0
- data/templates/project/sources/pie/tests/hover-tests.html +107 -0
- data/templates/project/sources/pie/tests/iPhoneBackButton.png +0 -0
- data/templates/project/sources/pie/tests/icon-chrome.png +0 -0
- data/templates/project/sources/pie/tests/icon-firefox.png +0 -0
- data/templates/project/sources/pie/tests/icon-ie.png +0 -0
- data/templates/project/sources/pie/tests/icon-opera.png +0 -0
- data/templates/project/sources/pie/tests/icon-safari.png +0 -0
- data/templates/project/sources/pie/tests/img.html +63 -0
- data/templates/project/sources/pie/tests/margin-auto-tests.html +57 -0
- data/templates/project/sources/pie/tests/margin-collapsing-tests.html +77 -0
- data/templates/project/sources/pie/tests/misc-tests.html +257 -0
- data/templates/project/sources/pie/tests/multiple-bg-tests.html +100 -0
- data/templates/project/sources/pie/tests/peculiar-icons/Peculiar.html +372 -0
- data/templates/project/sources/pie/tests/peculiar-icons/pictograms.css +1934 -0
- data/templates/project/sources/pie/tests/peculiar-icons/style.css +106 -0
- data/templates/project/sources/pie/tests/photo.jpg +0 -0
- data/templates/project/sources/pie/tests/png-fix.html +50 -0
- data/templates/project/sources/pie/tests/position-fixed.html +70 -0
- data/templates/project/sources/pie/tests/rtl.html +190 -0
- data/templates/project/sources/pie/tests/sizing-tests.html +55 -0
- data/templates/project/sources/pie/tests/solar-system/asteroids_meteorids.png +0 -0
- data/templates/project/sources/pie/tests/solar-system/bg.jpg +0 -0
- data/templates/project/sources/pie/tests/solar-system/solar-system.html +148 -0
- data/templates/project/sources/pie/tests/solar-system/styles.css +447 -0
- data/templates/project/sources/pie/tests/stress-test.html +187 -0
- data/templates/project/sources/pie/tests/submitted/block.png +0 -0
- data/templates/project/sources/pie/tests/submitted/forum-f3-t19.html +31 -0
- data/templates/project/sources/pie/tests/submitted/forum-f3-t25.gif +0 -0
- data/templates/project/sources/pie/tests/submitted/forum-f3-t25.html +24 -0
- data/templates/project/sources/pie/tests/submitted/forum-f3-t70.html +136 -0
- data/templates/project/sources/pie/tests/submitted/issue23.html +124 -0
- data/templates/project/sources/pie/tests/submitted/issue41.html +164 -0
- data/templates/project/sources/pie/tests/submitted/issue47.html +136 -0
- data/templates/project/sources/pie/tests/submitted/issue75.html +94 -0
- data/templates/project/sources/pie/tests/submitted/tab.png +0 -0
- data/templates/project/sources/pie/tests/tables.html +87 -0
- data/templates/project/sources/pie/tests/tokenizer-tests.html +158 -0
- data/templates/project/sources/pie/tests/z-index-tests.html +145 -0
- data/templates/project/sources/pie/tools/compiler.jar +0 -0
- data/templates/project/sources/scrollability/README.md +38 -0
- data/templates/project/sources/scrollability/scrollability-min.js +1 -0
- data/templates/project/sources/scrollability/scrollability.js +661 -0
- data/templates/project/style.sass +136 -0
- data/templates/project/templates/_flashes.html.haml +4 -0
- data/templates/project/templates/_footer.html.haml +2 -0
- data/templates/project/templates/_head.html.haml +26 -0
- data/templates/project/templates/_header.html.haml +1 -0
- data/templates/project/templates/_javascripts.html.haml +27 -0
- data/templates/project/templates/_stylesheets.html.haml +5 -0
- data/templates/project/templates/application.html.haml +28 -0
- data/templates/project/templates/old/_layout.haml +1 -0
- data/templates/project/templates/old/home.html.haml +14 -0
- data/templates/project/templates/old/layouts/default.haml +62 -0
- data/templates/project/templates/old/layouts/survivalkit/default.haml +64 -0
- data/templates/project/templates/old/layouts/survivalkit/styletile.haml +64 -0
- data/templates/project/templates/old/survivalkit/_layout.haml +1 -0
- data/templates/project/templates/old/survivalkit/elements-common.haml +33 -0
- data/templates/project/templates/old/survivalkit/elements-html5.haml +71 -0
- data/templates/project/templates/old/survivalkit/elements-typography.haml +100 -0
- data/templates/project/templates/old/survivalkit/elements-ui-patterns-drupal.haml +38 -0
- data/templates/project/templates/old/survivalkit/elements-ui-patterns.haml +23 -0
- data/templates/project/templates/old/survivalkit/index.haml +2 -0
- data/templates/project/templates/old/survivalkit/partials/common/abbr.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/acronym.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/characters.haml +11 -0
- data/templates/project/templates/old/survivalkit/partials/common/cite.haml +12 -0
- data/templates/project/templates/old/survivalkit/partials/common/code.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/dfn.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/em.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/common/forms.haml +27 -0
- data/templates/project/templates/old/survivalkit/partials/common/headers.haml +23 -0
- data/templates/project/templates/old/survivalkit/partials/common/inline-images.haml +9 -0
- data/templates/project/templates/old/survivalkit/partials/common/kbd.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/common/links.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/common/lists.haml +55 -0
- data/templates/project/templates/old/survivalkit/partials/common/others.haml +35 -0
- data/templates/project/templates/old/survivalkit/partials/common/paragraphs.haml +15 -0
- data/templates/project/templates/old/survivalkit/partials/common/pre.haml +27 -0
- data/templates/project/templates/old/survivalkit/partials/common/q.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/samp.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/strong.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/common/tables.haml +43 -0
- data/templates/project/templates/old/survivalkit/partials/common/var.haml +8 -0
- data/templates/project/templates/old/survivalkit/partials/header-styletile.haml +9 -0
- data/templates/project/templates/old/survivalkit/partials/header.haml +6 -0
- data/templates/project/templates/old/survivalkit/partials/html5/a.haml +36 -0
- data/templates/project/templates/old/survivalkit/partials/html5/abbr.haml +26 -0
- data/templates/project/templates/old/survivalkit/partials/html5/address.haml +27 -0
- data/templates/project/templates/old/survivalkit/partials/html5/all-headings.haml +31 -0
- data/templates/project/templates/old/survivalkit/partials/html5/article.haml +22 -0
- data/templates/project/templates/old/survivalkit/partials/html5/aside.haml +20 -0
- data/templates/project/templates/old/survivalkit/partials/html5/b.haml +21 -0
- data/templates/project/templates/old/survivalkit/partials/html5/bdi.haml +30 -0
- data/templates/project/templates/old/survivalkit/partials/html5/blockquote.haml +32 -0
- data/templates/project/templates/old/survivalkit/partials/html5/cite.haml +46 -0
- data/templates/project/templates/old/survivalkit/partials/html5/code.haml +70 -0
- data/templates/project/templates/old/survivalkit/partials/html5/details.haml +42 -0
- data/templates/project/templates/old/survivalkit/partials/html5/dfn.haml +52 -0
- data/templates/project/templates/old/survivalkit/partials/html5/dl.haml +69 -0
- data/templates/project/templates/old/survivalkit/partials/html5/em.haml +15 -0
- data/templates/project/templates/old/survivalkit/partials/html5/fieldset.haml +49 -0
- data/templates/project/templates/old/survivalkit/partials/html5/figure.haml +48 -0
- data/templates/project/templates/old/survivalkit/partials/html5/footer.haml +37 -0
- data/templates/project/templates/old/survivalkit/partials/html5/header.haml +44 -0
- data/templates/project/templates/old/survivalkit/partials/html5/hgroup.haml +20 -0
- data/templates/project/templates/old/survivalkit/partials/html5/hr.haml +52 -0
- data/templates/project/templates/old/survivalkit/partials/html5/i.haml +28 -0
- data/templates/project/templates/old/survivalkit/partials/html5/kbd.haml +19 -0
- data/templates/project/templates/old/survivalkit/partials/html5/label.haml +18 -0
- data/templates/project/templates/old/survivalkit/partials/html5/li.haml +91 -0
- data/templates/project/templates/old/survivalkit/partials/html5/mark.haml +30 -0
- data/templates/project/templates/old/survivalkit/partials/html5/menu.haml +39 -0
- data/templates/project/templates/old/survivalkit/partials/html5/nav.haml +68 -0
- data/templates/project/templates/old/survivalkit/partials/html5/ol.haml +23 -0
- data/templates/project/templates/old/survivalkit/partials/html5/p.haml +41 -0
- data/templates/project/templates/old/survivalkit/partials/html5/pre.haml +48 -0
- data/templates/project/templates/old/survivalkit/partials/html5/q.haml +34 -0
- data/templates/project/templates/old/survivalkit/partials/html5/ruby.haml +55 -0
- data/templates/project/templates/old/survivalkit/partials/html5/s.haml +17 -0
- data/templates/project/templates/old/survivalkit/partials/html5/samp.haml +27 -0
- data/templates/project/templates/old/survivalkit/partials/html5/sample-forms.haml +52 -0
- data/templates/project/templates/old/survivalkit/partials/html5/sample-tables.haml +152 -0
- data/templates/project/templates/old/survivalkit/partials/html5/section.haml +21 -0
- data/templates/project/templates/old/survivalkit/partials/html5/small.haml +33 -0
- data/templates/project/templates/old/survivalkit/partials/html5/strong.haml +25 -0
- data/templates/project/templates/old/survivalkit/partials/html5/sub-sup.haml +58 -0
- data/templates/project/templates/old/survivalkit/partials/html5/table.haml +196 -0
- data/templates/project/templates/old/survivalkit/partials/html5/text-summary.haml +305 -0
- data/templates/project/templates/old/survivalkit/partials/html5/thead.haml +67 -0
- data/templates/project/templates/old/survivalkit/partials/html5/time.haml +31 -0
- data/templates/project/templates/old/survivalkit/partials/html5/ul.haml +21 -0
- data/templates/project/templates/old/survivalkit/partials/menu.haml +14 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/block.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/breadcrumbs.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/comments.haml +69 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/field-image.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-comment.haml +54 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-login.haml +23 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-new-account.haml +24 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-new-password.haml +16 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/links.haml +6 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/menu.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/messages.haml +21 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/node.haml +28 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/pager.haml +17 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/rss-link.haml +5 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/search.haml +14 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/site-name.haml +6 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/tabs.haml +14 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-drupal/taxonomy.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/block.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/breadcrumbs.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/comments.haml +69 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/field-image.haml +7 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-comment.haml +54 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-login.haml +23 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-new-account.haml +24 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/form-new-password.haml +16 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/links.haml +6 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/menu.haml +10 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/messages.haml +21 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/node.haml +28 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/pager.haml +17 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/rss-link.haml +5 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/search.haml +14 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/site-name.haml +6 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/tabs.haml +14 -0
- data/templates/project/templates/old/survivalkit/partials/patterns-general/taxonomy.haml +10 -0
- data/templates/project/templates/old/survivalkit/styletile/_layout.haml +1 -0
- data/templates/project/templates/old/survivalkit/styletile/index.redirect +1 -0
- data/templates/project/templates/old/survivalkit/styletile/styletile.haml +60 -0
- data/templates/project/templates/old/view_helpers.rb +25 -0
- metadata +1448 -0
@@ -0,0 +1,303 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI @VERSION
|
3
|
+
*
|
4
|
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6
|
+
* http://jquery.org/license
|
7
|
+
*
|
8
|
+
* http://docs.jquery.com/UI
|
9
|
+
*/
|
10
|
+
(function( $, undefined ) {
|
11
|
+
|
12
|
+
// prevent duplicate loading
|
13
|
+
// this is only a problem because we proxy existing functions
|
14
|
+
// and we don't want to double proxy them
|
15
|
+
$.ui = $.ui || {};
|
16
|
+
if ( $.ui.version ) {
|
17
|
+
return;
|
18
|
+
}
|
19
|
+
|
20
|
+
$.extend( $.ui, {
|
21
|
+
version: "@VERSION",
|
22
|
+
|
23
|
+
keyCode: {
|
24
|
+
ALT: 18,
|
25
|
+
BACKSPACE: 8,
|
26
|
+
CAPS_LOCK: 20,
|
27
|
+
COMMA: 188,
|
28
|
+
COMMAND: 91,
|
29
|
+
COMMAND_LEFT: 91, // COMMAND
|
30
|
+
COMMAND_RIGHT: 93,
|
31
|
+
CONTROL: 17,
|
32
|
+
DELETE: 46,
|
33
|
+
DOWN: 40,
|
34
|
+
END: 35,
|
35
|
+
ENTER: 13,
|
36
|
+
ESCAPE: 27,
|
37
|
+
HOME: 36,
|
38
|
+
INSERT: 45,
|
39
|
+
LEFT: 37,
|
40
|
+
MENU: 93, // COMMAND_RIGHT
|
41
|
+
NUMPAD_ADD: 107,
|
42
|
+
NUMPAD_DECIMAL: 110,
|
43
|
+
NUMPAD_DIVIDE: 111,
|
44
|
+
NUMPAD_ENTER: 108,
|
45
|
+
NUMPAD_MULTIPLY: 106,
|
46
|
+
NUMPAD_SUBTRACT: 109,
|
47
|
+
PAGE_DOWN: 34,
|
48
|
+
PAGE_UP: 33,
|
49
|
+
PERIOD: 190,
|
50
|
+
RIGHT: 39,
|
51
|
+
SHIFT: 16,
|
52
|
+
SPACE: 32,
|
53
|
+
TAB: 9,
|
54
|
+
UP: 38,
|
55
|
+
WINDOWS: 91 // COMMAND
|
56
|
+
}
|
57
|
+
});
|
58
|
+
|
59
|
+
// plugins
|
60
|
+
$.fn.extend({
|
61
|
+
_focus: $.fn.focus,
|
62
|
+
focus: function( delay, fn ) {
|
63
|
+
return typeof delay === "number" ?
|
64
|
+
this.each(function() {
|
65
|
+
var elem = this;
|
66
|
+
setTimeout(function() {
|
67
|
+
$( elem ).focus();
|
68
|
+
if ( fn ) {
|
69
|
+
fn.call( elem );
|
70
|
+
}
|
71
|
+
}, delay );
|
72
|
+
}) :
|
73
|
+
this._focus.apply( this, arguments );
|
74
|
+
},
|
75
|
+
|
76
|
+
scrollParent: function() {
|
77
|
+
var scrollParent;
|
78
|
+
if (($.browser.msie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) {
|
79
|
+
scrollParent = this.parents().filter(function() {
|
80
|
+
return (/(relative|absolute|fixed)/).test($.curCSS(this,'position',1)) && (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));
|
81
|
+
}).eq(0);
|
82
|
+
} else {
|
83
|
+
scrollParent = this.parents().filter(function() {
|
84
|
+
return (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));
|
85
|
+
}).eq(0);
|
86
|
+
}
|
87
|
+
|
88
|
+
return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent;
|
89
|
+
},
|
90
|
+
|
91
|
+
zIndex: function( zIndex ) {
|
92
|
+
if ( zIndex !== undefined ) {
|
93
|
+
return this.css( "zIndex", zIndex );
|
94
|
+
}
|
95
|
+
|
96
|
+
if ( this.length ) {
|
97
|
+
var elem = $( this[ 0 ] ), position, value;
|
98
|
+
while ( elem.length && elem[ 0 ] !== document ) {
|
99
|
+
// Ignore z-index if position is set to a value where z-index is ignored by the browser
|
100
|
+
// This makes behavior of this function consistent across browsers
|
101
|
+
// WebKit always returns auto if the element is positioned
|
102
|
+
position = elem.css( "position" );
|
103
|
+
if ( position === "absolute" || position === "relative" || position === "fixed" ) {
|
104
|
+
// IE returns 0 when zIndex is not specified
|
105
|
+
// other browsers return a string
|
106
|
+
// we ignore the case of nested elements with an explicit value of 0
|
107
|
+
// <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
|
108
|
+
value = parseInt( elem.css( "zIndex" ), 10 );
|
109
|
+
if ( !isNaN( value ) && value !== 0 ) {
|
110
|
+
return value;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
elem = elem.parent();
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
return 0;
|
118
|
+
},
|
119
|
+
|
120
|
+
disableSelection: function() {
|
121
|
+
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
|
122
|
+
".ui-disableSelection", function( event ) {
|
123
|
+
event.preventDefault();
|
124
|
+
});
|
125
|
+
},
|
126
|
+
|
127
|
+
enableSelection: function() {
|
128
|
+
return this.unbind( ".ui-disableSelection" );
|
129
|
+
}
|
130
|
+
});
|
131
|
+
|
132
|
+
$.each( [ "Width", "Height" ], function( i, name ) {
|
133
|
+
var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
|
134
|
+
type = name.toLowerCase(),
|
135
|
+
orig = {
|
136
|
+
innerWidth: $.fn.innerWidth,
|
137
|
+
innerHeight: $.fn.innerHeight,
|
138
|
+
outerWidth: $.fn.outerWidth,
|
139
|
+
outerHeight: $.fn.outerHeight
|
140
|
+
};
|
141
|
+
|
142
|
+
function reduce( elem, size, border, margin ) {
|
143
|
+
$.each( side, function() {
|
144
|
+
size -= parseFloat( $.curCSS( elem, "padding" + this, true ) ) || 0;
|
145
|
+
if ( border ) {
|
146
|
+
size -= parseFloat( $.curCSS( elem, "border" + this + "Width", true ) ) || 0;
|
147
|
+
}
|
148
|
+
if ( margin ) {
|
149
|
+
size -= parseFloat( $.curCSS( elem, "margin" + this, true ) ) || 0;
|
150
|
+
}
|
151
|
+
});
|
152
|
+
return size;
|
153
|
+
}
|
154
|
+
|
155
|
+
$.fn[ "inner" + name ] = function( size ) {
|
156
|
+
if ( size === undefined ) {
|
157
|
+
return orig[ "inner" + name ].call( this );
|
158
|
+
}
|
159
|
+
|
160
|
+
return this.each(function() {
|
161
|
+
$( this ).css( type, reduce( this, size ) + "px" );
|
162
|
+
});
|
163
|
+
};
|
164
|
+
|
165
|
+
$.fn[ "outer" + name] = function( size, margin ) {
|
166
|
+
if ( typeof size !== "number" ) {
|
167
|
+
return orig[ "outer" + name ].call( this, size );
|
168
|
+
}
|
169
|
+
|
170
|
+
return this.each(function() {
|
171
|
+
$( this).css( type, reduce( this, size, true, margin ) + "px" );
|
172
|
+
});
|
173
|
+
};
|
174
|
+
});
|
175
|
+
|
176
|
+
// selectors
|
177
|
+
function visible( element ) {
|
178
|
+
return !$( element ).parents().andSelf().filter(function() {
|
179
|
+
return $.curCSS( this, "visibility" ) === "hidden" ||
|
180
|
+
$.expr.filters.hidden( this );
|
181
|
+
}).length;
|
182
|
+
}
|
183
|
+
|
184
|
+
$.extend( $.expr[ ":" ], {
|
185
|
+
data: function( elem, i, match ) {
|
186
|
+
return !!$.data( elem, match[ 3 ] );
|
187
|
+
},
|
188
|
+
|
189
|
+
focusable: function( element ) {
|
190
|
+
var nodeName = element.nodeName.toLowerCase(),
|
191
|
+
tabIndex = $.attr( element, "tabindex" );
|
192
|
+
if ( "area" === nodeName ) {
|
193
|
+
var map = element.parentNode,
|
194
|
+
mapName = map.name,
|
195
|
+
img;
|
196
|
+
if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
|
197
|
+
return false;
|
198
|
+
}
|
199
|
+
img = $( "img[usemap=#" + mapName + "]" )[0];
|
200
|
+
return !!img && visible( img );
|
201
|
+
}
|
202
|
+
return ( /input|select|textarea|button|object/.test( nodeName )
|
203
|
+
? !element.disabled
|
204
|
+
: "a" == nodeName
|
205
|
+
? element.href || !isNaN( tabIndex )
|
206
|
+
: !isNaN( tabIndex ))
|
207
|
+
// the element and all of its ancestors must be visible
|
208
|
+
&& visible( element );
|
209
|
+
},
|
210
|
+
|
211
|
+
tabbable: function( element ) {
|
212
|
+
var tabIndex = $.attr( element, "tabindex" );
|
213
|
+
return ( isNaN( tabIndex ) || tabIndex >= 0 ) && $( element ).is( ":focusable" );
|
214
|
+
}
|
215
|
+
});
|
216
|
+
|
217
|
+
// support
|
218
|
+
$(function() {
|
219
|
+
var body = document.body,
|
220
|
+
div = body.appendChild( div = document.createElement( "div" ) );
|
221
|
+
|
222
|
+
$.extend( div.style, {
|
223
|
+
minHeight: "100px",
|
224
|
+
height: "auto",
|
225
|
+
padding: 0,
|
226
|
+
borderWidth: 0
|
227
|
+
});
|
228
|
+
|
229
|
+
$.support.minHeight = div.offsetHeight === 100;
|
230
|
+
$.support.selectstart = "onselectstart" in div;
|
231
|
+
|
232
|
+
// set display to none to avoid a layout bug in IE
|
233
|
+
// http://dev.jquery.com/ticket/4014
|
234
|
+
body.removeChild( div ).style.display = "none";
|
235
|
+
});
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
// deprecated
|
242
|
+
$.extend( $.ui, {
|
243
|
+
// $.ui.plugin is deprecated. Use the proxy pattern instead.
|
244
|
+
plugin: {
|
245
|
+
add: function( module, option, set ) {
|
246
|
+
var proto = $.ui[ module ].prototype;
|
247
|
+
for ( var i in set ) {
|
248
|
+
proto.plugins[ i ] = proto.plugins[ i ] || [];
|
249
|
+
proto.plugins[ i ].push( [ option, set[ i ] ] );
|
250
|
+
}
|
251
|
+
},
|
252
|
+
call: function( instance, name, args ) {
|
253
|
+
var set = instance.plugins[ name ];
|
254
|
+
if ( !set || !instance.element[ 0 ].parentNode ) {
|
255
|
+
return;
|
256
|
+
}
|
257
|
+
|
258
|
+
for ( var i = 0; i < set.length; i++ ) {
|
259
|
+
if ( instance.options[ set[ i ][ 0 ] ] ) {
|
260
|
+
set[ i ][ 1 ].apply( instance.element, args );
|
261
|
+
}
|
262
|
+
}
|
263
|
+
}
|
264
|
+
},
|
265
|
+
|
266
|
+
contains: $.contains,
|
267
|
+
|
268
|
+
// only used by resizable
|
269
|
+
hasScroll: function( el, a ) {
|
270
|
+
|
271
|
+
//If overflow is hidden, the element might have extra content, but the user wants to hide it
|
272
|
+
if ( $( el ).css( "overflow" ) === "hidden") {
|
273
|
+
return false;
|
274
|
+
}
|
275
|
+
|
276
|
+
var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop",
|
277
|
+
has = false;
|
278
|
+
|
279
|
+
if ( el[ scroll ] > 0 ) {
|
280
|
+
return true;
|
281
|
+
}
|
282
|
+
|
283
|
+
// TODO: determine which cases actually cause this to happen
|
284
|
+
// if the element doesn't have the scroll set, see if it's possible to
|
285
|
+
// set the scroll
|
286
|
+
el[ scroll ] = 1;
|
287
|
+
has = ( el[ scroll ] > 0 );
|
288
|
+
el[ scroll ] = 0;
|
289
|
+
return has;
|
290
|
+
},
|
291
|
+
|
292
|
+
// these are odd functions, fix the API or move into individual plugins
|
293
|
+
isOverAxis: function( x, reference, size ) {
|
294
|
+
//Determines when x coordinate is over "b" element axis
|
295
|
+
return ( x > reference ) && ( x < ( reference + size ) );
|
296
|
+
},
|
297
|
+
isOver: function( y, x, top, left, height, width ) {
|
298
|
+
//Determines when x, y coordinates is over "b" element
|
299
|
+
return $.ui.isOverAxis( y, top, height ) && $.ui.isOverAxis( x, left, width );
|
300
|
+
}
|
301
|
+
});
|
302
|
+
|
303
|
+
})( jQuery );
|
@@ -0,0 +1,1779 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery UI Datepicker @VERSION
|
3
|
+
*
|
4
|
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6
|
+
* http://jquery.org/license
|
7
|
+
*
|
8
|
+
* http://docs.jquery.com/UI/Datepicker
|
9
|
+
*
|
10
|
+
* Depends:
|
11
|
+
* jquery.ui.core.js
|
12
|
+
*/
|
13
|
+
(function( $, undefined ) {
|
14
|
+
|
15
|
+
$.extend($.ui, { datepicker: { version: "@VERSION" } });
|
16
|
+
|
17
|
+
var PROP_NAME = 'datepicker';
|
18
|
+
var dpuuid = new Date().getTime();
|
19
|
+
|
20
|
+
/* Date picker manager.
|
21
|
+
Use the singleton instance of this class, $.datepicker, to interact with the date picker.
|
22
|
+
Settings for (groups of) date pickers are maintained in an instance object,
|
23
|
+
allowing multiple different settings on the same page. */
|
24
|
+
|
25
|
+
function Datepicker() {
|
26
|
+
this.debug = false; // Change this to true to start debugging
|
27
|
+
this._curInst = null; // The current instance in use
|
28
|
+
this._keyEvent = false; // If the last event was a key event
|
29
|
+
this._disabledInputs = []; // List of date picker inputs that have been disabled
|
30
|
+
this._datepickerShowing = false; // True if the popup picker is showing , false if not
|
31
|
+
this._inDialog = false; // True if showing within a "dialog", false if not
|
32
|
+
this._mainDivId = 'ui-datepicker-div'; // The ID of the main datepicker division
|
33
|
+
this._inlineClass = 'ui-datepicker-inline'; // The name of the inline marker class
|
34
|
+
this._appendClass = 'ui-datepicker-append'; // The name of the append marker class
|
35
|
+
this._triggerClass = 'ui-datepicker-trigger'; // The name of the trigger marker class
|
36
|
+
this._dialogClass = 'ui-datepicker-dialog'; // The name of the dialog marker class
|
37
|
+
this._disableClass = 'ui-datepicker-disabled'; // The name of the disabled covering marker class
|
38
|
+
this._unselectableClass = 'ui-datepicker-unselectable'; // The name of the unselectable cell marker class
|
39
|
+
this._currentClass = 'ui-datepicker-current-day'; // The name of the current day marker class
|
40
|
+
this._dayOverClass = 'ui-datepicker-days-cell-over'; // The name of the day hover marker class
|
41
|
+
this.regional = []; // Available regional settings, indexed by language code
|
42
|
+
this.regional[''] = { // Default regional settings
|
43
|
+
closeText: 'Done', // Display text for close link
|
44
|
+
prevText: 'Prev', // Display text for previous month link
|
45
|
+
nextText: 'Next', // Display text for next month link
|
46
|
+
currentText: 'Today', // Display text for current month link
|
47
|
+
monthNames: ['January','February','March','April','May','June',
|
48
|
+
'July','August','September','October','November','December'], // Names of months for drop-down and formatting
|
49
|
+
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], // For formatting
|
50
|
+
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], // For formatting
|
51
|
+
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // For formatting
|
52
|
+
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], // Column headings for days starting at Sunday
|
53
|
+
weekHeader: 'Wk', // Column header for week of the year
|
54
|
+
dateFormat: 'mm/dd/yy', // See format options on parseDate
|
55
|
+
firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
|
56
|
+
isRTL: false, // True if right-to-left language, false if left-to-right
|
57
|
+
showMonthAfterYear: false, // True if the year select precedes month, false for month then year
|
58
|
+
yearSuffix: '' // Additional text to append to the year in the month headers
|
59
|
+
};
|
60
|
+
this._defaults = { // Global defaults for all the date picker instances
|
61
|
+
showOn: 'focus', // 'focus' for popup on focus,
|
62
|
+
// 'button' for trigger button, or 'both' for either
|
63
|
+
showAnim: 'fadeIn', // Name of jQuery animation for popup
|
64
|
+
showOptions: {}, // Options for enhanced animations
|
65
|
+
defaultDate: null, // Used when field is blank: actual date,
|
66
|
+
// +/-number for offset from today, null for today
|
67
|
+
appendText: '', // Display text following the input box, e.g. showing the format
|
68
|
+
buttonText: '...', // Text for trigger button
|
69
|
+
buttonImage: '', // URL for trigger button image
|
70
|
+
buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
|
71
|
+
hideIfNoPrevNext: false, // True to hide next/previous month links
|
72
|
+
// if not applicable, false to just disable them
|
73
|
+
navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
|
74
|
+
gotoCurrent: false, // True if today link goes back to current selection instead
|
75
|
+
changeMonth: false, // True if month can be selected directly, false if only prev/next
|
76
|
+
changeYear: false, // True if year can be selected directly, false if only prev/next
|
77
|
+
yearRange: 'c-10:c+10', // Range of years to display in drop-down,
|
78
|
+
// either relative to today's year (-nn:+nn), relative to currently displayed year
|
79
|
+
// (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
|
80
|
+
showOtherMonths: false, // True to show dates in other months, false to leave blank
|
81
|
+
selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable
|
82
|
+
showWeek: false, // True to show week of the year, false to not show it
|
83
|
+
calculateWeek: this.iso8601Week, // How to calculate the week of the year,
|
84
|
+
// takes a Date and returns the number of the week for it
|
85
|
+
shortYearCutoff: '+10', // Short year values < this are in the current century,
|
86
|
+
// > this are in the previous century,
|
87
|
+
// string value starting with '+' for current year + value
|
88
|
+
minDate: null, // The earliest selectable date, or null for no limit
|
89
|
+
maxDate: null, // The latest selectable date, or null for no limit
|
90
|
+
duration: 'fast', // Duration of display/closure
|
91
|
+
beforeShowDay: null, // Function that takes a date and returns an array with
|
92
|
+
// [0] = true if selectable, false if not, [1] = custom CSS class name(s) or '',
|
93
|
+
// [2] = cell title (optional), e.g. $.datepicker.noWeekends
|
94
|
+
beforeShow: null, // Function that takes an input field and
|
95
|
+
// returns a set of custom settings for the date picker
|
96
|
+
onSelect: null, // Define a callback function when a date is selected
|
97
|
+
onChangeMonthYear: null, // Define a callback function when the month or year is changed
|
98
|
+
onClose: null, // Define a callback function when the datepicker is closed
|
99
|
+
numberOfMonths: 1, // Number of months to show at a time
|
100
|
+
showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)
|
101
|
+
stepMonths: 1, // Number of months to step back/forward
|
102
|
+
stepBigMonths: 12, // Number of months to step back/forward for the big links
|
103
|
+
altField: '', // Selector for an alternate field to store selected dates into
|
104
|
+
altFormat: '', // The date format to use for the alternate field
|
105
|
+
constrainInput: true, // The input is constrained by the current date format
|
106
|
+
showButtonPanel: false, // True to show button panel, false to not show it
|
107
|
+
autoSize: false // True to size the input for the date format, false to leave as is
|
108
|
+
};
|
109
|
+
$.extend(this._defaults, this.regional['']);
|
110
|
+
this.dpDiv = $('<div id="' + this._mainDivId + '" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>');
|
111
|
+
}
|
112
|
+
|
113
|
+
$.extend(Datepicker.prototype, {
|
114
|
+
/* Class name added to elements to indicate already configured with a date picker. */
|
115
|
+
markerClassName: 'hasDatepicker',
|
116
|
+
|
117
|
+
/* Debug logging (if enabled). */
|
118
|
+
log: function () {
|
119
|
+
if (this.debug)
|
120
|
+
console.log.apply('', arguments);
|
121
|
+
},
|
122
|
+
|
123
|
+
// TODO rename to "widget" when switching to widget factory
|
124
|
+
_widgetDatepicker: function() {
|
125
|
+
return this.dpDiv;
|
126
|
+
},
|
127
|
+
|
128
|
+
/* Override the default settings for all instances of the date picker.
|
129
|
+
@param settings object - the new settings to use as defaults (anonymous object)
|
130
|
+
@return the manager object */
|
131
|
+
setDefaults: function(settings) {
|
132
|
+
extendRemove(this._defaults, settings || {});
|
133
|
+
return this;
|
134
|
+
},
|
135
|
+
|
136
|
+
/* Attach the date picker to a jQuery selection.
|
137
|
+
@param target element - the target input field or division or span
|
138
|
+
@param settings object - the new settings to use for this date picker instance (anonymous) */
|
139
|
+
_attachDatepicker: function(target, settings) {
|
140
|
+
// check for settings on the control itself - in namespace 'date:'
|
141
|
+
var inlineSettings = null;
|
142
|
+
for (var attrName in this._defaults) {
|
143
|
+
var attrValue = target.getAttribute('date:' + attrName);
|
144
|
+
if (attrValue) {
|
145
|
+
inlineSettings = inlineSettings || {};
|
146
|
+
try {
|
147
|
+
inlineSettings[attrName] = eval(attrValue);
|
148
|
+
} catch (err) {
|
149
|
+
inlineSettings[attrName] = attrValue;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
var nodeName = target.nodeName.toLowerCase();
|
154
|
+
var inline = (nodeName == 'div' || nodeName == 'span');
|
155
|
+
if (!target.id) {
|
156
|
+
this.uuid += 1;
|
157
|
+
target.id = 'dp' + this.uuid;
|
158
|
+
}
|
159
|
+
var inst = this._newInst($(target), inline);
|
160
|
+
inst.settings = $.extend({}, settings || {}, inlineSettings || {});
|
161
|
+
if (nodeName == 'input') {
|
162
|
+
this._connectDatepicker(target, inst);
|
163
|
+
} else if (inline) {
|
164
|
+
this._inlineDatepicker(target, inst);
|
165
|
+
}
|
166
|
+
},
|
167
|
+
|
168
|
+
/* Create a new instance object. */
|
169
|
+
_newInst: function(target, inline) {
|
170
|
+
var id = target[0].id.replace(/([^A-Za-z0-9_-])/g, '\\\\$1'); // escape jQuery meta chars
|
171
|
+
return {id: id, input: target, // associated target
|
172
|
+
selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
|
173
|
+
drawMonth: 0, drawYear: 0, // month being drawn
|
174
|
+
inline: inline, // is datepicker inline or not
|
175
|
+
dpDiv: (!inline ? this.dpDiv : // presentation div
|
176
|
+
$('<div class="' + this._inlineClass + ' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))};
|
177
|
+
},
|
178
|
+
|
179
|
+
/* Attach the date picker to an input field. */
|
180
|
+
_connectDatepicker: function(target, inst) {
|
181
|
+
var input = $(target);
|
182
|
+
inst.append = $([]);
|
183
|
+
inst.trigger = $([]);
|
184
|
+
if (input.hasClass(this.markerClassName))
|
185
|
+
return;
|
186
|
+
this._attachments(input, inst);
|
187
|
+
input.addClass(this.markerClassName).keydown(this._doKeyDown).
|
188
|
+
keypress(this._doKeyPress).keyup(this._doKeyUp).
|
189
|
+
bind("setData.datepicker", function(event, key, value) {
|
190
|
+
inst.settings[key] = value;
|
191
|
+
}).bind("getData.datepicker", function(event, key) {
|
192
|
+
return this._get(inst, key);
|
193
|
+
});
|
194
|
+
this._autoSize(inst);
|
195
|
+
$.data(target, PROP_NAME, inst);
|
196
|
+
},
|
197
|
+
|
198
|
+
/* Make attachments based on settings. */
|
199
|
+
_attachments: function(input, inst) {
|
200
|
+
var appendText = this._get(inst, 'appendText');
|
201
|
+
var isRTL = this._get(inst, 'isRTL');
|
202
|
+
if (inst.append)
|
203
|
+
inst.append.remove();
|
204
|
+
if (appendText) {
|
205
|
+
inst.append = $('<span class="' + this._appendClass + '">' + appendText + '</span>');
|
206
|
+
input[isRTL ? 'before' : 'after'](inst.append);
|
207
|
+
}
|
208
|
+
input.unbind('focus', this._showDatepicker);
|
209
|
+
if (inst.trigger)
|
210
|
+
inst.trigger.remove();
|
211
|
+
var showOn = this._get(inst, 'showOn');
|
212
|
+
if (showOn == 'focus' || showOn == 'both') // pop-up date picker when in the marked field
|
213
|
+
input.focus(this._showDatepicker);
|
214
|
+
if (showOn == 'button' || showOn == 'both') { // pop-up date picker when button clicked
|
215
|
+
var buttonText = this._get(inst, 'buttonText');
|
216
|
+
var buttonImage = this._get(inst, 'buttonImage');
|
217
|
+
inst.trigger = $(this._get(inst, 'buttonImageOnly') ?
|
218
|
+
$('<img/>').addClass(this._triggerClass).
|
219
|
+
attr({ src: buttonImage, alt: buttonText, title: buttonText }) :
|
220
|
+
$('<button type="button"></button>').addClass(this._triggerClass).
|
221
|
+
html(buttonImage == '' ? buttonText : $('<img/>').attr(
|
222
|
+
{ src:buttonImage, alt:buttonText, title:buttonText })));
|
223
|
+
input[isRTL ? 'before' : 'after'](inst.trigger);
|
224
|
+
inst.trigger.click(function() {
|
225
|
+
if ($.datepicker._datepickerShowing && $.datepicker._lastInput == input[0])
|
226
|
+
$.datepicker._hideDatepicker();
|
227
|
+
else
|
228
|
+
$.datepicker._showDatepicker(input[0]);
|
229
|
+
return false;
|
230
|
+
});
|
231
|
+
}
|
232
|
+
},
|
233
|
+
|
234
|
+
/* Apply the maximum length for the date format. */
|
235
|
+
_autoSize: function(inst) {
|
236
|
+
if (this._get(inst, 'autoSize') && !inst.inline) {
|
237
|
+
var date = new Date(2009, 12 - 1, 20); // Ensure double digits
|
238
|
+
var dateFormat = this._get(inst, 'dateFormat');
|
239
|
+
if (dateFormat.match(/[DM]/)) {
|
240
|
+
var findMax = function(names) {
|
241
|
+
var max = 0;
|
242
|
+
var maxI = 0;
|
243
|
+
for (var i = 0; i < names.length; i++) {
|
244
|
+
if (names[i].length > max) {
|
245
|
+
max = names[i].length;
|
246
|
+
maxI = i;
|
247
|
+
}
|
248
|
+
}
|
249
|
+
return maxI;
|
250
|
+
};
|
251
|
+
date.setMonth(findMax(this._get(inst, (dateFormat.match(/MM/) ?
|
252
|
+
'monthNames' : 'monthNamesShort'))));
|
253
|
+
date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ?
|
254
|
+
'dayNames' : 'dayNamesShort'))) + 20 - date.getDay());
|
255
|
+
}
|
256
|
+
inst.input.attr('size', this._formatDate(inst, date).length);
|
257
|
+
}
|
258
|
+
},
|
259
|
+
|
260
|
+
/* Attach an inline date picker to a div. */
|
261
|
+
_inlineDatepicker: function(target, inst) {
|
262
|
+
var divSpan = $(target);
|
263
|
+
if (divSpan.hasClass(this.markerClassName))
|
264
|
+
return;
|
265
|
+
divSpan.addClass(this.markerClassName).append(inst.dpDiv).
|
266
|
+
bind("setData.datepicker", function(event, key, value){
|
267
|
+
inst.settings[key] = value;
|
268
|
+
}).bind("getData.datepicker", function(event, key){
|
269
|
+
return this._get(inst, key);
|
270
|
+
});
|
271
|
+
$.data(target, PROP_NAME, inst);
|
272
|
+
this._setDate(inst, this._getDefaultDate(inst), true);
|
273
|
+
this._updateDatepicker(inst);
|
274
|
+
this._updateAlternate(inst);
|
275
|
+
inst.dpDiv.show();
|
276
|
+
},
|
277
|
+
|
278
|
+
/* Pop-up the date picker in a "dialog" box.
|
279
|
+
@param input element - ignored
|
280
|
+
@param date string or Date - the initial date to display
|
281
|
+
@param onSelect function - the function to call when a date is selected
|
282
|
+
@param settings object - update the dialog date picker instance's settings (anonymous object)
|
283
|
+
@param pos int[2] - coordinates for the dialog's position within the screen or
|
284
|
+
event - with x/y coordinates or
|
285
|
+
leave empty for default (screen centre)
|
286
|
+
@return the manager object */
|
287
|
+
_dialogDatepicker: function(input, date, onSelect, settings, pos) {
|
288
|
+
var inst = this._dialogInst; // internal instance
|
289
|
+
if (!inst) {
|
290
|
+
this.uuid += 1;
|
291
|
+
var id = 'dp' + this.uuid;
|
292
|
+
this._dialogInput = $('<input type="text" id="' + id +
|
293
|
+
'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');
|
294
|
+
this._dialogInput.keydown(this._doKeyDown);
|
295
|
+
$('body').append(this._dialogInput);
|
296
|
+
inst = this._dialogInst = this._newInst(this._dialogInput, false);
|
297
|
+
inst.settings = {};
|
298
|
+
$.data(this._dialogInput[0], PROP_NAME, inst);
|
299
|
+
}
|
300
|
+
extendRemove(inst.settings, settings || {});
|
301
|
+
date = (date && date.constructor == Date ? this._formatDate(inst, date) : date);
|
302
|
+
this._dialogInput.val(date);
|
303
|
+
|
304
|
+
this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);
|
305
|
+
if (!this._pos) {
|
306
|
+
var browserWidth = document.documentElement.clientWidth;
|
307
|
+
var browserHeight = document.documentElement.clientHeight;
|
308
|
+
var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
|
309
|
+
var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
|
310
|
+
this._pos = // should use actual width/height below
|
311
|
+
[(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];
|
312
|
+
}
|
313
|
+
|
314
|
+
// move input on screen for focus, but hidden behind dialog
|
315
|
+
this._dialogInput.css('left', (this._pos[0] + 20) + 'px').css('top', this._pos[1] + 'px');
|
316
|
+
inst.settings.onSelect = onSelect;
|
317
|
+
this._inDialog = true;
|
318
|
+
this.dpDiv.addClass(this._dialogClass);
|
319
|
+
this._showDatepicker(this._dialogInput[0]);
|
320
|
+
if ($.blockUI)
|
321
|
+
$.blockUI(this.dpDiv);
|
322
|
+
$.data(this._dialogInput[0], PROP_NAME, inst);
|
323
|
+
return this;
|
324
|
+
},
|
325
|
+
|
326
|
+
/* Detach a datepicker from its control.
|
327
|
+
@param target element - the target input field or division or span */
|
328
|
+
_destroyDatepicker: function(target) {
|
329
|
+
var $target = $(target);
|
330
|
+
var inst = $.data(target, PROP_NAME);
|
331
|
+
if (!$target.hasClass(this.markerClassName)) {
|
332
|
+
return;
|
333
|
+
}
|
334
|
+
var nodeName = target.nodeName.toLowerCase();
|
335
|
+
$.removeData(target, PROP_NAME);
|
336
|
+
if (nodeName == 'input') {
|
337
|
+
inst.append.remove();
|
338
|
+
inst.trigger.remove();
|
339
|
+
$target.removeClass(this.markerClassName).
|
340
|
+
unbind('focus', this._showDatepicker).
|
341
|
+
unbind('keydown', this._doKeyDown).
|
342
|
+
unbind('keypress', this._doKeyPress).
|
343
|
+
unbind('keyup', this._doKeyUp);
|
344
|
+
} else if (nodeName == 'div' || nodeName == 'span')
|
345
|
+
$target.removeClass(this.markerClassName).empty();
|
346
|
+
},
|
347
|
+
|
348
|
+
/* Enable the date picker to a jQuery selection.
|
349
|
+
@param target element - the target input field or division or span */
|
350
|
+
_enableDatepicker: function(target) {
|
351
|
+
var $target = $(target);
|
352
|
+
var inst = $.data(target, PROP_NAME);
|
353
|
+
if (!$target.hasClass(this.markerClassName)) {
|
354
|
+
return;
|
355
|
+
}
|
356
|
+
var nodeName = target.nodeName.toLowerCase();
|
357
|
+
if (nodeName == 'input') {
|
358
|
+
target.disabled = false;
|
359
|
+
inst.trigger.filter('button').
|
360
|
+
each(function() { this.disabled = false; }).end().
|
361
|
+
filter('img').css({opacity: '1.0', cursor: ''});
|
362
|
+
}
|
363
|
+
else if (nodeName == 'div' || nodeName == 'span') {
|
364
|
+
var inline = $target.children('.' + this._inlineClass);
|
365
|
+
inline.children().removeClass('ui-state-disabled');
|
366
|
+
}
|
367
|
+
this._disabledInputs = $.map(this._disabledInputs,
|
368
|
+
function(value) { return (value == target ? null : value); }); // delete entry
|
369
|
+
},
|
370
|
+
|
371
|
+
/* Disable the date picker to a jQuery selection.
|
372
|
+
@param target element - the target input field or division or span */
|
373
|
+
_disableDatepicker: function(target) {
|
374
|
+
var $target = $(target);
|
375
|
+
var inst = $.data(target, PROP_NAME);
|
376
|
+
if (!$target.hasClass(this.markerClassName)) {
|
377
|
+
return;
|
378
|
+
}
|
379
|
+
var nodeName = target.nodeName.toLowerCase();
|
380
|
+
if (nodeName == 'input') {
|
381
|
+
target.disabled = true;
|
382
|
+
inst.trigger.filter('button').
|
383
|
+
each(function() { this.disabled = true; }).end().
|
384
|
+
filter('img').css({opacity: '0.5', cursor: 'default'});
|
385
|
+
}
|
386
|
+
else if (nodeName == 'div' || nodeName == 'span') {
|
387
|
+
var inline = $target.children('.' + this._inlineClass);
|
388
|
+
inline.children().addClass('ui-state-disabled');
|
389
|
+
}
|
390
|
+
this._disabledInputs = $.map(this._disabledInputs,
|
391
|
+
function(value) { return (value == target ? null : value); }); // delete entry
|
392
|
+
this._disabledInputs[this._disabledInputs.length] = target;
|
393
|
+
},
|
394
|
+
|
395
|
+
/* Is the first field in a jQuery collection disabled as a datepicker?
|
396
|
+
@param target element - the target input field or division or span
|
397
|
+
@return boolean - true if disabled, false if enabled */
|
398
|
+
_isDisabledDatepicker: function(target) {
|
399
|
+
if (!target) {
|
400
|
+
return false;
|
401
|
+
}
|
402
|
+
for (var i = 0; i < this._disabledInputs.length; i++) {
|
403
|
+
if (this._disabledInputs[i] == target)
|
404
|
+
return true;
|
405
|
+
}
|
406
|
+
return false;
|
407
|
+
},
|
408
|
+
|
409
|
+
/* Retrieve the instance data for the target control.
|
410
|
+
@param target element - the target input field or division or span
|
411
|
+
@return object - the associated instance data
|
412
|
+
@throws error if a jQuery problem getting data */
|
413
|
+
_getInst: function(target) {
|
414
|
+
try {
|
415
|
+
return $.data(target, PROP_NAME);
|
416
|
+
}
|
417
|
+
catch (err) {
|
418
|
+
throw 'Missing instance data for this datepicker';
|
419
|
+
}
|
420
|
+
},
|
421
|
+
|
422
|
+
/* Update or retrieve the settings for a date picker attached to an input field or division.
|
423
|
+
@param target element - the target input field or division or span
|
424
|
+
@param name object - the new settings to update or
|
425
|
+
string - the name of the setting to change or retrieve,
|
426
|
+
when retrieving also 'all' for all instance settings or
|
427
|
+
'defaults' for all global defaults
|
428
|
+
@param value any - the new value for the setting
|
429
|
+
(omit if above is an object or to retrieve a value) */
|
430
|
+
_optionDatepicker: function(target, name, value) {
|
431
|
+
var inst = this._getInst(target);
|
432
|
+
if (arguments.length == 2 && typeof name == 'string') {
|
433
|
+
return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :
|
434
|
+
(inst ? (name == 'all' ? $.extend({}, inst.settings) :
|
435
|
+
this._get(inst, name)) : null));
|
436
|
+
}
|
437
|
+
var settings = name || {};
|
438
|
+
if (typeof name == 'string') {
|
439
|
+
settings = {};
|
440
|
+
settings[name] = value;
|
441
|
+
}
|
442
|
+
if (inst) {
|
443
|
+
if (this._curInst == inst) {
|
444
|
+
this._hideDatepicker();
|
445
|
+
}
|
446
|
+
var date = this._getDateDatepicker(target, true);
|
447
|
+
var minDate = this._getMinMaxDate(inst, 'min');
|
448
|
+
var maxDate = this._getMinMaxDate(inst, 'max');
|
449
|
+
extendRemove(inst.settings, settings);
|
450
|
+
// reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided
|
451
|
+
if (minDate !== null && settings['dateFormat'] !== undefined && settings['minDate'] === undefined)
|
452
|
+
inst.settings.minDate = this._formatDate(inst, minDate);
|
453
|
+
if (maxDate !== null && settings['dateFormat'] !== undefined && settings['maxDate'] === undefined)
|
454
|
+
inst.settings.maxDate = this._formatDate(inst, maxDate);
|
455
|
+
this._attachments($(target), inst);
|
456
|
+
this._autoSize(inst);
|
457
|
+
this._setDateDatepicker(target, date);
|
458
|
+
this._updateDatepicker(inst);
|
459
|
+
}
|
460
|
+
},
|
461
|
+
|
462
|
+
// change method deprecated
|
463
|
+
_changeDatepicker: function(target, name, value) {
|
464
|
+
this._optionDatepicker(target, name, value);
|
465
|
+
},
|
466
|
+
|
467
|
+
/* Redraw the date picker attached to an input field or division.
|
468
|
+
@param target element - the target input field or division or span */
|
469
|
+
_refreshDatepicker: function(target) {
|
470
|
+
var inst = this._getInst(target);
|
471
|
+
if (inst) {
|
472
|
+
this._updateDatepicker(inst);
|
473
|
+
}
|
474
|
+
},
|
475
|
+
|
476
|
+
/* Set the dates for a jQuery selection.
|
477
|
+
@param target element - the target input field or division or span
|
478
|
+
@param date Date - the new date */
|
479
|
+
_setDateDatepicker: function(target, date) {
|
480
|
+
var inst = this._getInst(target);
|
481
|
+
if (inst) {
|
482
|
+
this._setDate(inst, date);
|
483
|
+
this._updateDatepicker(inst);
|
484
|
+
this._updateAlternate(inst);
|
485
|
+
}
|
486
|
+
},
|
487
|
+
|
488
|
+
/* Get the date(s) for the first entry in a jQuery selection.
|
489
|
+
@param target element - the target input field or division or span
|
490
|
+
@param noDefault boolean - true if no default date is to be used
|
491
|
+
@return Date - the current date */
|
492
|
+
_getDateDatepicker: function(target, noDefault) {
|
493
|
+
var inst = this._getInst(target);
|
494
|
+
if (inst && !inst.inline)
|
495
|
+
this._setDateFromField(inst, noDefault);
|
496
|
+
return (inst ? this._getDate(inst) : null);
|
497
|
+
},
|
498
|
+
|
499
|
+
/* Handle keystrokes. */
|
500
|
+
_doKeyDown: function(event) {
|
501
|
+
var inst = $.datepicker._getInst(event.target);
|
502
|
+
var handled = true;
|
503
|
+
var isRTL = inst.dpDiv.is('.ui-datepicker-rtl');
|
504
|
+
inst._keyEvent = true;
|
505
|
+
if ($.datepicker._datepickerShowing)
|
506
|
+
switch (event.keyCode) {
|
507
|
+
case 9: $.datepicker._hideDatepicker();
|
508
|
+
handled = false;
|
509
|
+
break; // hide on tab out
|
510
|
+
case 13: var sel = $('td.' + $.datepicker._dayOverClass + ':not(.' +
|
511
|
+
$.datepicker._currentClass + ')', inst.dpDiv);
|
512
|
+
if (sel[0])
|
513
|
+
$.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]);
|
514
|
+
else
|
515
|
+
$.datepicker._hideDatepicker();
|
516
|
+
return false; // don't submit the form
|
517
|
+
break; // select the value on enter
|
518
|
+
case 27: $.datepicker._hideDatepicker();
|
519
|
+
break; // hide on escape
|
520
|
+
case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ?
|
521
|
+
-$.datepicker._get(inst, 'stepBigMonths') :
|
522
|
+
-$.datepicker._get(inst, 'stepMonths')), 'M');
|
523
|
+
break; // previous month/year on page up/+ ctrl
|
524
|
+
case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ?
|
525
|
+
+$.datepicker._get(inst, 'stepBigMonths') :
|
526
|
+
+$.datepicker._get(inst, 'stepMonths')), 'M');
|
527
|
+
break; // next month/year on page down/+ ctrl
|
528
|
+
case 35: if (event.ctrlKey || event.metaKey) $.datepicker._clearDate(event.target);
|
529
|
+
handled = event.ctrlKey || event.metaKey;
|
530
|
+
break; // clear on ctrl or command +end
|
531
|
+
case 36: if (event.ctrlKey || event.metaKey) $.datepicker._gotoToday(event.target);
|
532
|
+
handled = event.ctrlKey || event.metaKey;
|
533
|
+
break; // current on ctrl or command +home
|
534
|
+
case 37: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), 'D');
|
535
|
+
handled = event.ctrlKey || event.metaKey;
|
536
|
+
// -1 day on ctrl or command +left
|
537
|
+
if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ?
|
538
|
+
-$.datepicker._get(inst, 'stepBigMonths') :
|
539
|
+
-$.datepicker._get(inst, 'stepMonths')), 'M');
|
540
|
+
// next month/year on alt +left on Mac
|
541
|
+
break;
|
542
|
+
case 38: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, -7, 'D');
|
543
|
+
handled = event.ctrlKey || event.metaKey;
|
544
|
+
break; // -1 week on ctrl or command +up
|
545
|
+
case 39: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), 'D');
|
546
|
+
handled = event.ctrlKey || event.metaKey;
|
547
|
+
// +1 day on ctrl or command +right
|
548
|
+
if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ?
|
549
|
+
+$.datepicker._get(inst, 'stepBigMonths') :
|
550
|
+
+$.datepicker._get(inst, 'stepMonths')), 'M');
|
551
|
+
// next month/year on alt +right
|
552
|
+
break;
|
553
|
+
case 40: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, +7, 'D');
|
554
|
+
handled = event.ctrlKey || event.metaKey;
|
555
|
+
break; // +1 week on ctrl or command +down
|
556
|
+
default: handled = false;
|
557
|
+
}
|
558
|
+
else if (event.keyCode == 36 && event.ctrlKey) // display the date picker on ctrl+home
|
559
|
+
$.datepicker._showDatepicker(this);
|
560
|
+
else {
|
561
|
+
handled = false;
|
562
|
+
}
|
563
|
+
if (handled) {
|
564
|
+
event.preventDefault();
|
565
|
+
event.stopPropagation();
|
566
|
+
}
|
567
|
+
},
|
568
|
+
|
569
|
+
/* Filter entered characters - based on date format. */
|
570
|
+
_doKeyPress: function(event) {
|
571
|
+
var inst = $.datepicker._getInst(event.target);
|
572
|
+
if ($.datepicker._get(inst, 'constrainInput')) {
|
573
|
+
var chars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat'));
|
574
|
+
var chr = String.fromCharCode(event.charCode == undefined ? event.keyCode : event.charCode);
|
575
|
+
return event.ctrlKey || event.metaKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1);
|
576
|
+
}
|
577
|
+
},
|
578
|
+
|
579
|
+
/* Synchronise manual entry and field/alternate field. */
|
580
|
+
_doKeyUp: function(event) {
|
581
|
+
var inst = $.datepicker._getInst(event.target);
|
582
|
+
if (inst.input.val() != inst.lastVal) {
|
583
|
+
try {
|
584
|
+
var date = $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),
|
585
|
+
(inst.input ? inst.input.val() : null),
|
586
|
+
$.datepicker._getFormatConfig(inst));
|
587
|
+
if (date) { // only if valid
|
588
|
+
$.datepicker._setDateFromField(inst);
|
589
|
+
$.datepicker._updateAlternate(inst);
|
590
|
+
$.datepicker._updateDatepicker(inst);
|
591
|
+
}
|
592
|
+
}
|
593
|
+
catch (event) {
|
594
|
+
$.datepicker.log(event);
|
595
|
+
}
|
596
|
+
}
|
597
|
+
return true;
|
598
|
+
},
|
599
|
+
|
600
|
+
/* Pop-up the date picker for a given input field.
|
601
|
+
@param input element - the input field attached to the date picker or
|
602
|
+
event - if triggered by focus */
|
603
|
+
_showDatepicker: function(input) {
|
604
|
+
input = input.target || input;
|
605
|
+
if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
|
606
|
+
input = $('input', input.parentNode)[0];
|
607
|
+
if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here
|
608
|
+
return;
|
609
|
+
var inst = $.datepicker._getInst(input);
|
610
|
+
if ($.datepicker._curInst && $.datepicker._curInst != inst) {
|
611
|
+
$.datepicker._curInst.dpDiv.stop(true, true);
|
612
|
+
}
|
613
|
+
var beforeShow = $.datepicker._get(inst, 'beforeShow');
|
614
|
+
extendRemove(inst.settings, (beforeShow ? beforeShow.apply(input, [input, inst]) : {}));
|
615
|
+
inst.lastVal = null;
|
616
|
+
$.datepicker._lastInput = input;
|
617
|
+
$.datepicker._setDateFromField(inst);
|
618
|
+
if ($.datepicker._inDialog) // hide cursor
|
619
|
+
input.value = '';
|
620
|
+
if (!$.datepicker._pos) { // position below input
|
621
|
+
$.datepicker._pos = $.datepicker._findPos(input);
|
622
|
+
$.datepicker._pos[1] += input.offsetHeight; // add the height
|
623
|
+
}
|
624
|
+
var isFixed = false;
|
625
|
+
$(input).parents().each(function() {
|
626
|
+
isFixed |= $(this).css('position') == 'fixed';
|
627
|
+
return !isFixed;
|
628
|
+
});
|
629
|
+
if (isFixed && $.browser.opera) { // correction for Opera when fixed and scrolled
|
630
|
+
$.datepicker._pos[0] -= document.documentElement.scrollLeft;
|
631
|
+
$.datepicker._pos[1] -= document.documentElement.scrollTop;
|
632
|
+
}
|
633
|
+
var offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]};
|
634
|
+
$.datepicker._pos = null;
|
635
|
+
//to avoid flashes on Firefox
|
636
|
+
inst.dpDiv.empty();
|
637
|
+
// determine sizing offscreen
|
638
|
+
inst.dpDiv.css({position: 'absolute', display: 'block', top: '-1000px'});
|
639
|
+
$.datepicker._updateDatepicker(inst);
|
640
|
+
// fix width for dynamic number of date pickers
|
641
|
+
// and adjust position before showing
|
642
|
+
offset = $.datepicker._checkOffset(inst, offset, isFixed);
|
643
|
+
inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ?
|
644
|
+
'static' : (isFixed ? 'fixed' : 'absolute')), display: 'none',
|
645
|
+
left: offset.left + 'px', top: offset.top + 'px'});
|
646
|
+
if (!inst.inline) {
|
647
|
+
var showAnim = $.datepicker._get(inst, 'showAnim');
|
648
|
+
var duration = $.datepicker._get(inst, 'duration');
|
649
|
+
var postProcess = function() {
|
650
|
+
$.datepicker._datepickerShowing = true;
|
651
|
+
var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only
|
652
|
+
if( !! cover.length ){
|
653
|
+
var borders = $.datepicker._getBorders(inst.dpDiv);
|
654
|
+
cover.css({left: -borders[0], top: -borders[1],
|
655
|
+
width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()});
|
656
|
+
}
|
657
|
+
};
|
658
|
+
inst.dpDiv.zIndex($(input).zIndex()+1);
|
659
|
+
|
660
|
+
// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
|
661
|
+
if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) )
|
662
|
+
inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
|
663
|
+
else
|
664
|
+
inst.dpDiv[showAnim || 'show']((showAnim ? duration : null), postProcess);
|
665
|
+
if (!showAnim || !duration)
|
666
|
+
postProcess();
|
667
|
+
if (inst.input.is(':visible') && !inst.input.is(':disabled'))
|
668
|
+
inst.input.focus();
|
669
|
+
$.datepicker._curInst = inst;
|
670
|
+
}
|
671
|
+
},
|
672
|
+
|
673
|
+
/* Generate the date picker content. */
|
674
|
+
_updateDatepicker: function(inst) {
|
675
|
+
var self = this;
|
676
|
+
var borders = $.datepicker._getBorders(inst.dpDiv);
|
677
|
+
inst.dpDiv.empty().append(this._generateHTML(inst));
|
678
|
+
var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only
|
679
|
+
if( !!cover.length ){ //avoid call to outerXXXX() when not in IE6
|
680
|
+
cover.css({left: -borders[0], top: -borders[1], width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()})
|
681
|
+
}
|
682
|
+
inst.dpDiv.find('button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a')
|
683
|
+
.bind('mouseout', function(){
|
684
|
+
$(this).removeClass('ui-state-hover');
|
685
|
+
if(this.className.indexOf('ui-datepicker-prev') != -1) $(this).removeClass('ui-datepicker-prev-hover');
|
686
|
+
if(this.className.indexOf('ui-datepicker-next') != -1) $(this).removeClass('ui-datepicker-next-hover');
|
687
|
+
})
|
688
|
+
.bind('mouseover', function(){
|
689
|
+
if (!self._isDisabledDatepicker( inst.inline ? inst.dpDiv.parent()[0] : inst.input[0])) {
|
690
|
+
$(this).parents('.ui-datepicker-calendar').find('a').removeClass('ui-state-hover');
|
691
|
+
$(this).addClass('ui-state-hover');
|
692
|
+
if(this.className.indexOf('ui-datepicker-prev') != -1) $(this).addClass('ui-datepicker-prev-hover');
|
693
|
+
if(this.className.indexOf('ui-datepicker-next') != -1) $(this).addClass('ui-datepicker-next-hover');
|
694
|
+
}
|
695
|
+
})
|
696
|
+
.end()
|
697
|
+
.find('.' + this._dayOverClass + ' a')
|
698
|
+
.trigger('mouseover')
|
699
|
+
.end();
|
700
|
+
var numMonths = this._getNumberOfMonths(inst);
|
701
|
+
var cols = numMonths[1];
|
702
|
+
var width = 17;
|
703
|
+
if (cols > 1)
|
704
|
+
inst.dpDiv.addClass('ui-datepicker-multi-' + cols).css('width', (width * cols) + 'em');
|
705
|
+
else
|
706
|
+
inst.dpDiv.removeClass('ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4').width('');
|
707
|
+
inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? 'add' : 'remove') +
|
708
|
+
'Class']('ui-datepicker-multi');
|
709
|
+
inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') +
|
710
|
+
'Class']('ui-datepicker-rtl');
|
711
|
+
if (inst == $.datepicker._curInst && $.datepicker._datepickerShowing && inst.input &&
|
712
|
+
// #6694 - don't focus the input if it's already focused
|
713
|
+
// this breaks the change event in IE
|
714
|
+
inst.input.is(':visible') && !inst.input.is(':disabled') && inst.input[0] != document.activeElement)
|
715
|
+
inst.input.focus();
|
716
|
+
// deffered render of the years select (to avoid flashes on Firefox)
|
717
|
+
if( inst.yearshtml ){
|
718
|
+
var origyearshtml = inst.yearshtml;
|
719
|
+
setTimeout(function(){
|
720
|
+
//assure that inst.yearshtml didn't change.
|
721
|
+
if( origyearshtml === inst.yearshtml ){
|
722
|
+
inst.dpDiv.find('select.ui-datepicker-year:first').replaceWith(inst.yearshtml);
|
723
|
+
}
|
724
|
+
origyearshtml = inst.yearshtml = null;
|
725
|
+
}, 0);
|
726
|
+
}
|
727
|
+
},
|
728
|
+
|
729
|
+
/* Retrieve the size of left and top borders for an element.
|
730
|
+
@param elem (jQuery object) the element of interest
|
731
|
+
@return (number[2]) the left and top borders */
|
732
|
+
_getBorders: function(elem) {
|
733
|
+
var convert = function(value) {
|
734
|
+
return {thin: 1, medium: 2, thick: 3}[value] || value;
|
735
|
+
};
|
736
|
+
return [parseFloat(convert(elem.css('border-left-width'))),
|
737
|
+
parseFloat(convert(elem.css('border-top-width')))];
|
738
|
+
},
|
739
|
+
|
740
|
+
/* Check positioning to remain on screen. */
|
741
|
+
_checkOffset: function(inst, offset, isFixed) {
|
742
|
+
var dpWidth = inst.dpDiv.outerWidth();
|
743
|
+
var dpHeight = inst.dpDiv.outerHeight();
|
744
|
+
var inputWidth = inst.input ? inst.input.outerWidth() : 0;
|
745
|
+
var inputHeight = inst.input ? inst.input.outerHeight() : 0;
|
746
|
+
var viewWidth = document.documentElement.clientWidth + $(document).scrollLeft();
|
747
|
+
var viewHeight = document.documentElement.clientHeight + $(document).scrollTop();
|
748
|
+
|
749
|
+
offset.left -= (this._get(inst, 'isRTL') ? (dpWidth - inputWidth) : 0);
|
750
|
+
offset.left -= (isFixed && offset.left == inst.input.offset().left) ? $(document).scrollLeft() : 0;
|
751
|
+
offset.top -= (isFixed && offset.top == (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0;
|
752
|
+
|
753
|
+
// now check if datepicker is showing outside window viewport - move to a better place if so.
|
754
|
+
offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ?
|
755
|
+
Math.abs(offset.left + dpWidth - viewWidth) : 0);
|
756
|
+
offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ?
|
757
|
+
Math.abs(dpHeight + inputHeight) : 0);
|
758
|
+
|
759
|
+
return offset;
|
760
|
+
},
|
761
|
+
|
762
|
+
/* Find an object's position on the screen. */
|
763
|
+
_findPos: function(obj) {
|
764
|
+
var inst = this._getInst(obj);
|
765
|
+
var isRTL = this._get(inst, 'isRTL');
|
766
|
+
while (obj && (obj.type == 'hidden' || obj.nodeType != 1 || $.expr.filters.hidden(obj))) {
|
767
|
+
obj = obj[isRTL ? 'previousSibling' : 'nextSibling'];
|
768
|
+
}
|
769
|
+
var position = $(obj).offset();
|
770
|
+
return [position.left, position.top];
|
771
|
+
},
|
772
|
+
|
773
|
+
/* Hide the date picker from view.
|
774
|
+
@param input element - the input field attached to the date picker */
|
775
|
+
_hideDatepicker: function(input) {
|
776
|
+
var inst = this._curInst;
|
777
|
+
if (!inst || (input && inst != $.data(input, PROP_NAME)))
|
778
|
+
return;
|
779
|
+
if (this._datepickerShowing) {
|
780
|
+
var showAnim = this._get(inst, 'showAnim');
|
781
|
+
var duration = this._get(inst, 'duration');
|
782
|
+
var postProcess = function() {
|
783
|
+
$.datepicker._tidyDialog(inst);
|
784
|
+
this._curInst = null;
|
785
|
+
};
|
786
|
+
|
787
|
+
// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
|
788
|
+
if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) )
|
789
|
+
inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
|
790
|
+
else
|
791
|
+
inst.dpDiv[(showAnim == 'slideDown' ? 'slideUp' :
|
792
|
+
(showAnim == 'fadeIn' ? 'fadeOut' : 'hide'))]((showAnim ? duration : null), postProcess);
|
793
|
+
if (!showAnim)
|
794
|
+
postProcess();
|
795
|
+
var onClose = this._get(inst, 'onClose');
|
796
|
+
if (onClose)
|
797
|
+
onClose.apply((inst.input ? inst.input[0] : null),
|
798
|
+
[(inst.input ? inst.input.val() : ''), inst]); // trigger custom callback
|
799
|
+
this._datepickerShowing = false;
|
800
|
+
this._lastInput = null;
|
801
|
+
if (this._inDialog) {
|
802
|
+
this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' });
|
803
|
+
if ($.blockUI) {
|
804
|
+
$.unblockUI();
|
805
|
+
$('body').append(this.dpDiv);
|
806
|
+
}
|
807
|
+
}
|
808
|
+
this._inDialog = false;
|
809
|
+
}
|
810
|
+
},
|
811
|
+
|
812
|
+
/* Tidy up after a dialog display. */
|
813
|
+
_tidyDialog: function(inst) {
|
814
|
+
inst.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker-calendar');
|
815
|
+
},
|
816
|
+
|
817
|
+
/* Close date picker if clicked elsewhere. */
|
818
|
+
_checkExternalClick: function(event) {
|
819
|
+
if (!$.datepicker._curInst)
|
820
|
+
return;
|
821
|
+
var $target = $(event.target);
|
822
|
+
if ($target[0].id != $.datepicker._mainDivId &&
|
823
|
+
$target.parents('#' + $.datepicker._mainDivId).length == 0 &&
|
824
|
+
!$target.hasClass($.datepicker.markerClassName) &&
|
825
|
+
!$target.hasClass($.datepicker._triggerClass) &&
|
826
|
+
$.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI))
|
827
|
+
$.datepicker._hideDatepicker();
|
828
|
+
},
|
829
|
+
|
830
|
+
/* Adjust one of the date sub-fields. */
|
831
|
+
_adjustDate: function(id, offset, period) {
|
832
|
+
var target = $(id);
|
833
|
+
var inst = this._getInst(target[0]);
|
834
|
+
if (this._isDisabledDatepicker(target[0])) {
|
835
|
+
return;
|
836
|
+
}
|
837
|
+
this._adjustInstDate(inst, offset +
|
838
|
+
(period == 'M' ? this._get(inst, 'showCurrentAtPos') : 0), // undo positioning
|
839
|
+
period);
|
840
|
+
this._updateDatepicker(inst);
|
841
|
+
},
|
842
|
+
|
843
|
+
/* Action for current link. */
|
844
|
+
_gotoToday: function(id) {
|
845
|
+
var target = $(id);
|
846
|
+
var inst = this._getInst(target[0]);
|
847
|
+
if (this._get(inst, 'gotoCurrent') && inst.currentDay) {
|
848
|
+
inst.selectedDay = inst.currentDay;
|
849
|
+
inst.drawMonth = inst.selectedMonth = inst.currentMonth;
|
850
|
+
inst.drawYear = inst.selectedYear = inst.currentYear;
|
851
|
+
}
|
852
|
+
else {
|
853
|
+
var date = new Date();
|
854
|
+
inst.selectedDay = date.getDate();
|
855
|
+
inst.drawMonth = inst.selectedMonth = date.getMonth();
|
856
|
+
inst.drawYear = inst.selectedYear = date.getFullYear();
|
857
|
+
}
|
858
|
+
this._notifyChange(inst);
|
859
|
+
this._adjustDate(target);
|
860
|
+
},
|
861
|
+
|
862
|
+
/* Action for selecting a new month/year. */
|
863
|
+
_selectMonthYear: function(id, select, period) {
|
864
|
+
var target = $(id);
|
865
|
+
var inst = this._getInst(target[0]);
|
866
|
+
inst._selectingMonthYear = false;
|
867
|
+
inst['selected' + (period == 'M' ? 'Month' : 'Year')] =
|
868
|
+
inst['draw' + (period == 'M' ? 'Month' : 'Year')] =
|
869
|
+
parseInt(select.options[select.selectedIndex].value,10);
|
870
|
+
this._notifyChange(inst);
|
871
|
+
this._adjustDate(target);
|
872
|
+
},
|
873
|
+
|
874
|
+
/* Restore input focus after not changing month/year. */
|
875
|
+
_clickMonthYear: function(id) {
|
876
|
+
var target = $(id);
|
877
|
+
var inst = this._getInst(target[0]);
|
878
|
+
if (inst.input && inst._selectingMonthYear) {
|
879
|
+
setTimeout(function() {
|
880
|
+
inst.input.focus();
|
881
|
+
}, 0);
|
882
|
+
}
|
883
|
+
inst._selectingMonthYear = !inst._selectingMonthYear;
|
884
|
+
},
|
885
|
+
|
886
|
+
/* Action for selecting a day. */
|
887
|
+
_selectDay: function(id, month, year, td) {
|
888
|
+
var target = $(id);
|
889
|
+
if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) {
|
890
|
+
return;
|
891
|
+
}
|
892
|
+
var inst = this._getInst(target[0]);
|
893
|
+
inst.selectedDay = inst.currentDay = $('a', td).html();
|
894
|
+
inst.selectedMonth = inst.currentMonth = month;
|
895
|
+
inst.selectedYear = inst.currentYear = year;
|
896
|
+
this._selectDate(id, this._formatDate(inst,
|
897
|
+
inst.currentDay, inst.currentMonth, inst.currentYear));
|
898
|
+
},
|
899
|
+
|
900
|
+
/* Erase the input field and hide the date picker. */
|
901
|
+
_clearDate: function(id) {
|
902
|
+
var target = $(id);
|
903
|
+
var inst = this._getInst(target[0]);
|
904
|
+
this._selectDate(target, '');
|
905
|
+
},
|
906
|
+
|
907
|
+
/* Update the input field with the selected date. */
|
908
|
+
_selectDate: function(id, dateStr) {
|
909
|
+
var target = $(id);
|
910
|
+
var inst = this._getInst(target[0]);
|
911
|
+
dateStr = (dateStr != null ? dateStr : this._formatDate(inst));
|
912
|
+
if (inst.input)
|
913
|
+
inst.input.val(dateStr);
|
914
|
+
this._updateAlternate(inst);
|
915
|
+
var onSelect = this._get(inst, 'onSelect');
|
916
|
+
if (onSelect)
|
917
|
+
onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); // trigger custom callback
|
918
|
+
else if (inst.input)
|
919
|
+
inst.input.trigger('change'); // fire the change event
|
920
|
+
if (inst.inline)
|
921
|
+
this._updateDatepicker(inst);
|
922
|
+
else {
|
923
|
+
this._hideDatepicker();
|
924
|
+
this._lastInput = inst.input[0];
|
925
|
+
if (typeof(inst.input[0]) != 'object')
|
926
|
+
inst.input.focus(); // restore focus
|
927
|
+
this._lastInput = null;
|
928
|
+
}
|
929
|
+
},
|
930
|
+
|
931
|
+
/* Update any alternate field to synchronise with the main field. */
|
932
|
+
_updateAlternate: function(inst) {
|
933
|
+
var altField = this._get(inst, 'altField');
|
934
|
+
if (altField) { // update alternate field too
|
935
|
+
var altFormat = this._get(inst, 'altFormat') || this._get(inst, 'dateFormat');
|
936
|
+
var date = this._getDate(inst);
|
937
|
+
var dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst));
|
938
|
+
$(altField).each(function() { $(this).val(dateStr); });
|
939
|
+
}
|
940
|
+
},
|
941
|
+
|
942
|
+
/* Set as beforeShowDay function to prevent selection of weekends.
|
943
|
+
@param date Date - the date to customise
|
944
|
+
@return [boolean, string] - is this date selectable?, what is its CSS class? */
|
945
|
+
noWeekends: function(date) {
|
946
|
+
var day = date.getDay();
|
947
|
+
return [(day > 0 && day < 6), ''];
|
948
|
+
},
|
949
|
+
|
950
|
+
/* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
|
951
|
+
@param date Date - the date to get the week for
|
952
|
+
@return number - the number of the week within the year that contains this date */
|
953
|
+
iso8601Week: function(date) {
|
954
|
+
var checkDate = new Date(date.getTime());
|
955
|
+
// Find Thursday of this week starting on Monday
|
956
|
+
checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));
|
957
|
+
var time = checkDate.getTime();
|
958
|
+
checkDate.setMonth(0); // Compare with Jan 1
|
959
|
+
checkDate.setDate(1);
|
960
|
+
return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;
|
961
|
+
},
|
962
|
+
|
963
|
+
/* Parse a string value into a date object.
|
964
|
+
See formatDate below for the possible formats.
|
965
|
+
|
966
|
+
@param format string - the expected format of the date
|
967
|
+
@param value string - the date in the above format
|
968
|
+
@param settings Object - attributes include:
|
969
|
+
shortYearCutoff number - the cutoff year for determining the century (optional)
|
970
|
+
dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
|
971
|
+
dayNames string[7] - names of the days from Sunday (optional)
|
972
|
+
monthNamesShort string[12] - abbreviated names of the months (optional)
|
973
|
+
monthNames string[12] - names of the months (optional)
|
974
|
+
@return Date - the extracted date value or null if value is blank */
|
975
|
+
parseDate: function (format, value, settings) {
|
976
|
+
if (format == null || value == null)
|
977
|
+
throw 'Invalid arguments';
|
978
|
+
value = (typeof value == 'object' ? value.toString() : value + '');
|
979
|
+
if (value == '')
|
980
|
+
return null;
|
981
|
+
var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff;
|
982
|
+
shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff :
|
983
|
+
new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
|
984
|
+
var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
|
985
|
+
var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
|
986
|
+
var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
|
987
|
+
var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
|
988
|
+
var year = -1;
|
989
|
+
var month = -1;
|
990
|
+
var day = -1;
|
991
|
+
var doy = -1;
|
992
|
+
var literal = false;
|
993
|
+
// Check whether a format character is doubled
|
994
|
+
var lookAhead = function(match) {
|
995
|
+
var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
|
996
|
+
if (matches)
|
997
|
+
iFormat++;
|
998
|
+
return matches;
|
999
|
+
};
|
1000
|
+
// Extract a number from the string value
|
1001
|
+
var getNumber = function(match) {
|
1002
|
+
var isDoubled = lookAhead(match);
|
1003
|
+
var size = (match == '@' ? 14 : (match == '!' ? 20 :
|
1004
|
+
(match == 'y' && isDoubled ? 4 : (match == 'o' ? 3 : 2))));
|
1005
|
+
var digits = new RegExp('^\\d{1,' + size + '}');
|
1006
|
+
var num = value.substring(iValue).match(digits);
|
1007
|
+
if (!num)
|
1008
|
+
throw 'Missing number at position ' + iValue;
|
1009
|
+
iValue += num[0].length;
|
1010
|
+
return parseInt(num[0], 10);
|
1011
|
+
};
|
1012
|
+
// Extract a name from the string value and convert to an index
|
1013
|
+
var getName = function(match, shortNames, longNames) {
|
1014
|
+
var names = (lookAhead(match) ? longNames : shortNames);
|
1015
|
+
for (var i = 0; i < names.length; i++) {
|
1016
|
+
if (value.substr(iValue, names[i].length).toLowerCase() == names[i].toLowerCase()) {
|
1017
|
+
iValue += names[i].length;
|
1018
|
+
return i + 1;
|
1019
|
+
}
|
1020
|
+
}
|
1021
|
+
throw 'Unknown name at position ' + iValue;
|
1022
|
+
};
|
1023
|
+
// Confirm that a literal character matches the string value
|
1024
|
+
var checkLiteral = function() {
|
1025
|
+
if (value.charAt(iValue) != format.charAt(iFormat))
|
1026
|
+
throw 'Unexpected literal at position ' + iValue;
|
1027
|
+
iValue++;
|
1028
|
+
};
|
1029
|
+
var iValue = 0;
|
1030
|
+
for (var iFormat = 0; iFormat < format.length; iFormat++) {
|
1031
|
+
if (literal)
|
1032
|
+
if (format.charAt(iFormat) == "'" && !lookAhead("'"))
|
1033
|
+
literal = false;
|
1034
|
+
else
|
1035
|
+
checkLiteral();
|
1036
|
+
else
|
1037
|
+
switch (format.charAt(iFormat)) {
|
1038
|
+
case 'd':
|
1039
|
+
day = getNumber('d');
|
1040
|
+
break;
|
1041
|
+
case 'D':
|
1042
|
+
getName('D', dayNamesShort, dayNames);
|
1043
|
+
break;
|
1044
|
+
case 'o':
|
1045
|
+
doy = getNumber('o');
|
1046
|
+
break;
|
1047
|
+
case 'm':
|
1048
|
+
month = getNumber('m');
|
1049
|
+
break;
|
1050
|
+
case 'M':
|
1051
|
+
month = getName('M', monthNamesShort, monthNames);
|
1052
|
+
break;
|
1053
|
+
case 'y':
|
1054
|
+
year = getNumber('y');
|
1055
|
+
break;
|
1056
|
+
case '@':
|
1057
|
+
var date = new Date(getNumber('@'));
|
1058
|
+
year = date.getFullYear();
|
1059
|
+
month = date.getMonth() + 1;
|
1060
|
+
day = date.getDate();
|
1061
|
+
break;
|
1062
|
+
case '!':
|
1063
|
+
var date = new Date((getNumber('!') - this._ticksTo1970) / 10000);
|
1064
|
+
year = date.getFullYear();
|
1065
|
+
month = date.getMonth() + 1;
|
1066
|
+
day = date.getDate();
|
1067
|
+
break;
|
1068
|
+
case "'":
|
1069
|
+
if (lookAhead("'"))
|
1070
|
+
checkLiteral();
|
1071
|
+
else
|
1072
|
+
literal = true;
|
1073
|
+
break;
|
1074
|
+
default:
|
1075
|
+
checkLiteral();
|
1076
|
+
}
|
1077
|
+
}
|
1078
|
+
if (year == -1)
|
1079
|
+
year = new Date().getFullYear();
|
1080
|
+
else if (year < 100)
|
1081
|
+
year += new Date().getFullYear() - new Date().getFullYear() % 100 +
|
1082
|
+
(year <= shortYearCutoff ? 0 : -100);
|
1083
|
+
if (doy > -1) {
|
1084
|
+
month = 1;
|
1085
|
+
day = doy;
|
1086
|
+
do {
|
1087
|
+
var dim = this._getDaysInMonth(year, month - 1);
|
1088
|
+
if (day <= dim)
|
1089
|
+
break;
|
1090
|
+
month++;
|
1091
|
+
day -= dim;
|
1092
|
+
} while (true);
|
1093
|
+
}
|
1094
|
+
var date = this._daylightSavingAdjust(new Date(year, month - 1, day));
|
1095
|
+
if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day)
|
1096
|
+
throw 'Invalid date'; // E.g. 31/02/00
|
1097
|
+
return date;
|
1098
|
+
},
|
1099
|
+
|
1100
|
+
/* Standard date formats. */
|
1101
|
+
ATOM: 'yy-mm-dd', // RFC 3339 (ISO 8601)
|
1102
|
+
COOKIE: 'D, dd M yy',
|
1103
|
+
ISO_8601: 'yy-mm-dd',
|
1104
|
+
RFC_822: 'D, d M y',
|
1105
|
+
RFC_850: 'DD, dd-M-y',
|
1106
|
+
RFC_1036: 'D, d M y',
|
1107
|
+
RFC_1123: 'D, d M yy',
|
1108
|
+
RFC_2822: 'D, d M yy',
|
1109
|
+
RSS: 'D, d M y', // RFC 822
|
1110
|
+
TICKS: '!',
|
1111
|
+
TIMESTAMP: '@',
|
1112
|
+
W3C: 'yy-mm-dd', // ISO 8601
|
1113
|
+
|
1114
|
+
_ticksTo1970: (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) +
|
1115
|
+
Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000),
|
1116
|
+
|
1117
|
+
/* Format a date object into a string value.
|
1118
|
+
The format can be combinations of the following:
|
1119
|
+
d - day of month (no leading zero)
|
1120
|
+
dd - day of month (two digit)
|
1121
|
+
o - day of year (no leading zeros)
|
1122
|
+
oo - day of year (three digit)
|
1123
|
+
D - day name short
|
1124
|
+
DD - day name long
|
1125
|
+
m - month of year (no leading zero)
|
1126
|
+
mm - month of year (two digit)
|
1127
|
+
M - month name short
|
1128
|
+
MM - month name long
|
1129
|
+
y - year (two digit)
|
1130
|
+
yy - year (four digit)
|
1131
|
+
@ - Unix timestamp (ms since 01/01/1970)
|
1132
|
+
! - Windows ticks (100ns since 01/01/0001)
|
1133
|
+
'...' - literal text
|
1134
|
+
'' - single quote
|
1135
|
+
|
1136
|
+
@param format string - the desired format of the date
|
1137
|
+
@param date Date - the date value to format
|
1138
|
+
@param settings Object - attributes include:
|
1139
|
+
dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
|
1140
|
+
dayNames string[7] - names of the days from Sunday (optional)
|
1141
|
+
monthNamesShort string[12] - abbreviated names of the months (optional)
|
1142
|
+
monthNames string[12] - names of the months (optional)
|
1143
|
+
@return string - the date in the above format */
|
1144
|
+
formatDate: function (format, date, settings) {
|
1145
|
+
if (!date)
|
1146
|
+
return '';
|
1147
|
+
var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
|
1148
|
+
var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
|
1149
|
+
var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
|
1150
|
+
var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
|
1151
|
+
// Check whether a format character is doubled
|
1152
|
+
var lookAhead = function(match) {
|
1153
|
+
var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
|
1154
|
+
if (matches)
|
1155
|
+
iFormat++;
|
1156
|
+
return matches;
|
1157
|
+
};
|
1158
|
+
// Format a number, with leading zero if necessary
|
1159
|
+
var formatNumber = function(match, value, len) {
|
1160
|
+
var num = '' + value;
|
1161
|
+
if (lookAhead(match))
|
1162
|
+
while (num.length < len)
|
1163
|
+
num = '0' + num;
|
1164
|
+
return num;
|
1165
|
+
};
|
1166
|
+
// Format a name, short or long as requested
|
1167
|
+
var formatName = function(match, value, shortNames, longNames) {
|
1168
|
+
return (lookAhead(match) ? longNames[value] : shortNames[value]);
|
1169
|
+
};
|
1170
|
+
var output = '';
|
1171
|
+
var literal = false;
|
1172
|
+
if (date)
|
1173
|
+
for (var iFormat = 0; iFormat < format.length; iFormat++) {
|
1174
|
+
if (literal)
|
1175
|
+
if (format.charAt(iFormat) == "'" && !lookAhead("'"))
|
1176
|
+
literal = false;
|
1177
|
+
else
|
1178
|
+
output += format.charAt(iFormat);
|
1179
|
+
else
|
1180
|
+
switch (format.charAt(iFormat)) {
|
1181
|
+
case 'd':
|
1182
|
+
output += formatNumber('d', date.getDate(), 2);
|
1183
|
+
break;
|
1184
|
+
case 'D':
|
1185
|
+
output += formatName('D', date.getDay(), dayNamesShort, dayNames);
|
1186
|
+
break;
|
1187
|
+
case 'o':
|
1188
|
+
output += formatNumber('o',
|
1189
|
+
(date.getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000, 3);
|
1190
|
+
break;
|
1191
|
+
case 'm':
|
1192
|
+
output += formatNumber('m', date.getMonth() + 1, 2);
|
1193
|
+
break;
|
1194
|
+
case 'M':
|
1195
|
+
output += formatName('M', date.getMonth(), monthNamesShort, monthNames);
|
1196
|
+
break;
|
1197
|
+
case 'y':
|
1198
|
+
output += (lookAhead('y') ? date.getFullYear() :
|
1199
|
+
(date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100);
|
1200
|
+
break;
|
1201
|
+
case '@':
|
1202
|
+
output += date.getTime();
|
1203
|
+
break;
|
1204
|
+
case '!':
|
1205
|
+
output += date.getTime() * 10000 + this._ticksTo1970;
|
1206
|
+
break;
|
1207
|
+
case "'":
|
1208
|
+
if (lookAhead("'"))
|
1209
|
+
output += "'";
|
1210
|
+
else
|
1211
|
+
literal = true;
|
1212
|
+
break;
|
1213
|
+
default:
|
1214
|
+
output += format.charAt(iFormat);
|
1215
|
+
}
|
1216
|
+
}
|
1217
|
+
return output;
|
1218
|
+
},
|
1219
|
+
|
1220
|
+
/* Extract all possible characters from the date format. */
|
1221
|
+
_possibleChars: function (format) {
|
1222
|
+
var chars = '';
|
1223
|
+
var literal = false;
|
1224
|
+
// Check whether a format character is doubled
|
1225
|
+
var lookAhead = function(match) {
|
1226
|
+
var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
|
1227
|
+
if (matches)
|
1228
|
+
iFormat++;
|
1229
|
+
return matches;
|
1230
|
+
};
|
1231
|
+
for (var iFormat = 0; iFormat < format.length; iFormat++)
|
1232
|
+
if (literal)
|
1233
|
+
if (format.charAt(iFormat) == "'" && !lookAhead("'"))
|
1234
|
+
literal = false;
|
1235
|
+
else
|
1236
|
+
chars += format.charAt(iFormat);
|
1237
|
+
else
|
1238
|
+
switch (format.charAt(iFormat)) {
|
1239
|
+
case 'd': case 'm': case 'y': case '@':
|
1240
|
+
chars += '0123456789';
|
1241
|
+
break;
|
1242
|
+
case 'D': case 'M':
|
1243
|
+
return null; // Accept anything
|
1244
|
+
case "'":
|
1245
|
+
if (lookAhead("'"))
|
1246
|
+
chars += "'";
|
1247
|
+
else
|
1248
|
+
literal = true;
|
1249
|
+
break;
|
1250
|
+
default:
|
1251
|
+
chars += format.charAt(iFormat);
|
1252
|
+
}
|
1253
|
+
return chars;
|
1254
|
+
},
|
1255
|
+
|
1256
|
+
/* Get a setting value, defaulting if necessary. */
|
1257
|
+
_get: function(inst, name) {
|
1258
|
+
return inst.settings[name] !== undefined ?
|
1259
|
+
inst.settings[name] : this._defaults[name];
|
1260
|
+
},
|
1261
|
+
|
1262
|
+
/* Parse existing date and initialise date picker. */
|
1263
|
+
_setDateFromField: function(inst, noDefault) {
|
1264
|
+
if (inst.input.val() == inst.lastVal) {
|
1265
|
+
return;
|
1266
|
+
}
|
1267
|
+
var dateFormat = this._get(inst, 'dateFormat');
|
1268
|
+
var dates = inst.lastVal = inst.input ? inst.input.val() : null;
|
1269
|
+
var date, defaultDate;
|
1270
|
+
date = defaultDate = this._getDefaultDate(inst);
|
1271
|
+
var settings = this._getFormatConfig(inst);
|
1272
|
+
try {
|
1273
|
+
date = this.parseDate(dateFormat, dates, settings) || defaultDate;
|
1274
|
+
} catch (event) {
|
1275
|
+
this.log(event);
|
1276
|
+
dates = (noDefault ? '' : dates);
|
1277
|
+
}
|
1278
|
+
inst.selectedDay = date.getDate();
|
1279
|
+
inst.drawMonth = inst.selectedMonth = date.getMonth();
|
1280
|
+
inst.drawYear = inst.selectedYear = date.getFullYear();
|
1281
|
+
inst.currentDay = (dates ? date.getDate() : 0);
|
1282
|
+
inst.currentMonth = (dates ? date.getMonth() : 0);
|
1283
|
+
inst.currentYear = (dates ? date.getFullYear() : 0);
|
1284
|
+
this._adjustInstDate(inst);
|
1285
|
+
},
|
1286
|
+
|
1287
|
+
/* Retrieve the default date shown on opening. */
|
1288
|
+
_getDefaultDate: function(inst) {
|
1289
|
+
return this._restrictMinMax(inst,
|
1290
|
+
this._determineDate(inst, this._get(inst, 'defaultDate'), new Date()));
|
1291
|
+
},
|
1292
|
+
|
1293
|
+
/* A date may be specified as an exact value or a relative one. */
|
1294
|
+
_determineDate: function(inst, date, defaultDate) {
|
1295
|
+
var offsetNumeric = function(offset) {
|
1296
|
+
var date = new Date();
|
1297
|
+
date.setDate(date.getDate() + offset);
|
1298
|
+
return date;
|
1299
|
+
};
|
1300
|
+
var offsetString = function(offset) {
|
1301
|
+
try {
|
1302
|
+
return $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),
|
1303
|
+
offset, $.datepicker._getFormatConfig(inst));
|
1304
|
+
}
|
1305
|
+
catch (e) {
|
1306
|
+
// Ignore
|
1307
|
+
}
|
1308
|
+
var date = (offset.toLowerCase().match(/^c/) ?
|
1309
|
+
$.datepicker._getDate(inst) : null) || new Date();
|
1310
|
+
var year = date.getFullYear();
|
1311
|
+
var month = date.getMonth();
|
1312
|
+
var day = date.getDate();
|
1313
|
+
var pattern = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;
|
1314
|
+
var matches = pattern.exec(offset);
|
1315
|
+
while (matches) {
|
1316
|
+
switch (matches[2] || 'd') {
|
1317
|
+
case 'd' : case 'D' :
|
1318
|
+
day += parseInt(matches[1],10); break;
|
1319
|
+
case 'w' : case 'W' :
|
1320
|
+
day += parseInt(matches[1],10) * 7; break;
|
1321
|
+
case 'm' : case 'M' :
|
1322
|
+
month += parseInt(matches[1],10);
|
1323
|
+
day = Math.min(day, $.datepicker._getDaysInMonth(year, month));
|
1324
|
+
break;
|
1325
|
+
case 'y': case 'Y' :
|
1326
|
+
year += parseInt(matches[1],10);
|
1327
|
+
day = Math.min(day, $.datepicker._getDaysInMonth(year, month));
|
1328
|
+
break;
|
1329
|
+
}
|
1330
|
+
matches = pattern.exec(offset);
|
1331
|
+
}
|
1332
|
+
return new Date(year, month, day);
|
1333
|
+
};
|
1334
|
+
var newDate = (date == null || date === '' ? defaultDate : (typeof date == 'string' ? offsetString(date) :
|
1335
|
+
(typeof date == 'number' ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : new Date(date.getTime()))));
|
1336
|
+
newDate = (newDate && newDate.toString() == 'Invalid Date' ? defaultDate : newDate);
|
1337
|
+
if (newDate) {
|
1338
|
+
newDate.setHours(0);
|
1339
|
+
newDate.setMinutes(0);
|
1340
|
+
newDate.setSeconds(0);
|
1341
|
+
newDate.setMilliseconds(0);
|
1342
|
+
}
|
1343
|
+
return this._daylightSavingAdjust(newDate);
|
1344
|
+
},
|
1345
|
+
|
1346
|
+
/* Handle switch to/from daylight saving.
|
1347
|
+
Hours may be non-zero on daylight saving cut-over:
|
1348
|
+
> 12 when midnight changeover, but then cannot generate
|
1349
|
+
midnight datetime, so jump to 1AM, otherwise reset.
|
1350
|
+
@param date (Date) the date to check
|
1351
|
+
@return (Date) the corrected date */
|
1352
|
+
_daylightSavingAdjust: function(date) {
|
1353
|
+
if (!date) return null;
|
1354
|
+
date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
|
1355
|
+
return date;
|
1356
|
+
},
|
1357
|
+
|
1358
|
+
/* Set the date(s) directly. */
|
1359
|
+
_setDate: function(inst, date, noChange) {
|
1360
|
+
var clear = !date;
|
1361
|
+
var origMonth = inst.selectedMonth;
|
1362
|
+
var origYear = inst.selectedYear;
|
1363
|
+
var newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date()));
|
1364
|
+
inst.selectedDay = inst.currentDay = newDate.getDate();
|
1365
|
+
inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth();
|
1366
|
+
inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();
|
1367
|
+
if ((origMonth != inst.selectedMonth || origYear != inst.selectedYear) && !noChange)
|
1368
|
+
this._notifyChange(inst);
|
1369
|
+
this._adjustInstDate(inst);
|
1370
|
+
if (inst.input) {
|
1371
|
+
inst.input.val(clear ? '' : this._formatDate(inst));
|
1372
|
+
}
|
1373
|
+
},
|
1374
|
+
|
1375
|
+
/* Retrieve the date(s) directly. */
|
1376
|
+
_getDate: function(inst) {
|
1377
|
+
var startDate = (!inst.currentYear || (inst.input && inst.input.val() == '') ? null :
|
1378
|
+
this._daylightSavingAdjust(new Date(
|
1379
|
+
inst.currentYear, inst.currentMonth, inst.currentDay)));
|
1380
|
+
return startDate;
|
1381
|
+
},
|
1382
|
+
|
1383
|
+
/* Generate the HTML for the current state of the date picker. */
|
1384
|
+
_generateHTML: function(inst) {
|
1385
|
+
var today = new Date();
|
1386
|
+
today = this._daylightSavingAdjust(
|
1387
|
+
new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time
|
1388
|
+
var isRTL = this._get(inst, 'isRTL');
|
1389
|
+
var showButtonPanel = this._get(inst, 'showButtonPanel');
|
1390
|
+
var hideIfNoPrevNext = this._get(inst, 'hideIfNoPrevNext');
|
1391
|
+
var navigationAsDateFormat = this._get(inst, 'navigationAsDateFormat');
|
1392
|
+
var numMonths = this._getNumberOfMonths(inst);
|
1393
|
+
var showCurrentAtPos = this._get(inst, 'showCurrentAtPos');
|
1394
|
+
var stepMonths = this._get(inst, 'stepMonths');
|
1395
|
+
var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1);
|
1396
|
+
var currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) :
|
1397
|
+
new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));
|
1398
|
+
var minDate = this._getMinMaxDate(inst, 'min');
|
1399
|
+
var maxDate = this._getMinMaxDate(inst, 'max');
|
1400
|
+
var drawMonth = inst.drawMonth - showCurrentAtPos;
|
1401
|
+
var drawYear = inst.drawYear;
|
1402
|
+
if (drawMonth < 0) {
|
1403
|
+
drawMonth += 12;
|
1404
|
+
drawYear--;
|
1405
|
+
}
|
1406
|
+
if (maxDate) {
|
1407
|
+
var maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(),
|
1408
|
+
maxDate.getMonth() - (numMonths[0] * numMonths[1]) + 1, maxDate.getDate()));
|
1409
|
+
maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);
|
1410
|
+
while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) {
|
1411
|
+
drawMonth--;
|
1412
|
+
if (drawMonth < 0) {
|
1413
|
+
drawMonth = 11;
|
1414
|
+
drawYear--;
|
1415
|
+
}
|
1416
|
+
}
|
1417
|
+
}
|
1418
|
+
inst.drawMonth = drawMonth;
|
1419
|
+
inst.drawYear = drawYear;
|
1420
|
+
var prevText = this._get(inst, 'prevText');
|
1421
|
+
prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText,
|
1422
|
+
this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)),
|
1423
|
+
this._getFormatConfig(inst)));
|
1424
|
+
var prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?
|
1425
|
+
'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_' + dpuuid +
|
1426
|
+
'.datepicker._adjustDate(\'#' + inst.id + '\', -' + stepMonths + ', \'M\');"' +
|
1427
|
+
' title="' + prevText + '"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '">' + prevText + '</span></a>' :
|
1428
|
+
(hideIfNoPrevNext ? '' : '<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+ prevText +'"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '">' + prevText + '</span></a>'));
|
1429
|
+
var nextText = this._get(inst, 'nextText');
|
1430
|
+
nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText,
|
1431
|
+
this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)),
|
1432
|
+
this._getFormatConfig(inst)));
|
1433
|
+
var next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?
|
1434
|
+
'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_' + dpuuid +
|
1435
|
+
'.datepicker._adjustDate(\'#' + inst.id + '\', +' + stepMonths + ', \'M\');"' +
|
1436
|
+
' title="' + nextText + '"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'w' : 'e') + '">' + nextText + '</span></a>' :
|
1437
|
+
(hideIfNoPrevNext ? '' : '<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+ nextText + '"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'w' : 'e') + '">' + nextText + '</span></a>'));
|
1438
|
+
var currentText = this._get(inst, 'currentText');
|
1439
|
+
var gotoDate = (this._get(inst, 'gotoCurrent') && inst.currentDay ? currentDate : today);
|
1440
|
+
currentText = (!navigationAsDateFormat ? currentText :
|
1441
|
+
this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));
|
1442
|
+
var controls = (!inst.inline ? '<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_' + dpuuid +
|
1443
|
+
'.datepicker._hideDatepicker();">' + this._get(inst, 'closeText') + '</button>' : '');
|
1444
|
+
var buttonPanel = (showButtonPanel) ? '<div class="ui-datepicker-buttonpane ui-widget-content">' + (isRTL ? controls : '') +
|
1445
|
+
(this._isInRange(inst, gotoDate) ? '<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_' + dpuuid +
|
1446
|
+
'.datepicker._gotoToday(\'#' + inst.id + '\');"' +
|
1447
|
+
'>' + currentText + '</button>' : '') + (isRTL ? '' : controls) + '</div>' : '';
|
1448
|
+
var firstDay = parseInt(this._get(inst, 'firstDay'),10);
|
1449
|
+
firstDay = (isNaN(firstDay) ? 0 : firstDay);
|
1450
|
+
var showWeek = this._get(inst, 'showWeek');
|
1451
|
+
var dayNames = this._get(inst, 'dayNames');
|
1452
|
+
var dayNamesShort = this._get(inst, 'dayNamesShort');
|
1453
|
+
var dayNamesMin = this._get(inst, 'dayNamesMin');
|
1454
|
+
var monthNames = this._get(inst, 'monthNames');
|
1455
|
+
var monthNamesShort = this._get(inst, 'monthNamesShort');
|
1456
|
+
var beforeShowDay = this._get(inst, 'beforeShowDay');
|
1457
|
+
var showOtherMonths = this._get(inst, 'showOtherMonths');
|
1458
|
+
var selectOtherMonths = this._get(inst, 'selectOtherMonths');
|
1459
|
+
var calculateWeek = this._get(inst, 'calculateWeek') || this.iso8601Week;
|
1460
|
+
var defaultDate = this._getDefaultDate(inst);
|
1461
|
+
var html = '';
|
1462
|
+
for (var row = 0; row < numMonths[0]; row++) {
|
1463
|
+
var group = '';
|
1464
|
+
for (var col = 0; col < numMonths[1]; col++) {
|
1465
|
+
var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
|
1466
|
+
var cornerClass = ' ui-corner-all';
|
1467
|
+
var calender = '';
|
1468
|
+
if (isMultiMonth) {
|
1469
|
+
calender += '<div class="ui-datepicker-group';
|
1470
|
+
if (numMonths[1] > 1)
|
1471
|
+
switch (col) {
|
1472
|
+
case 0: calender += ' ui-datepicker-group-first';
|
1473
|
+
cornerClass = ' ui-corner-' + (isRTL ? 'right' : 'left'); break;
|
1474
|
+
case numMonths[1]-1: calender += ' ui-datepicker-group-last';
|
1475
|
+
cornerClass = ' ui-corner-' + (isRTL ? 'left' : 'right'); break;
|
1476
|
+
default: calender += ' ui-datepicker-group-middle'; cornerClass = ''; break;
|
1477
|
+
}
|
1478
|
+
calender += '">';
|
1479
|
+
}
|
1480
|
+
calender += '<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix' + cornerClass + '">' +
|
1481
|
+
(/all|left/.test(cornerClass) && row == 0 ? (isRTL ? next : prev) : '') +
|
1482
|
+
(/all|right/.test(cornerClass) && row == 0 ? (isRTL ? prev : next) : '') +
|
1483
|
+
this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate,
|
1484
|
+
row > 0 || col > 0, monthNames, monthNamesShort) + // draw month headers
|
1485
|
+
'</div><table class="ui-datepicker-calendar"><thead>' +
|
1486
|
+
'<tr>';
|
1487
|
+
var thead = (showWeek ? '<th class="ui-datepicker-week-col">' + this._get(inst, 'weekHeader') + '</th>' : '');
|
1488
|
+
for (var dow = 0; dow < 7; dow++) { // days of the week
|
1489
|
+
var day = (dow + firstDay) % 7;
|
1490
|
+
thead += '<th' + ((dow + firstDay + 6) % 7 >= 5 ? ' class="ui-datepicker-week-end"' : '') + '>' +
|
1491
|
+
'<span title="' + dayNames[day] + '">' + dayNamesMin[day] + '</span></th>';
|
1492
|
+
}
|
1493
|
+
calender += thead + '</tr></thead><tbody>';
|
1494
|
+
var daysInMonth = this._getDaysInMonth(drawYear, drawMonth);
|
1495
|
+
if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth)
|
1496
|
+
inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);
|
1497
|
+
var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
|
1498
|
+
var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate
|
1499
|
+
var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays));
|
1500
|
+
for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows
|
1501
|
+
calender += '<tr>';
|
1502
|
+
var tbody = (!showWeek ? '' : '<td class="ui-datepicker-week-col">' +
|
1503
|
+
this._get(inst, 'calculateWeek')(printDate) + '</td>');
|
1504
|
+
for (var dow = 0; dow < 7; dow++) { // create date picker days
|
1505
|
+
var daySettings = (beforeShowDay ?
|
1506
|
+
beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, '']);
|
1507
|
+
var otherMonth = (printDate.getMonth() != drawMonth);
|
1508
|
+
var unselectable = (otherMonth && !selectOtherMonths) || !daySettings[0] ||
|
1509
|
+
(minDate && printDate < minDate) || (maxDate && printDate > maxDate);
|
1510
|
+
tbody += '<td class="' +
|
1511
|
+
((dow + firstDay + 6) % 7 >= 5 ? ' ui-datepicker-week-end' : '') + // highlight weekends
|
1512
|
+
(otherMonth ? ' ui-datepicker-other-month' : '') + // highlight days from other months
|
1513
|
+
((printDate.getTime() == selectedDate.getTime() && drawMonth == inst.selectedMonth && inst._keyEvent) || // user pressed key
|
1514
|
+
(defaultDate.getTime() == printDate.getTime() && defaultDate.getTime() == selectedDate.getTime()) ?
|
1515
|
+
// or defaultDate is current printedDate and defaultDate is selectedDate
|
1516
|
+
' ' + this._dayOverClass : '') + // highlight selected day
|
1517
|
+
(unselectable ? ' ' + this._unselectableClass + ' ui-state-disabled': '') + // highlight unselectable days
|
1518
|
+
(otherMonth && !showOtherMonths ? '' : ' ' + daySettings[1] + // highlight custom dates
|
1519
|
+
(printDate.getTime() == currentDate.getTime() ? ' ' + this._currentClass : '') + // highlight selected day
|
1520
|
+
(printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different)
|
1521
|
+
((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : '') + // cell title
|
1522
|
+
(unselectable ? '' : ' onclick="DP_jQuery_' + dpuuid + '.datepicker._selectDay(\'#' +
|
1523
|
+
inst.id + '\',' + printDate.getMonth() + ',' + printDate.getFullYear() + ', this);return false;"') + '>' + // actions
|
1524
|
+
(otherMonth && !showOtherMonths ? ' ' : // display for other months
|
1525
|
+
(unselectable ? '<span class="ui-state-default">' + printDate.getDate() + '</span>' : '<a class="ui-state-default' +
|
1526
|
+
(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
|
1527
|
+
(printDate.getTime() == currentDate.getTime() ? ' ui-state-active' : '') + // highlight selected day
|
1528
|
+
(otherMonth ? ' ui-priority-secondary' : '') + // distinguish dates from other months
|
1529
|
+
'" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display selectable date
|
1530
|
+
printDate.setDate(printDate.getDate() + 1);
|
1531
|
+
printDate = this._daylightSavingAdjust(printDate);
|
1532
|
+
}
|
1533
|
+
calender += tbody + '</tr>';
|
1534
|
+
}
|
1535
|
+
drawMonth++;
|
1536
|
+
if (drawMonth > 11) {
|
1537
|
+
drawMonth = 0;
|
1538
|
+
drawYear++;
|
1539
|
+
}
|
1540
|
+
calender += '</tbody></table>' + (isMultiMonth ? '</div>' +
|
1541
|
+
((numMonths[0] > 0 && col == numMonths[1]-1) ? '<div class="ui-datepicker-row-break"></div>' : '') : '');
|
1542
|
+
group += calender;
|
1543
|
+
}
|
1544
|
+
html += group;
|
1545
|
+
}
|
1546
|
+
html += buttonPanel + ($.browser.msie && parseInt($.browser.version,10) < 7 && !inst.inline ?
|
1547
|
+
'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>' : '');
|
1548
|
+
inst._keyEvent = false;
|
1549
|
+
return html;
|
1550
|
+
},
|
1551
|
+
|
1552
|
+
/* Generate the month and year header. */
|
1553
|
+
_generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
|
1554
|
+
secondary, monthNames, monthNamesShort) {
|
1555
|
+
var changeMonth = this._get(inst, 'changeMonth');
|
1556
|
+
var changeYear = this._get(inst, 'changeYear');
|
1557
|
+
var showMonthAfterYear = this._get(inst, 'showMonthAfterYear');
|
1558
|
+
var html = '<div class="ui-datepicker-title">';
|
1559
|
+
var monthHtml = '';
|
1560
|
+
// month selection
|
1561
|
+
if (secondary || !changeMonth)
|
1562
|
+
monthHtml += '<span class="ui-datepicker-month">' + monthNames[drawMonth] + '</span>';
|
1563
|
+
else {
|
1564
|
+
var inMinYear = (minDate && minDate.getFullYear() == drawYear);
|
1565
|
+
var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear);
|
1566
|
+
monthHtml += '<select class="ui-datepicker-month" ' +
|
1567
|
+
'onchange="DP_jQuery_' + dpuuid + '.datepicker._selectMonthYear(\'#' + inst.id + '\', this, \'M\');" ' +
|
1568
|
+
'onclick="DP_jQuery_' + dpuuid + '.datepicker._clickMonthYear(\'#' + inst.id + '\');"' +
|
1569
|
+
'>';
|
1570
|
+
for (var month = 0; month < 12; month++) {
|
1571
|
+
if ((!inMinYear || month >= minDate.getMonth()) &&
|
1572
|
+
(!inMaxYear || month <= maxDate.getMonth()))
|
1573
|
+
monthHtml += '<option value="' + month + '"' +
|
1574
|
+
(month == drawMonth ? ' selected="selected"' : '') +
|
1575
|
+
'>' + monthNamesShort[month] + '</option>';
|
1576
|
+
}
|
1577
|
+
monthHtml += '</select>';
|
1578
|
+
}
|
1579
|
+
if (!showMonthAfterYear)
|
1580
|
+
html += monthHtml + (secondary || !(changeMonth && changeYear) ? ' ' : '');
|
1581
|
+
// year selection
|
1582
|
+
if ( !inst.yearshtml ) {
|
1583
|
+
inst.yearshtml = '';
|
1584
|
+
if (secondary || !changeYear)
|
1585
|
+
html += '<span class="ui-datepicker-year">' + drawYear + '</span>';
|
1586
|
+
else {
|
1587
|
+
// determine range of years to display
|
1588
|
+
var years = this._get(inst, 'yearRange').split(':');
|
1589
|
+
var thisYear = new Date().getFullYear();
|
1590
|
+
var determineYear = function(value) {
|
1591
|
+
var year = (value.match(/c[+-].*/) ? drawYear + parseInt(value.substring(1), 10) :
|
1592
|
+
(value.match(/[+-].*/) ? thisYear + parseInt(value, 10) :
|
1593
|
+
parseInt(value, 10)));
|
1594
|
+
return (isNaN(year) ? thisYear : year);
|
1595
|
+
};
|
1596
|
+
var year = determineYear(years[0]);
|
1597
|
+
var endYear = Math.max(year, determineYear(years[1] || ''));
|
1598
|
+
year = (minDate ? Math.max(year, minDate.getFullYear()) : year);
|
1599
|
+
endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);
|
1600
|
+
inst.yearshtml += '<select class="ui-datepicker-year" ' +
|
1601
|
+
'onchange="DP_jQuery_' + dpuuid + '.datepicker._selectMonthYear(\'#' + inst.id + '\', this, \'Y\');" ' +
|
1602
|
+
'onclick="DP_jQuery_' + dpuuid + '.datepicker._clickMonthYear(\'#' + inst.id + '\');"' +
|
1603
|
+
'>';
|
1604
|
+
for (; year <= endYear; year++) {
|
1605
|
+
inst.yearshtml += '<option value="' + year + '"' +
|
1606
|
+
(year == drawYear ? ' selected="selected"' : '') +
|
1607
|
+
'>' + year + '</option>';
|
1608
|
+
}
|
1609
|
+
inst.yearshtml += '</select>';
|
1610
|
+
//when showing there is no need for later update
|
1611
|
+
if( ! $.browser.mozilla ){
|
1612
|
+
html += inst.yearshtml;
|
1613
|
+
inst.yearshtml = null;
|
1614
|
+
} else {
|
1615
|
+
// will be replaced later with inst.yearshtml
|
1616
|
+
html += '<select class="ui-datepicker-year"><option value="' + drawYear + '" selected="selected">' + drawYear + '</option></select>';
|
1617
|
+
}
|
1618
|
+
}
|
1619
|
+
}
|
1620
|
+
html += this._get(inst, 'yearSuffix');
|
1621
|
+
if (showMonthAfterYear)
|
1622
|
+
html += (secondary || !(changeMonth && changeYear) ? ' ' : '') + monthHtml;
|
1623
|
+
html += '</div>'; // Close datepicker_header
|
1624
|
+
return html;
|
1625
|
+
},
|
1626
|
+
|
1627
|
+
/* Adjust one of the date sub-fields. */
|
1628
|
+
_adjustInstDate: function(inst, offset, period) {
|
1629
|
+
var year = inst.drawYear + (period == 'Y' ? offset : 0);
|
1630
|
+
var month = inst.drawMonth + (period == 'M' ? offset : 0);
|
1631
|
+
var day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) +
|
1632
|
+
(period == 'D' ? offset : 0);
|
1633
|
+
var date = this._restrictMinMax(inst,
|
1634
|
+
this._daylightSavingAdjust(new Date(year, month, day)));
|
1635
|
+
inst.selectedDay = date.getDate();
|
1636
|
+
inst.drawMonth = inst.selectedMonth = date.getMonth();
|
1637
|
+
inst.drawYear = inst.selectedYear = date.getFullYear();
|
1638
|
+
if (period == 'M' || period == 'Y')
|
1639
|
+
this._notifyChange(inst);
|
1640
|
+
},
|
1641
|
+
|
1642
|
+
/* Ensure a date is within any min/max bounds. */
|
1643
|
+
_restrictMinMax: function(inst, date) {
|
1644
|
+
var minDate = this._getMinMaxDate(inst, 'min');
|
1645
|
+
var maxDate = this._getMinMaxDate(inst, 'max');
|
1646
|
+
var newDate = (minDate && date < minDate ? minDate : date);
|
1647
|
+
newDate = (maxDate && newDate > maxDate ? maxDate : newDate);
|
1648
|
+
return newDate;
|
1649
|
+
},
|
1650
|
+
|
1651
|
+
/* Notify change of month/year. */
|
1652
|
+
_notifyChange: function(inst) {
|
1653
|
+
var onChange = this._get(inst, 'onChangeMonthYear');
|
1654
|
+
if (onChange)
|
1655
|
+
onChange.apply((inst.input ? inst.input[0] : null),
|
1656
|
+
[inst.selectedYear, inst.selectedMonth + 1, inst]);
|
1657
|
+
},
|
1658
|
+
|
1659
|
+
/* Determine the number of months to show. */
|
1660
|
+
_getNumberOfMonths: function(inst) {
|
1661
|
+
var numMonths = this._get(inst, 'numberOfMonths');
|
1662
|
+
return (numMonths == null ? [1, 1] : (typeof numMonths == 'number' ? [1, numMonths] : numMonths));
|
1663
|
+
},
|
1664
|
+
|
1665
|
+
/* Determine the current maximum date - ensure no time components are set. */
|
1666
|
+
_getMinMaxDate: function(inst, minMax) {
|
1667
|
+
return this._determineDate(inst, this._get(inst, minMax + 'Date'), null);
|
1668
|
+
},
|
1669
|
+
|
1670
|
+
/* Find the number of days in a given month. */
|
1671
|
+
_getDaysInMonth: function(year, month) {
|
1672
|
+
return 32 - this._daylightSavingAdjust(new Date(year, month, 32)).getDate();
|
1673
|
+
},
|
1674
|
+
|
1675
|
+
/* Find the day of the week of the first of a month. */
|
1676
|
+
_getFirstDayOfMonth: function(year, month) {
|
1677
|
+
return new Date(year, month, 1).getDay();
|
1678
|
+
},
|
1679
|
+
|
1680
|
+
/* Determines if we should allow a "next/prev" month display change. */
|
1681
|
+
_canAdjustMonth: function(inst, offset, curYear, curMonth) {
|
1682
|
+
var numMonths = this._getNumberOfMonths(inst);
|
1683
|
+
var date = this._daylightSavingAdjust(new Date(curYear,
|
1684
|
+
curMonth + (offset < 0 ? offset : numMonths[0] * numMonths[1]), 1));
|
1685
|
+
if (offset < 0)
|
1686
|
+
date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));
|
1687
|
+
return this._isInRange(inst, date);
|
1688
|
+
},
|
1689
|
+
|
1690
|
+
/* Is the given date in the accepted range? */
|
1691
|
+
_isInRange: function(inst, date) {
|
1692
|
+
var minDate = this._getMinMaxDate(inst, 'min');
|
1693
|
+
var maxDate = this._getMinMaxDate(inst, 'max');
|
1694
|
+
return ((!minDate || date.getTime() >= minDate.getTime()) &&
|
1695
|
+
(!maxDate || date.getTime() <= maxDate.getTime()));
|
1696
|
+
},
|
1697
|
+
|
1698
|
+
/* Provide the configuration settings for formatting/parsing. */
|
1699
|
+
_getFormatConfig: function(inst) {
|
1700
|
+
var shortYearCutoff = this._get(inst, 'shortYearCutoff');
|
1701
|
+
shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff :
|
1702
|
+
new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
|
1703
|
+
return {shortYearCutoff: shortYearCutoff,
|
1704
|
+
dayNamesShort: this._get(inst, 'dayNamesShort'), dayNames: this._get(inst, 'dayNames'),
|
1705
|
+
monthNamesShort: this._get(inst, 'monthNamesShort'), monthNames: this._get(inst, 'monthNames')};
|
1706
|
+
},
|
1707
|
+
|
1708
|
+
/* Format the given date for display. */
|
1709
|
+
_formatDate: function(inst, day, month, year) {
|
1710
|
+
if (!day) {
|
1711
|
+
inst.currentDay = inst.selectedDay;
|
1712
|
+
inst.currentMonth = inst.selectedMonth;
|
1713
|
+
inst.currentYear = inst.selectedYear;
|
1714
|
+
}
|
1715
|
+
var date = (day ? (typeof day == 'object' ? day :
|
1716
|
+
this._daylightSavingAdjust(new Date(year, month, day))) :
|
1717
|
+
this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));
|
1718
|
+
return this.formatDate(this._get(inst, 'dateFormat'), date, this._getFormatConfig(inst));
|
1719
|
+
}
|
1720
|
+
});
|
1721
|
+
|
1722
|
+
/* jQuery extend now ignores nulls! */
|
1723
|
+
function extendRemove(target, props) {
|
1724
|
+
$.extend(target, props);
|
1725
|
+
for (var name in props)
|
1726
|
+
if (props[name] == null || props[name] == undefined)
|
1727
|
+
target[name] = props[name];
|
1728
|
+
return target;
|
1729
|
+
};
|
1730
|
+
|
1731
|
+
/* Determine whether an object is an array. */
|
1732
|
+
function isArray(a) {
|
1733
|
+
return (a && (($.browser.safari && typeof a == 'object' && a.length) ||
|
1734
|
+
(a.constructor && a.constructor.toString().match(/\Array\(\)/))));
|
1735
|
+
};
|
1736
|
+
|
1737
|
+
/* Invoke the datepicker functionality.
|
1738
|
+
@param options string - a command, optionally followed by additional parameters or
|
1739
|
+
Object - settings for attaching new datepicker functionality
|
1740
|
+
@return jQuery object */
|
1741
|
+
$.fn.datepicker = function(options){
|
1742
|
+
|
1743
|
+
/* Verify an empty collection wasn't passed - Fixes #6976 */
|
1744
|
+
if ( !this.length ) {
|
1745
|
+
return this;
|
1746
|
+
}
|
1747
|
+
|
1748
|
+
/* Initialise the date picker. */
|
1749
|
+
if (!$.datepicker.initialized) {
|
1750
|
+
$(document).mousedown($.datepicker._checkExternalClick).
|
1751
|
+
find('body').append($.datepicker.dpDiv);
|
1752
|
+
$.datepicker.initialized = true;
|
1753
|
+
}
|
1754
|
+
|
1755
|
+
var otherArgs = Array.prototype.slice.call(arguments, 1);
|
1756
|
+
if (typeof options == 'string' && (options == 'isDisabled' || options == 'getDate' || options == 'widget'))
|
1757
|
+
return $.datepicker['_' + options + 'Datepicker'].
|
1758
|
+
apply($.datepicker, [this[0]].concat(otherArgs));
|
1759
|
+
if (options == 'option' && arguments.length == 2 && typeof arguments[1] == 'string')
|
1760
|
+
return $.datepicker['_' + options + 'Datepicker'].
|
1761
|
+
apply($.datepicker, [this[0]].concat(otherArgs));
|
1762
|
+
return this.each(function() {
|
1763
|
+
typeof options == 'string' ?
|
1764
|
+
$.datepicker['_' + options + 'Datepicker'].
|
1765
|
+
apply($.datepicker, [this].concat(otherArgs)) :
|
1766
|
+
$.datepicker._attachDatepicker(this, options);
|
1767
|
+
});
|
1768
|
+
};
|
1769
|
+
|
1770
|
+
$.datepicker = new Datepicker(); // singleton instance
|
1771
|
+
$.datepicker.initialized = false;
|
1772
|
+
$.datepicker.uuid = new Date().getTime();
|
1773
|
+
$.datepicker.version = "@VERSION";
|
1774
|
+
|
1775
|
+
// Workaround for #4055
|
1776
|
+
// Add another global to avoid noConflict issues with inline event handlers
|
1777
|
+
window['DP_jQuery_' + dpuuid] = $;
|
1778
|
+
|
1779
|
+
})(jQuery);
|