hydroponics 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/bin/hydro +19 -5
- data/hydroponics.gemspec +409 -3
- data/lib/db_remote.rb +23 -0
- data/lib/hydroponics.rb +17 -4
- data/lib/views/index.erb +26 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/css/smoothness/jquery-ui-1.8.5.custom.css +572 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/AUTHORS.txt +30 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/GPL-LICENSE.txt +278 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/MIT-LICENSE.txt +25 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/collapsible.html +57 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/custom-icons.html +69 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/default.html +85 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/fillspace.html +76 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/hoverintent.html +134 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/index.html +25 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/mouseover.html +57 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/no-auto-height.html +60 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/sortable.html +83 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/addClass/default.html +52 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/addClass/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/animate/default.html +61 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/animate/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/categories.html +71 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/combobox.html +163 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/custom-data.html +95 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/default.html +64 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/folding.html +62 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/jquery_32x32.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/jqueryui_32x32.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/sizzlejs_32x32.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/transparent_1x1.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/ui-anim_basic_16x16.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/index.html +27 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/london.xml +114 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/maxheight.html +75 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/multiple-remote.html +76 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/multiple.html +91 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/remote-jsonp.html +86 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/remote-with-cache.html +59 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/remote.html +59 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/search.php +640 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/xml.html +72 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/checkbox.html +44 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/default.html +38 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/icons.html +56 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/index.html +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/radio.html +39 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/splitbutton.html +55 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/toolbar.html +120 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/alt-field.html +36 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/animation.html +58 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/buttonbar.html +35 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/date-formats.html +47 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/default.html +33 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/dropdown-month-year.html +36 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/event-search.html +49 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/icon-trigger.html +37 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/images/calendar.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/index.html +31 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/inline.html +33 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/localization.html +146 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/min-max.html +33 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/multiple-calendars.html +36 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/other-months.html +37 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/show-week.html +39 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/demos.css +334 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/animated.html +56 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/default.html +54 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/index.html +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal-confirmation.html +69 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal-form.html +167 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal-message.html +71 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal.html +60 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/constrain-movement.html +69 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/cursor-style.html +49 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/default.html +39 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/delay-start.html +45 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/events.html +77 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/handle.html +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/index.html +28 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/revert.html +44 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/scroll.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/snap-to.html +68 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/sortable.html +57 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/visual-feedback.html +77 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/accepted-elements.html +60 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/default.html +53 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/index.html +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/photo-manager.html +184 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/propagation.html +80 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/revert.html +61 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/shopping-cart.html +101 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/visual-feedback.html +78 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/effect/default.html +109 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/effect/easing.html +107 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/effect/index.html +19 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/hide/default.html +102 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/hide/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/calendar.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-config-on.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-spindown-open.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/icon-docs-info.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/pbar-ani.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/index.html +314 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/cycler.html +122 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/default.html +153 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/images/earth.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/images/flight.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/images/rocket.jpg +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/index.html +19 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/animated.html +44 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/default.html +35 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/images/pbar-ani.gif +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/index.html +20 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/resize.html +40 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/removeClass/default.html +52 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/removeClass/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/animate.html +41 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/aspect-ratio.html +40 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/constrain-area.html +45 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/default.html +38 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/delay-start.html +52 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/helper.html +41 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/index.html +28 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/max-min.html +43 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/snap-to-grid.html +40 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/synchronous-resize.html +47 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/textarea.html +39 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/visual-feedback.html +41 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/default.html +48 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/display-grid.html +53 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/index.html +20 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/serialize.html +59 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/show/default.html +103 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/show/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/colorpicker.html +95 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/default.html +37 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/hotelrooms.html +59 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/index.html +29 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/multiple-vertical.html +77 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/range-vertical.html +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/range.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/rangemax.html +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/rangemin.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/side-scroll.html +138 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/slider-vertical.html +52 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/steps.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/tabs.html +67 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/connect-lists-through-tabs.html +79 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/connect-lists.html +58 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/default.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/delay-start.html +67 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/display-grid.html +54 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/empty-lists.html +69 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/index.html +26 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/items.html +71 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/placeholder.html +56 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/portlets.html +96 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/switchClass/default.html +48 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/switchClass/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content1.html +4 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content2.html +4 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content3-slow.php +7 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content4-broken.php +3 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax.html +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/bottom.html +60 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/collapsible.html +56 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/cookie.html +57 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/default.html +49 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/index.html +25 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/manipulation.html +121 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/mouseover.html +54 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/sortable.html +65 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/vertical.html +64 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggle/default.html +92 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggle/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggleClass/default.html +46 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggleClass/index.html +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/accordion.html +977 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/addClass.html +109 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/animate.html +78 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/autocomplete.html +710 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/button.html +461 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/datepicker.html +2531 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/dialog.html +1603 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/draggable.html +1536 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/droppable.html +788 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/effect.html +143 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/hide.html +144 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/position.html +226 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/progressbar.html +381 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/removeClass.html +113 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/resizable.html +1160 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/selectable.html +807 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/show.html +144 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/slider.html +821 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/sortable.html +1910 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/switchClass.html +129 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/tabs.html +1513 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/toggle.html +144 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/docs/toggleClass.html +111 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/external/jquery.bgiframe-2.1.1.js +10 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/external/jquery.cookie.js +89 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/external/jquery.metadata.js +122 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/external/qunit.css +153 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/external/qunit.js +1261 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/jquery-1.4.2.js +6240 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.accordion.css +19 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.all.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.autocomplete.css +53 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.base.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.button.css +38 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.core.css +41 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.datepicker.css +68 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.dialog.css +21 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.progressbar.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.resizable.css +20 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.selectable.css +10 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.slider.css +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.tabs.css +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.theme.css +252 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery-ui-1.8.5.custom.css +572 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.accordion.css +19 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.all.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.autocomplete.css +53 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.base.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.button.css +38 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.core.css +41 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.datepicker.css +68 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.dialog.css +21 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.progressbar.css +11 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.resizable.css +20 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.selectable.css +10 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.slider.css +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.tabs.css +18 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.theme.css +254 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery-ui-i18n.js +1199 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-af.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-az.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-da.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-de.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-el.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-es.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-et.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-he.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-id.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-is.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-it.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-kz.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-no.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js +26 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js +24 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-th.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js +23 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery-ui-1.8.5.custom.js +11358 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.blind.js +49 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.bounce.js +78 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.clip.js +54 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.core.js +714 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.drop.js +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.explode.js +79 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.fade.js +32 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.fold.js +56 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.highlight.js +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.pulsate.js +51 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.scale.js +178 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.shake.js +57 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.slide.js +50 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.transfer.js +45 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.accordion.js +598 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.autocomplete.js +555 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.button.js +372 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.core.js +307 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.datepicker.js +1732 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.dialog.js +837 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.draggable.js +797 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.droppable.js +285 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.mouse.js +151 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.position.js +251 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.progressbar.js +94 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.resizable.js +812 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.selectable.js +266 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.slider.js +680 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.sortable.js +1071 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.tabs.js +758 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.widget.js +249 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.blind.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.bounce.min.js +15 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.clip.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.core.min.js +30 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.drop.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.explode.min.js +15 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.fade.min.js +13 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.fold.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.highlight.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.pulsate.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.scale.min.js +20 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.shake.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.slide.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.transfer.min.js +14 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.accordion.min.js +30 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.autocomplete.min.js +31 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.button.min.js +25 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.core.min.js +17 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.datepicker.min.js +80 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.dialog.min.js +39 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.draggable.min.js +49 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.droppable.min.js +26 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.mouse.min.js +17 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.position.min.js +16 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.progressbar.min.js +16 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.resizable.min.js +47 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.selectable.min.js +22 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.slider.min.js +33 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.sortable.min.js +60 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.tabs.min.js +35 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.widget.min.js +15 -0
- data/static/jquery-ui-1.8.5.custom/development-bundle/version.txt +1 -0
- data/static/jquery-ui-1.8.5.custom/index.html +395 -0
- data/static/jquery-ui-1.8.5.custom/js/jquery-1.4.2.min.js +154 -0
- data/static/jquery-ui-1.8.5.custom/js/jquery-ui-1.8.5.custom.min.js +778 -0
- metadata +421 -4
@@ -0,0 +1,372 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery UI Button 1.8.5
|
3
|
+
*
|
4
|
+
* Copyright 2010, 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/Button
|
9
|
+
*
|
10
|
+
* Depends:
|
11
|
+
* jquery.ui.core.js
|
12
|
+
* jquery.ui.widget.js
|
13
|
+
*/
|
14
|
+
(function( $, undefined ) {
|
15
|
+
|
16
|
+
var lastActive,
|
17
|
+
baseClasses = "ui-button ui-widget ui-state-default ui-corner-all",
|
18
|
+
stateClasses = "ui-state-hover ui-state-active ",
|
19
|
+
typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",
|
20
|
+
formResetHandler = function( event ) {
|
21
|
+
$( ":ui-button", event.target.form ).each(function() {
|
22
|
+
var inst = $( this ).data( "button" );
|
23
|
+
setTimeout(function() {
|
24
|
+
inst.refresh();
|
25
|
+
}, 1 );
|
26
|
+
});
|
27
|
+
},
|
28
|
+
radioGroup = function( radio ) {
|
29
|
+
var name = radio.name,
|
30
|
+
form = radio.form,
|
31
|
+
radios = $( [] );
|
32
|
+
if ( name ) {
|
33
|
+
if ( form ) {
|
34
|
+
radios = $( form ).find( "[name='" + name + "']" );
|
35
|
+
} else {
|
36
|
+
radios = $( "[name='" + name + "']", radio.ownerDocument )
|
37
|
+
.filter(function() {
|
38
|
+
return !this.form;
|
39
|
+
});
|
40
|
+
}
|
41
|
+
}
|
42
|
+
return radios;
|
43
|
+
};
|
44
|
+
|
45
|
+
$.widget( "ui.button", {
|
46
|
+
options: {
|
47
|
+
disabled: null,
|
48
|
+
text: true,
|
49
|
+
label: null,
|
50
|
+
icons: {
|
51
|
+
primary: null,
|
52
|
+
secondary: null
|
53
|
+
}
|
54
|
+
},
|
55
|
+
_create: function() {
|
56
|
+
this.element.closest( "form" )
|
57
|
+
.unbind( "reset.button" )
|
58
|
+
.bind( "reset.button", formResetHandler );
|
59
|
+
|
60
|
+
if ( typeof this.options.disabled !== "boolean" ) {
|
61
|
+
this.options.disabled = this.element.attr( "disabled" );
|
62
|
+
}
|
63
|
+
|
64
|
+
this._determineButtonType();
|
65
|
+
this.hasTitle = !!this.buttonElement.attr( "title" );
|
66
|
+
|
67
|
+
var self = this,
|
68
|
+
options = this.options,
|
69
|
+
toggleButton = this.type === "checkbox" || this.type === "radio",
|
70
|
+
hoverClass = "ui-state-hover" + ( !toggleButton ? " ui-state-active" : "" ),
|
71
|
+
focusClass = "ui-state-focus";
|
72
|
+
|
73
|
+
if ( options.label === null ) {
|
74
|
+
options.label = this.buttonElement.html();
|
75
|
+
}
|
76
|
+
|
77
|
+
if ( this.element.is( ":disabled" ) ) {
|
78
|
+
options.disabled = true;
|
79
|
+
}
|
80
|
+
|
81
|
+
this.buttonElement
|
82
|
+
.addClass( baseClasses )
|
83
|
+
.attr( "role", "button" )
|
84
|
+
.bind( "mouseenter.button", function() {
|
85
|
+
if ( options.disabled ) {
|
86
|
+
return;
|
87
|
+
}
|
88
|
+
$( this ).addClass( "ui-state-hover" );
|
89
|
+
if ( this === lastActive ) {
|
90
|
+
$( this ).addClass( "ui-state-active" );
|
91
|
+
}
|
92
|
+
})
|
93
|
+
.bind( "mouseleave.button", function() {
|
94
|
+
if ( options.disabled ) {
|
95
|
+
return;
|
96
|
+
}
|
97
|
+
$( this ).removeClass( hoverClass );
|
98
|
+
})
|
99
|
+
.bind( "focus.button", function() {
|
100
|
+
// no need to check disabled, focus won't be triggered anyway
|
101
|
+
$( this ).addClass( focusClass );
|
102
|
+
})
|
103
|
+
.bind( "blur.button", function() {
|
104
|
+
$( this ).removeClass( focusClass );
|
105
|
+
});
|
106
|
+
|
107
|
+
if ( toggleButton ) {
|
108
|
+
this.element.bind( "change.button", function() {
|
109
|
+
self.refresh();
|
110
|
+
});
|
111
|
+
}
|
112
|
+
|
113
|
+
if ( this.type === "checkbox" ) {
|
114
|
+
this.buttonElement.bind( "click.button", function() {
|
115
|
+
if ( options.disabled ) {
|
116
|
+
return false;
|
117
|
+
}
|
118
|
+
$( this ).toggleClass( "ui-state-active" );
|
119
|
+
self.buttonElement.attr( "aria-pressed", self.element[0].checked );
|
120
|
+
});
|
121
|
+
} else if ( this.type === "radio" ) {
|
122
|
+
this.buttonElement.bind( "click.button", function() {
|
123
|
+
if ( options.disabled ) {
|
124
|
+
return false;
|
125
|
+
}
|
126
|
+
$( this ).addClass( "ui-state-active" );
|
127
|
+
self.buttonElement.attr( "aria-pressed", true );
|
128
|
+
|
129
|
+
var radio = self.element[ 0 ];
|
130
|
+
radioGroup( radio )
|
131
|
+
.not( radio )
|
132
|
+
.map(function() {
|
133
|
+
return $( this ).button( "widget" )[ 0 ];
|
134
|
+
})
|
135
|
+
.removeClass( "ui-state-active" )
|
136
|
+
.attr( "aria-pressed", false );
|
137
|
+
});
|
138
|
+
} else {
|
139
|
+
this.buttonElement
|
140
|
+
.bind( "mousedown.button", function() {
|
141
|
+
if ( options.disabled ) {
|
142
|
+
return false;
|
143
|
+
}
|
144
|
+
$( this ).addClass( "ui-state-active" );
|
145
|
+
lastActive = this;
|
146
|
+
$( document ).one( "mouseup", function() {
|
147
|
+
lastActive = null;
|
148
|
+
});
|
149
|
+
})
|
150
|
+
.bind( "mouseup.button", function() {
|
151
|
+
if ( options.disabled ) {
|
152
|
+
return false;
|
153
|
+
}
|
154
|
+
$( this ).removeClass( "ui-state-active" );
|
155
|
+
})
|
156
|
+
.bind( "keydown.button", function(event) {
|
157
|
+
if ( options.disabled ) {
|
158
|
+
return false;
|
159
|
+
}
|
160
|
+
if ( event.keyCode == $.ui.keyCode.SPACE || event.keyCode == $.ui.keyCode.ENTER ) {
|
161
|
+
$( this ).addClass( "ui-state-active" );
|
162
|
+
}
|
163
|
+
})
|
164
|
+
.bind( "keyup.button", function() {
|
165
|
+
$( this ).removeClass( "ui-state-active" );
|
166
|
+
});
|
167
|
+
|
168
|
+
if ( this.buttonElement.is("a") ) {
|
169
|
+
this.buttonElement.keyup(function(event) {
|
170
|
+
if ( event.keyCode === $.ui.keyCode.SPACE ) {
|
171
|
+
// TODO pass through original event correctly (just as 2nd argument doesn't work)
|
172
|
+
$( this ).click();
|
173
|
+
}
|
174
|
+
});
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
// TODO: pull out $.Widget's handling for the disabled option into
|
179
|
+
// $.Widget.prototype._setOptionDisabled so it's easy to proxy and can
|
180
|
+
// be overridden by individual plugins
|
181
|
+
this._setOption( "disabled", options.disabled );
|
182
|
+
},
|
183
|
+
|
184
|
+
_determineButtonType: function() {
|
185
|
+
|
186
|
+
if ( this.element.is(":checkbox") ) {
|
187
|
+
this.type = "checkbox";
|
188
|
+
} else {
|
189
|
+
if ( this.element.is(":radio") ) {
|
190
|
+
this.type = "radio";
|
191
|
+
} else {
|
192
|
+
if ( this.element.is("input") ) {
|
193
|
+
this.type = "input";
|
194
|
+
} else {
|
195
|
+
this.type = "button";
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
if ( this.type === "checkbox" || this.type === "radio" ) {
|
201
|
+
// we don't search against the document in case the element
|
202
|
+
// is disconnected from the DOM
|
203
|
+
this.buttonElement = this.element.parents().last()
|
204
|
+
.find( "label[for=" + this.element.attr("id") + "]" );
|
205
|
+
this.element.addClass( "ui-helper-hidden-accessible" );
|
206
|
+
|
207
|
+
var checked = this.element.is( ":checked" );
|
208
|
+
if ( checked ) {
|
209
|
+
this.buttonElement.addClass( "ui-state-active" );
|
210
|
+
}
|
211
|
+
this.buttonElement.attr( "aria-pressed", checked );
|
212
|
+
} else {
|
213
|
+
this.buttonElement = this.element;
|
214
|
+
}
|
215
|
+
},
|
216
|
+
|
217
|
+
widget: function() {
|
218
|
+
return this.buttonElement;
|
219
|
+
},
|
220
|
+
|
221
|
+
destroy: function() {
|
222
|
+
this.element
|
223
|
+
.removeClass( "ui-helper-hidden-accessible" );
|
224
|
+
this.buttonElement
|
225
|
+
.removeClass( baseClasses + " " + stateClasses + " " + typeClasses )
|
226
|
+
.removeAttr( "role" )
|
227
|
+
.removeAttr( "aria-pressed" )
|
228
|
+
.html( this.buttonElement.find(".ui-button-text").html() );
|
229
|
+
|
230
|
+
if ( !this.hasTitle ) {
|
231
|
+
this.buttonElement.removeAttr( "title" );
|
232
|
+
}
|
233
|
+
|
234
|
+
$.Widget.prototype.destroy.call( this );
|
235
|
+
},
|
236
|
+
|
237
|
+
_setOption: function( key, value ) {
|
238
|
+
$.Widget.prototype._setOption.apply( this, arguments );
|
239
|
+
if ( key === "disabled" ) {
|
240
|
+
if ( value ) {
|
241
|
+
this.element.attr( "disabled", true );
|
242
|
+
} else {
|
243
|
+
this.element.removeAttr( "disabled" );
|
244
|
+
}
|
245
|
+
}
|
246
|
+
this._resetButton();
|
247
|
+
},
|
248
|
+
|
249
|
+
refresh: function() {
|
250
|
+
var isDisabled = this.element.is( ":disabled" );
|
251
|
+
if ( isDisabled !== this.options.disabled ) {
|
252
|
+
this._setOption( "disabled", isDisabled );
|
253
|
+
}
|
254
|
+
if ( this.type === "radio" ) {
|
255
|
+
radioGroup( this.element[0] ).each(function() {
|
256
|
+
if ( $( this ).is( ":checked" ) ) {
|
257
|
+
$( this ).button( "widget" )
|
258
|
+
.addClass( "ui-state-active" )
|
259
|
+
.attr( "aria-pressed", true );
|
260
|
+
} else {
|
261
|
+
$( this ).button( "widget" )
|
262
|
+
.removeClass( "ui-state-active" )
|
263
|
+
.attr( "aria-pressed", false );
|
264
|
+
}
|
265
|
+
});
|
266
|
+
} else if ( this.type === "checkbox" ) {
|
267
|
+
if ( this.element.is( ":checked" ) ) {
|
268
|
+
this.buttonElement
|
269
|
+
.addClass( "ui-state-active" )
|
270
|
+
.attr( "aria-pressed", true );
|
271
|
+
} else {
|
272
|
+
this.buttonElement
|
273
|
+
.removeClass( "ui-state-active" )
|
274
|
+
.attr( "aria-pressed", false );
|
275
|
+
}
|
276
|
+
}
|
277
|
+
},
|
278
|
+
|
279
|
+
_resetButton: function() {
|
280
|
+
if ( this.type === "input" ) {
|
281
|
+
if ( this.options.label ) {
|
282
|
+
this.element.val( this.options.label );
|
283
|
+
}
|
284
|
+
return;
|
285
|
+
}
|
286
|
+
var buttonElement = this.buttonElement.removeClass( typeClasses ),
|
287
|
+
buttonText = $( "<span></span>" )
|
288
|
+
.addClass( "ui-button-text" )
|
289
|
+
.html( this.options.label )
|
290
|
+
.appendTo( buttonElement.empty() )
|
291
|
+
.text(),
|
292
|
+
icons = this.options.icons,
|
293
|
+
multipleIcons = icons.primary && icons.secondary;
|
294
|
+
if ( icons.primary || icons.secondary ) {
|
295
|
+
buttonElement.addClass( "ui-button-text-icon" +
|
296
|
+
( multipleIcons ? "s" : ( icons.primary ? "-primary" : "-secondary" ) ) );
|
297
|
+
if ( icons.primary ) {
|
298
|
+
buttonElement.prepend( "<span class='ui-button-icon-primary ui-icon " + icons.primary + "'></span>" );
|
299
|
+
}
|
300
|
+
if ( icons.secondary ) {
|
301
|
+
buttonElement.append( "<span class='ui-button-icon-secondary ui-icon " + icons.secondary + "'></span>" );
|
302
|
+
}
|
303
|
+
if ( !this.options.text ) {
|
304
|
+
buttonElement
|
305
|
+
.addClass( multipleIcons ? "ui-button-icons-only" : "ui-button-icon-only" )
|
306
|
+
.removeClass( "ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary" );
|
307
|
+
if ( !this.hasTitle ) {
|
308
|
+
buttonElement.attr( "title", buttonText );
|
309
|
+
}
|
310
|
+
}
|
311
|
+
} else {
|
312
|
+
buttonElement.addClass( "ui-button-text-only" );
|
313
|
+
}
|
314
|
+
}
|
315
|
+
});
|
316
|
+
|
317
|
+
$.widget( "ui.buttonset", {
|
318
|
+
_create: function() {
|
319
|
+
this.element.addClass( "ui-buttonset" );
|
320
|
+
this._init();
|
321
|
+
},
|
322
|
+
|
323
|
+
_init: function() {
|
324
|
+
this.refresh();
|
325
|
+
},
|
326
|
+
|
327
|
+
_setOption: function( key, value ) {
|
328
|
+
if ( key === "disabled" ) {
|
329
|
+
this.buttons.button( "option", key, value );
|
330
|
+
}
|
331
|
+
|
332
|
+
$.Widget.prototype._setOption.apply( this, arguments );
|
333
|
+
},
|
334
|
+
|
335
|
+
refresh: function() {
|
336
|
+
this.buttons = this.element.find( ":button, :submit, :reset, :checkbox, :radio, a, :data(button)" )
|
337
|
+
.filter( ":ui-button" )
|
338
|
+
.button( "refresh" )
|
339
|
+
.end()
|
340
|
+
.not( ":ui-button" )
|
341
|
+
.button()
|
342
|
+
.end()
|
343
|
+
.map(function() {
|
344
|
+
return $( this ).button( "widget" )[ 0 ];
|
345
|
+
})
|
346
|
+
.removeClass( "ui-corner-all ui-corner-left ui-corner-right" )
|
347
|
+
.filter( ":visible" )
|
348
|
+
.filter( ":first" )
|
349
|
+
.addClass( "ui-corner-left" )
|
350
|
+
.end()
|
351
|
+
.filter( ":last" )
|
352
|
+
.addClass( "ui-corner-right" )
|
353
|
+
.end()
|
354
|
+
.end()
|
355
|
+
.end();
|
356
|
+
},
|
357
|
+
|
358
|
+
destroy: function() {
|
359
|
+
this.element.removeClass( "ui-buttonset" );
|
360
|
+
this.buttons
|
361
|
+
.map(function() {
|
362
|
+
return $( this ).button( "widget" )[ 0 ];
|
363
|
+
})
|
364
|
+
.removeClass( "ui-corner-left ui-corner-right" )
|
365
|
+
.end()
|
366
|
+
.button( "destroy" );
|
367
|
+
|
368
|
+
$.Widget.prototype.destroy.call( this );
|
369
|
+
}
|
370
|
+
});
|
371
|
+
|
372
|
+
}( jQuery ) );
|
@@ -0,0 +1,307 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery UI 1.8.5
|
3
|
+
*
|
4
|
+
* Copyright 2010, 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: "1.8.5",
|
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" ) );
|
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(
|
122
|
+
"mousedown.ui-disableSelection selectstart.ui-disableSelection",
|
123
|
+
function( event ) {
|
124
|
+
event.preventDefault();
|
125
|
+
});
|
126
|
+
},
|
127
|
+
|
128
|
+
enableSelection: function() {
|
129
|
+
return this.unbind( ".ui-disableSelection" );
|
130
|
+
}
|
131
|
+
});
|
132
|
+
|
133
|
+
$.each( [ "Width", "Height" ], function( i, name ) {
|
134
|
+
var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
|
135
|
+
type = name.toLowerCase(),
|
136
|
+
orig = {
|
137
|
+
innerWidth: $.fn.innerWidth,
|
138
|
+
innerHeight: $.fn.innerHeight,
|
139
|
+
outerWidth: $.fn.outerWidth,
|
140
|
+
outerHeight: $.fn.outerHeight
|
141
|
+
};
|
142
|
+
|
143
|
+
function reduce( elem, size, border, margin ) {
|
144
|
+
$.each( side, function() {
|
145
|
+
size -= parseFloat( $.curCSS( elem, "padding" + this, true) ) || 0;
|
146
|
+
if ( border ) {
|
147
|
+
size -= parseFloat( $.curCSS( elem, "border" + this + "Width", true) ) || 0;
|
148
|
+
}
|
149
|
+
if ( margin ) {
|
150
|
+
size -= parseFloat( $.curCSS( elem, "margin" + this, true) ) || 0;
|
151
|
+
}
|
152
|
+
});
|
153
|
+
return size;
|
154
|
+
}
|
155
|
+
|
156
|
+
$.fn[ "inner" + name ] = function( size ) {
|
157
|
+
if ( size === undefined ) {
|
158
|
+
return orig[ "inner" + name ].call( this );
|
159
|
+
}
|
160
|
+
|
161
|
+
return this.each(function() {
|
162
|
+
$.style( this, type, reduce( this, size ) + "px" );
|
163
|
+
});
|
164
|
+
};
|
165
|
+
|
166
|
+
$.fn[ "outer" + name] = function( size, margin ) {
|
167
|
+
if ( typeof size !== "number" ) {
|
168
|
+
return orig[ "outer" + name ].call( this, size );
|
169
|
+
}
|
170
|
+
|
171
|
+
return this.each(function() {
|
172
|
+
$.style( this, type, reduce( this, size, true, margin ) + "px" );
|
173
|
+
});
|
174
|
+
};
|
175
|
+
});
|
176
|
+
|
177
|
+
// selectors
|
178
|
+
function visible( element ) {
|
179
|
+
return !$( element ).parents().andSelf().filter(function() {
|
180
|
+
return $.curCSS( this, "visibility" ) === "hidden" ||
|
181
|
+
$.expr.filters.hidden( this );
|
182
|
+
}).length;
|
183
|
+
}
|
184
|
+
|
185
|
+
$.extend( $.expr[ ":" ], {
|
186
|
+
data: function( elem, i, match ) {
|
187
|
+
return !!$.data( elem, match[ 3 ] );
|
188
|
+
},
|
189
|
+
|
190
|
+
focusable: function( element ) {
|
191
|
+
var nodeName = element.nodeName.toLowerCase(),
|
192
|
+
tabIndex = $.attr( element, "tabindex" );
|
193
|
+
if ( "area" === nodeName ) {
|
194
|
+
var map = element.parentNode,
|
195
|
+
mapName = map.name,
|
196
|
+
img;
|
197
|
+
if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
|
198
|
+
return false;
|
199
|
+
}
|
200
|
+
img = $( "img[usemap=#" + mapName + "]" )[0];
|
201
|
+
return !!img && visible( img );
|
202
|
+
}
|
203
|
+
return ( /input|select|textarea|button|object/.test( nodeName )
|
204
|
+
? !element.disabled
|
205
|
+
: "a" == nodeName
|
206
|
+
? element.href || !isNaN( tabIndex )
|
207
|
+
: !isNaN( tabIndex ))
|
208
|
+
// the element and all of its ancestors must be visible
|
209
|
+
&& visible( element );
|
210
|
+
},
|
211
|
+
|
212
|
+
tabbable: function( element ) {
|
213
|
+
var tabIndex = $.attr( element, "tabindex" );
|
214
|
+
return ( isNaN( tabIndex ) || tabIndex >= 0 ) && $( element ).is( ":focusable" );
|
215
|
+
}
|
216
|
+
});
|
217
|
+
|
218
|
+
// support
|
219
|
+
$(function() {
|
220
|
+
var div = document.createElement( "div" ),
|
221
|
+
body = document.body;
|
222
|
+
|
223
|
+
$.extend( div.style, {
|
224
|
+
minHeight: "100px",
|
225
|
+
height: "auto",
|
226
|
+
padding: 0,
|
227
|
+
borderWidth: 0
|
228
|
+
});
|
229
|
+
|
230
|
+
$.support.minHeight = body.appendChild( div ).offsetHeight === 100;
|
231
|
+
// set display to none to avoid a layout bug in IE
|
232
|
+
// http://dev.jquery.com/ticket/4014
|
233
|
+
body.removeChild( div ).style.display = "none";
|
234
|
+
});
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
// deprecated
|
241
|
+
$.extend( $.ui, {
|
242
|
+
// $.ui.plugin is deprecated. Use the proxy pattern instead.
|
243
|
+
plugin: {
|
244
|
+
add: function( module, option, set ) {
|
245
|
+
var proto = $.ui[ module ].prototype;
|
246
|
+
for ( var i in set ) {
|
247
|
+
proto.plugins[ i ] = proto.plugins[ i ] || [];
|
248
|
+
proto.plugins[ i ].push( [ option, set[ i ] ] );
|
249
|
+
}
|
250
|
+
},
|
251
|
+
call: function( instance, name, args ) {
|
252
|
+
var set = instance.plugins[ name ];
|
253
|
+
if ( !set || !instance.element[ 0 ].parentNode ) {
|
254
|
+
return;
|
255
|
+
}
|
256
|
+
|
257
|
+
for ( var i = 0; i < set.length; i++ ) {
|
258
|
+
if ( instance.options[ set[ i ][ 0 ] ] ) {
|
259
|
+
set[ i ][ 1 ].apply( instance.element, args );
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
},
|
264
|
+
|
265
|
+
// will be deprecated when we switch to jQuery 1.4 - use jQuery.contains()
|
266
|
+
contains: function( a, b ) {
|
267
|
+
return document.compareDocumentPosition ?
|
268
|
+
a.compareDocumentPosition( b ) & 16 :
|
269
|
+
a !== b && a.contains( b );
|
270
|
+
},
|
271
|
+
|
272
|
+
// only used by resizable
|
273
|
+
hasScroll: function( el, a ) {
|
274
|
+
|
275
|
+
//If overflow is hidden, the element might have extra content, but the user wants to hide it
|
276
|
+
if ( $( el ).css( "overflow" ) === "hidden") {
|
277
|
+
return false;
|
278
|
+
}
|
279
|
+
|
280
|
+
var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop",
|
281
|
+
has = false;
|
282
|
+
|
283
|
+
if ( el[ scroll ] > 0 ) {
|
284
|
+
return true;
|
285
|
+
}
|
286
|
+
|
287
|
+
// TODO: determine which cases actually cause this to happen
|
288
|
+
// if the element doesn't have the scroll set, see if it's possible to
|
289
|
+
// set the scroll
|
290
|
+
el[ scroll ] = 1;
|
291
|
+
has = ( el[ scroll ] > 0 );
|
292
|
+
el[ scroll ] = 0;
|
293
|
+
return has;
|
294
|
+
},
|
295
|
+
|
296
|
+
// these are odd functions, fix the API or move into individual plugins
|
297
|
+
isOverAxis: function( x, reference, size ) {
|
298
|
+
//Determines when x coordinate is over "b" element axis
|
299
|
+
return ( x > reference ) && ( x < ( reference + size ) );
|
300
|
+
},
|
301
|
+
isOver: function( y, x, top, left, height, width ) {
|
302
|
+
//Determines when x, y coordinates is over "b" element
|
303
|
+
return $.ui.isOverAxis( y, top, height ) && $.ui.isOverAxis( x, left, width );
|
304
|
+
}
|
305
|
+
});
|
306
|
+
|
307
|
+
})( jQuery );
|