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,837 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery UI Dialog 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/Dialog
|
9
|
+
*
|
10
|
+
* Depends:
|
11
|
+
* jquery.ui.core.js
|
12
|
+
* jquery.ui.widget.js
|
13
|
+
* jquery.ui.button.js
|
14
|
+
* jquery.ui.draggable.js
|
15
|
+
* jquery.ui.mouse.js
|
16
|
+
* jquery.ui.position.js
|
17
|
+
* jquery.ui.resizable.js
|
18
|
+
*/
|
19
|
+
(function( $, undefined ) {
|
20
|
+
|
21
|
+
var uiDialogClasses =
|
22
|
+
'ui-dialog ' +
|
23
|
+
'ui-widget ' +
|
24
|
+
'ui-widget-content ' +
|
25
|
+
'ui-corner-all ';
|
26
|
+
|
27
|
+
$.widget("ui.dialog", {
|
28
|
+
options: {
|
29
|
+
autoOpen: true,
|
30
|
+
buttons: {},
|
31
|
+
closeOnEscape: true,
|
32
|
+
closeText: 'close',
|
33
|
+
dialogClass: '',
|
34
|
+
draggable: true,
|
35
|
+
hide: null,
|
36
|
+
height: 'auto',
|
37
|
+
maxHeight: false,
|
38
|
+
maxWidth: false,
|
39
|
+
minHeight: 150,
|
40
|
+
minWidth: 150,
|
41
|
+
modal: false,
|
42
|
+
position: {
|
43
|
+
my: 'center',
|
44
|
+
at: 'center',
|
45
|
+
of: window,
|
46
|
+
collision: 'fit',
|
47
|
+
// ensure that the titlebar is never outside the document
|
48
|
+
using: function(pos) {
|
49
|
+
var topOffset = $(this).css(pos).offset().top;
|
50
|
+
if (topOffset < 0) {
|
51
|
+
$(this).css('top', pos.top - topOffset);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
},
|
55
|
+
resizable: true,
|
56
|
+
show: null,
|
57
|
+
stack: true,
|
58
|
+
title: '',
|
59
|
+
width: 300,
|
60
|
+
zIndex: 1000
|
61
|
+
},
|
62
|
+
|
63
|
+
_create: function() {
|
64
|
+
this.originalTitle = this.element.attr('title');
|
65
|
+
// #5742 - .attr() might return a DOMElement
|
66
|
+
if ( typeof this.originalTitle !== "string" ) {
|
67
|
+
this.originalTitle = "";
|
68
|
+
}
|
69
|
+
|
70
|
+
this.options.title = this.options.title || this.originalTitle;
|
71
|
+
var self = this,
|
72
|
+
options = self.options,
|
73
|
+
|
74
|
+
title = options.title || ' ',
|
75
|
+
titleId = $.ui.dialog.getTitleId(self.element),
|
76
|
+
|
77
|
+
uiDialog = (self.uiDialog = $('<div></div>'))
|
78
|
+
.appendTo(document.body)
|
79
|
+
.hide()
|
80
|
+
.addClass(uiDialogClasses + options.dialogClass)
|
81
|
+
.css({
|
82
|
+
zIndex: options.zIndex
|
83
|
+
})
|
84
|
+
// setting tabIndex makes the div focusable
|
85
|
+
// setting outline to 0 prevents a border on focus in Mozilla
|
86
|
+
.attr('tabIndex', -1).css('outline', 0).keydown(function(event) {
|
87
|
+
if (options.closeOnEscape && event.keyCode &&
|
88
|
+
event.keyCode === $.ui.keyCode.ESCAPE) {
|
89
|
+
|
90
|
+
self.close(event);
|
91
|
+
event.preventDefault();
|
92
|
+
}
|
93
|
+
})
|
94
|
+
.attr({
|
95
|
+
role: 'dialog',
|
96
|
+
'aria-labelledby': titleId
|
97
|
+
})
|
98
|
+
.mousedown(function(event) {
|
99
|
+
self.moveToTop(false, event);
|
100
|
+
}),
|
101
|
+
|
102
|
+
uiDialogContent = self.element
|
103
|
+
.show()
|
104
|
+
.removeAttr('title')
|
105
|
+
.addClass(
|
106
|
+
'ui-dialog-content ' +
|
107
|
+
'ui-widget-content')
|
108
|
+
.appendTo(uiDialog),
|
109
|
+
|
110
|
+
uiDialogTitlebar = (self.uiDialogTitlebar = $('<div></div>'))
|
111
|
+
.addClass(
|
112
|
+
'ui-dialog-titlebar ' +
|
113
|
+
'ui-widget-header ' +
|
114
|
+
'ui-corner-all ' +
|
115
|
+
'ui-helper-clearfix'
|
116
|
+
)
|
117
|
+
.prependTo(uiDialog),
|
118
|
+
|
119
|
+
uiDialogTitlebarClose = $('<a href="#"></a>')
|
120
|
+
.addClass(
|
121
|
+
'ui-dialog-titlebar-close ' +
|
122
|
+
'ui-corner-all'
|
123
|
+
)
|
124
|
+
.attr('role', 'button')
|
125
|
+
.hover(
|
126
|
+
function() {
|
127
|
+
uiDialogTitlebarClose.addClass('ui-state-hover');
|
128
|
+
},
|
129
|
+
function() {
|
130
|
+
uiDialogTitlebarClose.removeClass('ui-state-hover');
|
131
|
+
}
|
132
|
+
)
|
133
|
+
.focus(function() {
|
134
|
+
uiDialogTitlebarClose.addClass('ui-state-focus');
|
135
|
+
})
|
136
|
+
.blur(function() {
|
137
|
+
uiDialogTitlebarClose.removeClass('ui-state-focus');
|
138
|
+
})
|
139
|
+
.click(function(event) {
|
140
|
+
self.close(event);
|
141
|
+
return false;
|
142
|
+
})
|
143
|
+
.appendTo(uiDialogTitlebar),
|
144
|
+
|
145
|
+
uiDialogTitlebarCloseText = (self.uiDialogTitlebarCloseText = $('<span></span>'))
|
146
|
+
.addClass(
|
147
|
+
'ui-icon ' +
|
148
|
+
'ui-icon-closethick'
|
149
|
+
)
|
150
|
+
.text(options.closeText)
|
151
|
+
.appendTo(uiDialogTitlebarClose),
|
152
|
+
|
153
|
+
uiDialogTitle = $('<span></span>')
|
154
|
+
.addClass('ui-dialog-title')
|
155
|
+
.attr('id', titleId)
|
156
|
+
.html(title)
|
157
|
+
.prependTo(uiDialogTitlebar);
|
158
|
+
|
159
|
+
//handling of deprecated beforeclose (vs beforeClose) option
|
160
|
+
//Ticket #4669 http://dev.jqueryui.com/ticket/4669
|
161
|
+
//TODO: remove in 1.9pre
|
162
|
+
if ($.isFunction(options.beforeclose) && !$.isFunction(options.beforeClose)) {
|
163
|
+
options.beforeClose = options.beforeclose;
|
164
|
+
}
|
165
|
+
|
166
|
+
uiDialogTitlebar.find("*").add(uiDialogTitlebar).disableSelection();
|
167
|
+
|
168
|
+
if (options.draggable && $.fn.draggable) {
|
169
|
+
self._makeDraggable();
|
170
|
+
}
|
171
|
+
if (options.resizable && $.fn.resizable) {
|
172
|
+
self._makeResizable();
|
173
|
+
}
|
174
|
+
|
175
|
+
self._createButtons(options.buttons);
|
176
|
+
self._isOpen = false;
|
177
|
+
|
178
|
+
if ($.fn.bgiframe) {
|
179
|
+
uiDialog.bgiframe();
|
180
|
+
}
|
181
|
+
},
|
182
|
+
|
183
|
+
_init: function() {
|
184
|
+
if ( this.options.autoOpen ) {
|
185
|
+
this.open();
|
186
|
+
}
|
187
|
+
},
|
188
|
+
|
189
|
+
destroy: function() {
|
190
|
+
var self = this;
|
191
|
+
|
192
|
+
if (self.overlay) {
|
193
|
+
self.overlay.destroy();
|
194
|
+
}
|
195
|
+
self.uiDialog.hide();
|
196
|
+
self.element
|
197
|
+
.unbind('.dialog')
|
198
|
+
.removeData('dialog')
|
199
|
+
.removeClass('ui-dialog-content ui-widget-content')
|
200
|
+
.hide().appendTo('body');
|
201
|
+
self.uiDialog.remove();
|
202
|
+
|
203
|
+
if (self.originalTitle) {
|
204
|
+
self.element.attr('title', self.originalTitle);
|
205
|
+
}
|
206
|
+
|
207
|
+
return self;
|
208
|
+
},
|
209
|
+
|
210
|
+
widget: function() {
|
211
|
+
return this.uiDialog;
|
212
|
+
},
|
213
|
+
|
214
|
+
close: function(event) {
|
215
|
+
var self = this,
|
216
|
+
maxZ;
|
217
|
+
|
218
|
+
if (false === self._trigger('beforeClose', event)) {
|
219
|
+
return;
|
220
|
+
}
|
221
|
+
|
222
|
+
if (self.overlay) {
|
223
|
+
self.overlay.destroy();
|
224
|
+
}
|
225
|
+
self.uiDialog.unbind('keypress.ui-dialog');
|
226
|
+
|
227
|
+
self._isOpen = false;
|
228
|
+
|
229
|
+
if (self.options.hide) {
|
230
|
+
self.uiDialog.hide(self.options.hide, function() {
|
231
|
+
self._trigger('close', event);
|
232
|
+
});
|
233
|
+
} else {
|
234
|
+
self.uiDialog.hide();
|
235
|
+
self._trigger('close', event);
|
236
|
+
}
|
237
|
+
|
238
|
+
$.ui.dialog.overlay.resize();
|
239
|
+
|
240
|
+
// adjust the maxZ to allow other modal dialogs to continue to work (see #4309)
|
241
|
+
if (self.options.modal) {
|
242
|
+
maxZ = 0;
|
243
|
+
$('.ui-dialog').each(function() {
|
244
|
+
if (this !== self.uiDialog[0]) {
|
245
|
+
maxZ = Math.max(maxZ, $(this).css('z-index'));
|
246
|
+
}
|
247
|
+
});
|
248
|
+
$.ui.dialog.maxZ = maxZ;
|
249
|
+
}
|
250
|
+
|
251
|
+
return self;
|
252
|
+
},
|
253
|
+
|
254
|
+
isOpen: function() {
|
255
|
+
return this._isOpen;
|
256
|
+
},
|
257
|
+
|
258
|
+
// the force parameter allows us to move modal dialogs to their correct
|
259
|
+
// position on open
|
260
|
+
moveToTop: function(force, event) {
|
261
|
+
var self = this,
|
262
|
+
options = self.options,
|
263
|
+
saveScroll;
|
264
|
+
|
265
|
+
if ((options.modal && !force) ||
|
266
|
+
(!options.stack && !options.modal)) {
|
267
|
+
return self._trigger('focus', event);
|
268
|
+
}
|
269
|
+
|
270
|
+
if (options.zIndex > $.ui.dialog.maxZ) {
|
271
|
+
$.ui.dialog.maxZ = options.zIndex;
|
272
|
+
}
|
273
|
+
if (self.overlay) {
|
274
|
+
$.ui.dialog.maxZ += 1;
|
275
|
+
self.overlay.$el.css('z-index', $.ui.dialog.overlay.maxZ = $.ui.dialog.maxZ);
|
276
|
+
}
|
277
|
+
|
278
|
+
//Save and then restore scroll since Opera 9.5+ resets when parent z-Index is changed.
|
279
|
+
// http://ui.jquery.com/bugs/ticket/3193
|
280
|
+
saveScroll = { scrollTop: self.element.attr('scrollTop'), scrollLeft: self.element.attr('scrollLeft') };
|
281
|
+
$.ui.dialog.maxZ += 1;
|
282
|
+
self.uiDialog.css('z-index', $.ui.dialog.maxZ);
|
283
|
+
self.element.attr(saveScroll);
|
284
|
+
self._trigger('focus', event);
|
285
|
+
|
286
|
+
return self;
|
287
|
+
},
|
288
|
+
|
289
|
+
open: function() {
|
290
|
+
if (this._isOpen) { return; }
|
291
|
+
|
292
|
+
var self = this,
|
293
|
+
options = self.options,
|
294
|
+
uiDialog = self.uiDialog;
|
295
|
+
|
296
|
+
self.overlay = options.modal ? new $.ui.dialog.overlay(self) : null;
|
297
|
+
if (uiDialog.next().length) {
|
298
|
+
uiDialog.appendTo('body');
|
299
|
+
}
|
300
|
+
self._size();
|
301
|
+
self._position(options.position);
|
302
|
+
uiDialog.show(options.show);
|
303
|
+
self.moveToTop(true);
|
304
|
+
|
305
|
+
// prevent tabbing out of modal dialogs
|
306
|
+
if (options.modal) {
|
307
|
+
uiDialog.bind('keypress.ui-dialog', function(event) {
|
308
|
+
if (event.keyCode !== $.ui.keyCode.TAB) {
|
309
|
+
return;
|
310
|
+
}
|
311
|
+
|
312
|
+
var tabbables = $(':tabbable', this),
|
313
|
+
first = tabbables.filter(':first'),
|
314
|
+
last = tabbables.filter(':last');
|
315
|
+
|
316
|
+
if (event.target === last[0] && !event.shiftKey) {
|
317
|
+
first.focus(1);
|
318
|
+
return false;
|
319
|
+
} else if (event.target === first[0] && event.shiftKey) {
|
320
|
+
last.focus(1);
|
321
|
+
return false;
|
322
|
+
}
|
323
|
+
});
|
324
|
+
}
|
325
|
+
|
326
|
+
// set focus to the first tabbable element in the content area or the first button
|
327
|
+
// if there are no tabbable elements, set focus on the dialog itself
|
328
|
+
$(self.element.find(':tabbable').get().concat(
|
329
|
+
uiDialog.find('.ui-dialog-buttonpane :tabbable').get().concat(
|
330
|
+
uiDialog.get()))).eq(0).focus();
|
331
|
+
|
332
|
+
self._isOpen = true;
|
333
|
+
self._trigger('open');
|
334
|
+
|
335
|
+
return self;
|
336
|
+
},
|
337
|
+
|
338
|
+
_createButtons: function(buttons) {
|
339
|
+
var self = this,
|
340
|
+
hasButtons = false,
|
341
|
+
uiDialogButtonPane = $('<div></div>')
|
342
|
+
.addClass(
|
343
|
+
'ui-dialog-buttonpane ' +
|
344
|
+
'ui-widget-content ' +
|
345
|
+
'ui-helper-clearfix'
|
346
|
+
),
|
347
|
+
uiButtonSet = $( "<div></div>" )
|
348
|
+
.addClass( "ui-dialog-buttonset" )
|
349
|
+
.appendTo( uiDialogButtonPane );
|
350
|
+
|
351
|
+
// if we already have a button pane, remove it
|
352
|
+
self.uiDialog.find('.ui-dialog-buttonpane').remove();
|
353
|
+
|
354
|
+
if (typeof buttons === 'object' && buttons !== null) {
|
355
|
+
$.each(buttons, function() {
|
356
|
+
return !(hasButtons = true);
|
357
|
+
});
|
358
|
+
}
|
359
|
+
if (hasButtons) {
|
360
|
+
$.each(buttons, function(name, props) {
|
361
|
+
props = $.isFunction( props ) ?
|
362
|
+
{ click: props, text: name } :
|
363
|
+
props;
|
364
|
+
var button = $('<button></button>', props)
|
365
|
+
.unbind('click')
|
366
|
+
.click(function() {
|
367
|
+
props.click.apply(self.element[0], arguments);
|
368
|
+
})
|
369
|
+
.appendTo(uiButtonSet);
|
370
|
+
if ($.fn.button) {
|
371
|
+
button.button();
|
372
|
+
}
|
373
|
+
});
|
374
|
+
uiDialogButtonPane.appendTo(self.uiDialog);
|
375
|
+
}
|
376
|
+
},
|
377
|
+
|
378
|
+
_makeDraggable: function() {
|
379
|
+
var self = this,
|
380
|
+
options = self.options,
|
381
|
+
doc = $(document),
|
382
|
+
heightBeforeDrag;
|
383
|
+
|
384
|
+
function filteredUi(ui) {
|
385
|
+
return {
|
386
|
+
position: ui.position,
|
387
|
+
offset: ui.offset
|
388
|
+
};
|
389
|
+
}
|
390
|
+
|
391
|
+
self.uiDialog.draggable({
|
392
|
+
cancel: '.ui-dialog-content, .ui-dialog-titlebar-close',
|
393
|
+
handle: '.ui-dialog-titlebar',
|
394
|
+
containment: 'document',
|
395
|
+
start: function(event, ui) {
|
396
|
+
heightBeforeDrag = options.height === "auto" ? "auto" : $(this).height();
|
397
|
+
$(this).height($(this).height()).addClass("ui-dialog-dragging");
|
398
|
+
self._trigger('dragStart', event, filteredUi(ui));
|
399
|
+
},
|
400
|
+
drag: function(event, ui) {
|
401
|
+
self._trigger('drag', event, filteredUi(ui));
|
402
|
+
},
|
403
|
+
stop: function(event, ui) {
|
404
|
+
options.position = [ui.position.left - doc.scrollLeft(),
|
405
|
+
ui.position.top - doc.scrollTop()];
|
406
|
+
$(this).removeClass("ui-dialog-dragging").height(heightBeforeDrag);
|
407
|
+
self._trigger('dragStop', event, filteredUi(ui));
|
408
|
+
$.ui.dialog.overlay.resize();
|
409
|
+
}
|
410
|
+
});
|
411
|
+
},
|
412
|
+
|
413
|
+
_makeResizable: function(handles) {
|
414
|
+
handles = (handles === undefined ? this.options.resizable : handles);
|
415
|
+
var self = this,
|
416
|
+
options = self.options,
|
417
|
+
// .ui-resizable has position: relative defined in the stylesheet
|
418
|
+
// but dialogs have to use absolute or fixed positioning
|
419
|
+
position = self.uiDialog.css('position'),
|
420
|
+
resizeHandles = (typeof handles === 'string' ?
|
421
|
+
handles :
|
422
|
+
'n,e,s,w,se,sw,ne,nw'
|
423
|
+
);
|
424
|
+
|
425
|
+
function filteredUi(ui) {
|
426
|
+
return {
|
427
|
+
originalPosition: ui.originalPosition,
|
428
|
+
originalSize: ui.originalSize,
|
429
|
+
position: ui.position,
|
430
|
+
size: ui.size
|
431
|
+
};
|
432
|
+
}
|
433
|
+
|
434
|
+
self.uiDialog.resizable({
|
435
|
+
cancel: '.ui-dialog-content',
|
436
|
+
containment: 'document',
|
437
|
+
alsoResize: self.element,
|
438
|
+
maxWidth: options.maxWidth,
|
439
|
+
maxHeight: options.maxHeight,
|
440
|
+
minWidth: options.minWidth,
|
441
|
+
minHeight: self._minHeight(),
|
442
|
+
handles: resizeHandles,
|
443
|
+
start: function(event, ui) {
|
444
|
+
$(this).addClass("ui-dialog-resizing");
|
445
|
+
self._trigger('resizeStart', event, filteredUi(ui));
|
446
|
+
},
|
447
|
+
resize: function(event, ui) {
|
448
|
+
self._trigger('resize', event, filteredUi(ui));
|
449
|
+
},
|
450
|
+
stop: function(event, ui) {
|
451
|
+
$(this).removeClass("ui-dialog-resizing");
|
452
|
+
options.height = $(this).height();
|
453
|
+
options.width = $(this).width();
|
454
|
+
self._trigger('resizeStop', event, filteredUi(ui));
|
455
|
+
$.ui.dialog.overlay.resize();
|
456
|
+
}
|
457
|
+
})
|
458
|
+
.css('position', position)
|
459
|
+
.find('.ui-resizable-se').addClass('ui-icon ui-icon-grip-diagonal-se');
|
460
|
+
},
|
461
|
+
|
462
|
+
_minHeight: function() {
|
463
|
+
var options = this.options;
|
464
|
+
|
465
|
+
if (options.height === 'auto') {
|
466
|
+
return options.minHeight;
|
467
|
+
} else {
|
468
|
+
return Math.min(options.minHeight, options.height);
|
469
|
+
}
|
470
|
+
},
|
471
|
+
|
472
|
+
_position: function(position) {
|
473
|
+
var myAt = [],
|
474
|
+
offset = [0, 0],
|
475
|
+
isVisible;
|
476
|
+
|
477
|
+
if (position) {
|
478
|
+
// deep extending converts arrays to objects in jQuery <= 1.3.2 :-(
|
479
|
+
// if (typeof position == 'string' || $.isArray(position)) {
|
480
|
+
// myAt = $.isArray(position) ? position : position.split(' ');
|
481
|
+
|
482
|
+
if (typeof position === 'string' || (typeof position === 'object' && '0' in position)) {
|
483
|
+
myAt = position.split ? position.split(' ') : [position[0], position[1]];
|
484
|
+
if (myAt.length === 1) {
|
485
|
+
myAt[1] = myAt[0];
|
486
|
+
}
|
487
|
+
|
488
|
+
$.each(['left', 'top'], function(i, offsetPosition) {
|
489
|
+
if (+myAt[i] === myAt[i]) {
|
490
|
+
offset[i] = myAt[i];
|
491
|
+
myAt[i] = offsetPosition;
|
492
|
+
}
|
493
|
+
});
|
494
|
+
|
495
|
+
position = {
|
496
|
+
my: myAt.join(" "),
|
497
|
+
at: myAt.join(" "),
|
498
|
+
offset: offset.join(" ")
|
499
|
+
};
|
500
|
+
}
|
501
|
+
|
502
|
+
position = $.extend({}, $.ui.dialog.prototype.options.position, position);
|
503
|
+
} else {
|
504
|
+
position = $.ui.dialog.prototype.options.position;
|
505
|
+
}
|
506
|
+
|
507
|
+
// need to show the dialog to get the actual offset in the position plugin
|
508
|
+
isVisible = this.uiDialog.is(':visible');
|
509
|
+
if (!isVisible) {
|
510
|
+
this.uiDialog.show();
|
511
|
+
}
|
512
|
+
this.uiDialog
|
513
|
+
// workaround for jQuery bug #5781 http://dev.jquery.com/ticket/5781
|
514
|
+
.css({ top: 0, left: 0 })
|
515
|
+
.position(position);
|
516
|
+
if (!isVisible) {
|
517
|
+
this.uiDialog.hide();
|
518
|
+
}
|
519
|
+
},
|
520
|
+
|
521
|
+
_setOption: function(key, value){
|
522
|
+
var self = this,
|
523
|
+
uiDialog = self.uiDialog,
|
524
|
+
isResizable = uiDialog.is(':data(resizable)'),
|
525
|
+
resize = false;
|
526
|
+
|
527
|
+
switch (key) {
|
528
|
+
//handling of deprecated beforeclose (vs beforeClose) option
|
529
|
+
//Ticket #4669 http://dev.jqueryui.com/ticket/4669
|
530
|
+
//TODO: remove in 1.9pre
|
531
|
+
case "beforeclose":
|
532
|
+
key = "beforeClose";
|
533
|
+
break;
|
534
|
+
case "buttons":
|
535
|
+
self._createButtons(value);
|
536
|
+
resize = true;
|
537
|
+
break;
|
538
|
+
case "closeText":
|
539
|
+
// convert whatever was passed in to a string, for text() to not throw up
|
540
|
+
self.uiDialogTitlebarCloseText.text("" + value);
|
541
|
+
break;
|
542
|
+
case "dialogClass":
|
543
|
+
uiDialog
|
544
|
+
.removeClass(self.options.dialogClass)
|
545
|
+
.addClass(uiDialogClasses + value);
|
546
|
+
break;
|
547
|
+
case "disabled":
|
548
|
+
if (value) {
|
549
|
+
uiDialog.addClass('ui-dialog-disabled');
|
550
|
+
} else {
|
551
|
+
uiDialog.removeClass('ui-dialog-disabled');
|
552
|
+
}
|
553
|
+
break;
|
554
|
+
case "draggable":
|
555
|
+
if (value) {
|
556
|
+
self._makeDraggable();
|
557
|
+
} else {
|
558
|
+
uiDialog.draggable('destroy');
|
559
|
+
}
|
560
|
+
break;
|
561
|
+
case "height":
|
562
|
+
resize = true;
|
563
|
+
break;
|
564
|
+
case "maxHeight":
|
565
|
+
if (isResizable) {
|
566
|
+
uiDialog.resizable('option', 'maxHeight', value);
|
567
|
+
}
|
568
|
+
resize = true;
|
569
|
+
break;
|
570
|
+
case "maxWidth":
|
571
|
+
if (isResizable) {
|
572
|
+
uiDialog.resizable('option', 'maxWidth', value);
|
573
|
+
}
|
574
|
+
resize = true;
|
575
|
+
break;
|
576
|
+
case "minHeight":
|
577
|
+
if (isResizable) {
|
578
|
+
uiDialog.resizable('option', 'minHeight', value);
|
579
|
+
}
|
580
|
+
resize = true;
|
581
|
+
break;
|
582
|
+
case "minWidth":
|
583
|
+
if (isResizable) {
|
584
|
+
uiDialog.resizable('option', 'minWidth', value);
|
585
|
+
}
|
586
|
+
resize = true;
|
587
|
+
break;
|
588
|
+
case "position":
|
589
|
+
self._position(value);
|
590
|
+
break;
|
591
|
+
case "resizable":
|
592
|
+
// currently resizable, becoming non-resizable
|
593
|
+
if (isResizable && !value) {
|
594
|
+
uiDialog.resizable('destroy');
|
595
|
+
}
|
596
|
+
|
597
|
+
// currently resizable, changing handles
|
598
|
+
if (isResizable && typeof value === 'string') {
|
599
|
+
uiDialog.resizable('option', 'handles', value);
|
600
|
+
}
|
601
|
+
|
602
|
+
// currently non-resizable, becoming resizable
|
603
|
+
if (!isResizable && value !== false) {
|
604
|
+
self._makeResizable(value);
|
605
|
+
}
|
606
|
+
break;
|
607
|
+
case "title":
|
608
|
+
// convert whatever was passed in o a string, for html() to not throw up
|
609
|
+
$(".ui-dialog-title", self.uiDialogTitlebar).html("" + (value || ' '));
|
610
|
+
break;
|
611
|
+
case "width":
|
612
|
+
resize = true;
|
613
|
+
break;
|
614
|
+
}
|
615
|
+
|
616
|
+
$.Widget.prototype._setOption.apply(self, arguments);
|
617
|
+
if (resize) {
|
618
|
+
self._size();
|
619
|
+
}
|
620
|
+
},
|
621
|
+
|
622
|
+
_size: function() {
|
623
|
+
/* If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
|
624
|
+
* divs will both have width and height set, so we need to reset them
|
625
|
+
*/
|
626
|
+
var options = this.options,
|
627
|
+
nonContentHeight;
|
628
|
+
|
629
|
+
// reset content sizing
|
630
|
+
// hide for non content measurement because height: 0 doesn't work in IE quirks mode (see #4350)
|
631
|
+
this.element.css({
|
632
|
+
width: 'auto',
|
633
|
+
minHeight: 0,
|
634
|
+
height: 0
|
635
|
+
});
|
636
|
+
|
637
|
+
if (options.minWidth > options.width) {
|
638
|
+
options.width = options.minWidth;
|
639
|
+
}
|
640
|
+
|
641
|
+
// reset wrapper sizing
|
642
|
+
// determine the height of all the non-content elements
|
643
|
+
nonContentHeight = this.uiDialog.css({
|
644
|
+
height: 'auto',
|
645
|
+
width: options.width
|
646
|
+
})
|
647
|
+
.height();
|
648
|
+
|
649
|
+
this.element
|
650
|
+
.css(options.height === 'auto' ? {
|
651
|
+
minHeight: Math.max(options.minHeight - nonContentHeight, 0),
|
652
|
+
height: $.support.minHeight ? 'auto' :
|
653
|
+
Math.max(options.minHeight - nonContentHeight, 0)
|
654
|
+
} : {
|
655
|
+
minHeight: 0,
|
656
|
+
height: Math.max(options.height - nonContentHeight, 0)
|
657
|
+
})
|
658
|
+
.show();
|
659
|
+
|
660
|
+
if (this.uiDialog.is(':data(resizable)')) {
|
661
|
+
this.uiDialog.resizable('option', 'minHeight', this._minHeight());
|
662
|
+
}
|
663
|
+
}
|
664
|
+
});
|
665
|
+
|
666
|
+
$.extend($.ui.dialog, {
|
667
|
+
version: "1.8.5",
|
668
|
+
|
669
|
+
uuid: 0,
|
670
|
+
maxZ: 0,
|
671
|
+
|
672
|
+
getTitleId: function($el) {
|
673
|
+
var id = $el.attr('id');
|
674
|
+
if (!id) {
|
675
|
+
this.uuid += 1;
|
676
|
+
id = this.uuid;
|
677
|
+
}
|
678
|
+
return 'ui-dialog-title-' + id;
|
679
|
+
},
|
680
|
+
|
681
|
+
overlay: function(dialog) {
|
682
|
+
this.$el = $.ui.dialog.overlay.create(dialog);
|
683
|
+
}
|
684
|
+
});
|
685
|
+
|
686
|
+
$.extend($.ui.dialog.overlay, {
|
687
|
+
instances: [],
|
688
|
+
// reuse old instances due to IE memory leak with alpha transparency (see #5185)
|
689
|
+
oldInstances: [],
|
690
|
+
maxZ: 0,
|
691
|
+
events: $.map('focus,mousedown,mouseup,keydown,keypress,click'.split(','),
|
692
|
+
function(event) { return event + '.dialog-overlay'; }).join(' '),
|
693
|
+
create: function(dialog) {
|
694
|
+
if (this.instances.length === 0) {
|
695
|
+
// prevent use of anchors and inputs
|
696
|
+
// we use a setTimeout in case the overlay is created from an
|
697
|
+
// event that we're going to be cancelling (see #2804)
|
698
|
+
setTimeout(function() {
|
699
|
+
// handle $(el).dialog().dialog('close') (see #4065)
|
700
|
+
if ($.ui.dialog.overlay.instances.length) {
|
701
|
+
$(document).bind($.ui.dialog.overlay.events, function(event) {
|
702
|
+
// stop events if the z-index of the target is < the z-index of the overlay
|
703
|
+
// we cannot return true when we don't want to cancel the event (#3523)
|
704
|
+
if ($(event.target).zIndex() < $.ui.dialog.overlay.maxZ) {
|
705
|
+
return false;
|
706
|
+
}
|
707
|
+
});
|
708
|
+
}
|
709
|
+
}, 1);
|
710
|
+
|
711
|
+
// allow closing by pressing the escape key
|
712
|
+
$(document).bind('keydown.dialog-overlay', function(event) {
|
713
|
+
if (dialog.options.closeOnEscape && event.keyCode &&
|
714
|
+
event.keyCode === $.ui.keyCode.ESCAPE) {
|
715
|
+
|
716
|
+
dialog.close(event);
|
717
|
+
event.preventDefault();
|
718
|
+
}
|
719
|
+
});
|
720
|
+
|
721
|
+
// handle window resize
|
722
|
+
$(window).bind('resize.dialog-overlay', $.ui.dialog.overlay.resize);
|
723
|
+
}
|
724
|
+
|
725
|
+
var $el = (this.oldInstances.pop() || $('<div></div>').addClass('ui-widget-overlay'))
|
726
|
+
.appendTo(document.body)
|
727
|
+
.css({
|
728
|
+
width: this.width(),
|
729
|
+
height: this.height()
|
730
|
+
});
|
731
|
+
|
732
|
+
if ($.fn.bgiframe) {
|
733
|
+
$el.bgiframe();
|
734
|
+
}
|
735
|
+
|
736
|
+
this.instances.push($el);
|
737
|
+
return $el;
|
738
|
+
},
|
739
|
+
|
740
|
+
destroy: function($el) {
|
741
|
+
this.oldInstances.push(this.instances.splice($.inArray($el, this.instances), 1)[0]);
|
742
|
+
|
743
|
+
if (this.instances.length === 0) {
|
744
|
+
$([document, window]).unbind('.dialog-overlay');
|
745
|
+
}
|
746
|
+
|
747
|
+
$el.remove();
|
748
|
+
|
749
|
+
// adjust the maxZ to allow other modal dialogs to continue to work (see #4309)
|
750
|
+
var maxZ = 0;
|
751
|
+
$.each(this.instances, function() {
|
752
|
+
maxZ = Math.max(maxZ, this.css('z-index'));
|
753
|
+
});
|
754
|
+
this.maxZ = maxZ;
|
755
|
+
},
|
756
|
+
|
757
|
+
height: function() {
|
758
|
+
var scrollHeight,
|
759
|
+
offsetHeight;
|
760
|
+
// handle IE 6
|
761
|
+
if ($.browser.msie && $.browser.version < 7) {
|
762
|
+
scrollHeight = Math.max(
|
763
|
+
document.documentElement.scrollHeight,
|
764
|
+
document.body.scrollHeight
|
765
|
+
);
|
766
|
+
offsetHeight = Math.max(
|
767
|
+
document.documentElement.offsetHeight,
|
768
|
+
document.body.offsetHeight
|
769
|
+
);
|
770
|
+
|
771
|
+
if (scrollHeight < offsetHeight) {
|
772
|
+
return $(window).height() + 'px';
|
773
|
+
} else {
|
774
|
+
return scrollHeight + 'px';
|
775
|
+
}
|
776
|
+
// handle "good" browsers
|
777
|
+
} else {
|
778
|
+
return $(document).height() + 'px';
|
779
|
+
}
|
780
|
+
},
|
781
|
+
|
782
|
+
width: function() {
|
783
|
+
var scrollWidth,
|
784
|
+
offsetWidth;
|
785
|
+
// handle IE 6
|
786
|
+
if ($.browser.msie && $.browser.version < 7) {
|
787
|
+
scrollWidth = Math.max(
|
788
|
+
document.documentElement.scrollWidth,
|
789
|
+
document.body.scrollWidth
|
790
|
+
);
|
791
|
+
offsetWidth = Math.max(
|
792
|
+
document.documentElement.offsetWidth,
|
793
|
+
document.body.offsetWidth
|
794
|
+
);
|
795
|
+
|
796
|
+
if (scrollWidth < offsetWidth) {
|
797
|
+
return $(window).width() + 'px';
|
798
|
+
} else {
|
799
|
+
return scrollWidth + 'px';
|
800
|
+
}
|
801
|
+
// handle "good" browsers
|
802
|
+
} else {
|
803
|
+
return $(document).width() + 'px';
|
804
|
+
}
|
805
|
+
},
|
806
|
+
|
807
|
+
resize: function() {
|
808
|
+
/* If the dialog is draggable and the user drags it past the
|
809
|
+
* right edge of the window, the document becomes wider so we
|
810
|
+
* need to stretch the overlay. If the user then drags the
|
811
|
+
* dialog back to the left, the document will become narrower,
|
812
|
+
* so we need to shrink the overlay to the appropriate size.
|
813
|
+
* This is handled by shrinking the overlay before setting it
|
814
|
+
* to the full document size.
|
815
|
+
*/
|
816
|
+
var $overlays = $([]);
|
817
|
+
$.each($.ui.dialog.overlay.instances, function() {
|
818
|
+
$overlays = $overlays.add(this);
|
819
|
+
});
|
820
|
+
|
821
|
+
$overlays.css({
|
822
|
+
width: 0,
|
823
|
+
height: 0
|
824
|
+
}).css({
|
825
|
+
width: $.ui.dialog.overlay.width(),
|
826
|
+
height: $.ui.dialog.overlay.height()
|
827
|
+
});
|
828
|
+
}
|
829
|
+
});
|
830
|
+
|
831
|
+
$.extend($.ui.dialog.overlay.prototype, {
|
832
|
+
destroy: function() {
|
833
|
+
$.ui.dialog.overlay.destroy(this.$el);
|
834
|
+
}
|
835
|
+
});
|
836
|
+
|
837
|
+
}(jQuery));
|