hydroponics 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (410) hide show
  1. data/README.rdoc +2 -2
  2. data/Rakefile +1 -0
  3. data/VERSION +1 -1
  4. data/bin/hydro +19 -5
  5. data/hydroponics.gemspec +409 -3
  6. data/lib/db_remote.rb +23 -0
  7. data/lib/hydroponics.rb +17 -4
  8. data/lib/views/index.erb +26 -0
  9. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  10. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  11. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  12. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  13. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  14. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  15. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  16. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  17. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
  18. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  19. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
  20. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
  21. data/static/jquery-ui-1.8.5.custom/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  22. data/static/jquery-ui-1.8.5.custom/css/smoothness/jquery-ui-1.8.5.custom.css +572 -0
  23. data/static/jquery-ui-1.8.5.custom/development-bundle/AUTHORS.txt +30 -0
  24. data/static/jquery-ui-1.8.5.custom/development-bundle/GPL-LICENSE.txt +278 -0
  25. data/static/jquery-ui-1.8.5.custom/development-bundle/MIT-LICENSE.txt +25 -0
  26. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/collapsible.html +57 -0
  27. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/custom-icons.html +69 -0
  28. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/default.html +85 -0
  29. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/fillspace.html +76 -0
  30. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/hoverintent.html +134 -0
  31. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/index.html +25 -0
  32. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/mouseover.html +57 -0
  33. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/no-auto-height.html +60 -0
  34. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/accordion/sortable.html +83 -0
  35. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/addClass/default.html +52 -0
  36. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/addClass/index.html +18 -0
  37. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/animate/default.html +61 -0
  38. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/animate/index.html +18 -0
  39. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/categories.html +71 -0
  40. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/combobox.html +163 -0
  41. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/custom-data.html +95 -0
  42. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/default.html +64 -0
  43. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/folding.html +62 -0
  44. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/jquery_32x32.png +0 -0
  45. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/jqueryui_32x32.png +0 -0
  46. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/sizzlejs_32x32.png +0 -0
  47. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/transparent_1x1.png +0 -0
  48. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/images/ui-anim_basic_16x16.gif +0 -0
  49. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/index.html +27 -0
  50. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/london.xml +114 -0
  51. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/maxheight.html +75 -0
  52. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/multiple-remote.html +76 -0
  53. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/multiple.html +91 -0
  54. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/remote-jsonp.html +86 -0
  55. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/remote-with-cache.html +59 -0
  56. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/remote.html +59 -0
  57. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/search.php +640 -0
  58. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/autocomplete/xml.html +72 -0
  59. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/checkbox.html +44 -0
  60. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/default.html +38 -0
  61. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/icons.html +56 -0
  62. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/index.html +23 -0
  63. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/radio.html +39 -0
  64. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/splitbutton.html +55 -0
  65. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/button/toolbar.html +120 -0
  66. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/alt-field.html +36 -0
  67. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/animation.html +58 -0
  68. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/buttonbar.html +35 -0
  69. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/date-formats.html +47 -0
  70. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/default.html +33 -0
  71. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/dropdown-month-year.html +36 -0
  72. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/event-search.html +49 -0
  73. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/icon-trigger.html +37 -0
  74. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/images/calendar.gif +0 -0
  75. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/index.html +31 -0
  76. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/inline.html +33 -0
  77. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/localization.html +146 -0
  78. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/min-max.html +33 -0
  79. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/multiple-calendars.html +36 -0
  80. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/other-months.html +37 -0
  81. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/datepicker/show-week.html +39 -0
  82. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/demos.css +334 -0
  83. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/animated.html +56 -0
  84. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/default.html +54 -0
  85. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/index.html +23 -0
  86. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal-confirmation.html +69 -0
  87. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal-form.html +167 -0
  88. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal-message.html +71 -0
  89. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/dialog/modal.html +60 -0
  90. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/constrain-movement.html +69 -0
  91. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/cursor-style.html +49 -0
  92. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/default.html +39 -0
  93. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/delay-start.html +45 -0
  94. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/events.html +77 -0
  95. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/handle.html +50 -0
  96. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/index.html +28 -0
  97. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/revert.html +44 -0
  98. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/scroll.html +51 -0
  99. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/snap-to.html +68 -0
  100. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/sortable.html +57 -0
  101. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/draggable/visual-feedback.html +77 -0
  102. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/accepted-elements.html +60 -0
  103. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/default.html +53 -0
  104. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
  105. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
  106. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
  107. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
  108. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
  109. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
  110. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
  111. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
  112. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/index.html +24 -0
  113. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/photo-manager.html +184 -0
  114. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/propagation.html +80 -0
  115. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/revert.html +61 -0
  116. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/shopping-cart.html +101 -0
  117. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/droppable/visual-feedback.html +78 -0
  118. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/effect/default.html +109 -0
  119. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/effect/easing.html +107 -0
  120. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/effect/index.html +19 -0
  121. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/hide/default.html +102 -0
  122. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/hide/index.html +18 -0
  123. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/calendar.gif +0 -0
  124. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
  125. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-config-on.gif +0 -0
  126. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
  127. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/demo-spindown-open.gif +0 -0
  128. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/icon-docs-info.gif +0 -0
  129. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/images/pbar-ani.gif +0 -0
  130. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/index.html +314 -0
  131. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/cycler.html +122 -0
  132. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/default.html +153 -0
  133. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/images/earth.jpg +0 -0
  134. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/images/flight.jpg +0 -0
  135. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/images/rocket.jpg +0 -0
  136. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/position/index.html +19 -0
  137. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/animated.html +44 -0
  138. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/default.html +35 -0
  139. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/images/pbar-ani.gif +0 -0
  140. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/index.html +20 -0
  141. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/progressbar/resize.html +40 -0
  142. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/removeClass/default.html +52 -0
  143. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/removeClass/index.html +18 -0
  144. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/animate.html +41 -0
  145. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/aspect-ratio.html +40 -0
  146. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/constrain-area.html +45 -0
  147. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/default.html +38 -0
  148. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/delay-start.html +52 -0
  149. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/helper.html +41 -0
  150. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/index.html +28 -0
  151. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/max-min.html +43 -0
  152. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/snap-to-grid.html +40 -0
  153. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/synchronous-resize.html +47 -0
  154. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/textarea.html +39 -0
  155. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/resizable/visual-feedback.html +41 -0
  156. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/default.html +48 -0
  157. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/display-grid.html +53 -0
  158. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/index.html +20 -0
  159. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/selectable/serialize.html +59 -0
  160. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/show/default.html +103 -0
  161. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/show/index.html +18 -0
  162. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/colorpicker.html +95 -0
  163. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/default.html +37 -0
  164. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/hotelrooms.html +59 -0
  165. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/index.html +29 -0
  166. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/multiple-vertical.html +77 -0
  167. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/range-vertical.html +50 -0
  168. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/range.html +51 -0
  169. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/rangemax.html +50 -0
  170. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/rangemin.html +51 -0
  171. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/side-scroll.html +138 -0
  172. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/slider-vertical.html +52 -0
  173. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/steps.html +51 -0
  174. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/slider/tabs.html +67 -0
  175. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/connect-lists-through-tabs.html +79 -0
  176. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/connect-lists.html +58 -0
  177. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/default.html +51 -0
  178. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/delay-start.html +67 -0
  179. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/display-grid.html +54 -0
  180. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/empty-lists.html +69 -0
  181. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/index.html +26 -0
  182. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/items.html +71 -0
  183. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/placeholder.html +56 -0
  184. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/sortable/portlets.html +96 -0
  185. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/switchClass/default.html +48 -0
  186. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/switchClass/index.html +18 -0
  187. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content1.html +4 -0
  188. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content2.html +4 -0
  189. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content3-slow.php +7 -0
  190. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax/content4-broken.php +3 -0
  191. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/ajax.html +51 -0
  192. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/bottom.html +60 -0
  193. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/collapsible.html +56 -0
  194. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/cookie.html +57 -0
  195. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/default.html +49 -0
  196. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/index.html +25 -0
  197. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/manipulation.html +121 -0
  198. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/mouseover.html +54 -0
  199. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/sortable.html +65 -0
  200. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/tabs/vertical.html +64 -0
  201. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggle/default.html +92 -0
  202. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggle/index.html +18 -0
  203. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggleClass/default.html +46 -0
  204. data/static/jquery-ui-1.8.5.custom/development-bundle/demos/toggleClass/index.html +18 -0
  205. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/accordion.html +977 -0
  206. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/addClass.html +109 -0
  207. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/animate.html +78 -0
  208. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/autocomplete.html +710 -0
  209. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/button.html +461 -0
  210. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/datepicker.html +2531 -0
  211. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/dialog.html +1603 -0
  212. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/draggable.html +1536 -0
  213. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/droppable.html +788 -0
  214. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/effect.html +143 -0
  215. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/hide.html +144 -0
  216. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/position.html +226 -0
  217. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/progressbar.html +381 -0
  218. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/removeClass.html +113 -0
  219. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/resizable.html +1160 -0
  220. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/selectable.html +807 -0
  221. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/show.html +144 -0
  222. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/slider.html +821 -0
  223. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/sortable.html +1910 -0
  224. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/switchClass.html +129 -0
  225. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/tabs.html +1513 -0
  226. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/toggle.html +144 -0
  227. data/static/jquery-ui-1.8.5.custom/development-bundle/docs/toggleClass.html +111 -0
  228. data/static/jquery-ui-1.8.5.custom/development-bundle/external/jquery.bgiframe-2.1.1.js +10 -0
  229. data/static/jquery-ui-1.8.5.custom/development-bundle/external/jquery.cookie.js +89 -0
  230. data/static/jquery-ui-1.8.5.custom/development-bundle/external/jquery.metadata.js +122 -0
  231. data/static/jquery-ui-1.8.5.custom/development-bundle/external/qunit.css +153 -0
  232. data/static/jquery-ui-1.8.5.custom/development-bundle/external/qunit.js +1261 -0
  233. data/static/jquery-ui-1.8.5.custom/development-bundle/jquery-1.4.2.js +6240 -0
  234. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  235. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  236. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  237. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  238. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  239. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  240. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  241. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  242. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
  243. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
  244. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
  245. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
  246. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
  247. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.accordion.css +19 -0
  248. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.all.css +11 -0
  249. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.autocomplete.css +53 -0
  250. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.base.css +11 -0
  251. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.button.css +38 -0
  252. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.core.css +41 -0
  253. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.datepicker.css +68 -0
  254. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.dialog.css +21 -0
  255. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.progressbar.css +11 -0
  256. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.resizable.css +20 -0
  257. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.selectable.css +10 -0
  258. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.slider.css +24 -0
  259. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.tabs.css +18 -0
  260. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/base/jquery.ui.theme.css +252 -0
  261. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  262. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  263. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  264. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  265. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  266. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  267. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  268. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  269. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_222222_256x240.png +0 -0
  270. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  271. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_454545_256x240.png +0 -0
  272. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_888888_256x240.png +0 -0
  273. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  274. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery-ui-1.8.5.custom.css +572 -0
  275. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.accordion.css +19 -0
  276. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.all.css +11 -0
  277. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.autocomplete.css +53 -0
  278. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.base.css +11 -0
  279. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.button.css +38 -0
  280. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.core.css +41 -0
  281. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.datepicker.css +68 -0
  282. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.dialog.css +21 -0
  283. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.progressbar.css +11 -0
  284. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.resizable.css +20 -0
  285. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.selectable.css +10 -0
  286. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.slider.css +24 -0
  287. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.tabs.css +18 -0
  288. data/static/jquery-ui-1.8.5.custom/development-bundle/themes/smoothness/jquery.ui.theme.css +254 -0
  289. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery-ui-i18n.js +1199 -0
  290. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-af.js +23 -0
  291. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js +24 -0
  292. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-az.js +23 -0
  293. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js +24 -0
  294. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js +23 -0
  295. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js +23 -0
  296. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js +23 -0
  297. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-da.js +23 -0
  298. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-de.js +23 -0
  299. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-el.js +23 -0
  300. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js +23 -0
  301. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js +23 -0
  302. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-es.js +23 -0
  303. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-et.js +23 -0
  304. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js +23 -0
  305. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js +23 -0
  306. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js +23 -0
  307. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js +23 -0
  308. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js +23 -0
  309. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js +23 -0
  310. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-he.js +23 -0
  311. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js +23 -0
  312. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js +23 -0
  313. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js +23 -0
  314. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-id.js +23 -0
  315. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-is.js +23 -0
  316. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-it.js +23 -0
  317. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js +23 -0
  318. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js +23 -0
  319. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-kz.js +23 -0
  320. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js +23 -0
  321. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js +23 -0
  322. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js +23 -0
  323. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js +23 -0
  324. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-no.js +23 -0
  325. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js +23 -0
  326. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js +23 -0
  327. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js +26 -0
  328. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js +23 -0
  329. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js +23 -0
  330. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js +24 -0
  331. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js +23 -0
  332. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js +23 -0
  333. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js +23 -0
  334. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js +23 -0
  335. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js +23 -0
  336. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-th.js +23 -0
  337. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js +23 -0
  338. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js +23 -0
  339. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js +23 -0
  340. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js +23 -0
  341. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js +23 -0
  342. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js +23 -0
  343. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery-ui-1.8.5.custom.js +11358 -0
  344. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.blind.js +49 -0
  345. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.bounce.js +78 -0
  346. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.clip.js +54 -0
  347. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.core.js +714 -0
  348. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.drop.js +50 -0
  349. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.explode.js +79 -0
  350. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.fade.js +32 -0
  351. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.fold.js +56 -0
  352. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.highlight.js +50 -0
  353. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.pulsate.js +51 -0
  354. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.scale.js +178 -0
  355. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.shake.js +57 -0
  356. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.slide.js +50 -0
  357. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.effects.transfer.js +45 -0
  358. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.accordion.js +598 -0
  359. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.autocomplete.js +555 -0
  360. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.button.js +372 -0
  361. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.core.js +307 -0
  362. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.datepicker.js +1732 -0
  363. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.dialog.js +837 -0
  364. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.draggable.js +797 -0
  365. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.droppable.js +285 -0
  366. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.mouse.js +151 -0
  367. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.position.js +251 -0
  368. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.progressbar.js +94 -0
  369. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.resizable.js +812 -0
  370. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.selectable.js +266 -0
  371. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.slider.js +680 -0
  372. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.sortable.js +1071 -0
  373. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.tabs.js +758 -0
  374. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/jquery.ui.widget.js +249 -0
  375. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.blind.min.js +14 -0
  376. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.bounce.min.js +15 -0
  377. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.clip.min.js +14 -0
  378. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.core.min.js +30 -0
  379. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.drop.min.js +14 -0
  380. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.explode.min.js +15 -0
  381. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.fade.min.js +13 -0
  382. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.fold.min.js +14 -0
  383. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.highlight.min.js +14 -0
  384. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.pulsate.min.js +14 -0
  385. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.scale.min.js +20 -0
  386. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.shake.min.js +14 -0
  387. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.slide.min.js +14 -0
  388. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.effects.transfer.min.js +14 -0
  389. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.accordion.min.js +30 -0
  390. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.autocomplete.min.js +31 -0
  391. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.button.min.js +25 -0
  392. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.core.min.js +17 -0
  393. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.datepicker.min.js +80 -0
  394. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.dialog.min.js +39 -0
  395. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.draggable.min.js +49 -0
  396. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.droppable.min.js +26 -0
  397. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.mouse.min.js +17 -0
  398. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.position.min.js +16 -0
  399. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.progressbar.min.js +16 -0
  400. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.resizable.min.js +47 -0
  401. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.selectable.min.js +22 -0
  402. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.slider.min.js +33 -0
  403. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.sortable.min.js +60 -0
  404. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.tabs.min.js +35 -0
  405. data/static/jquery-ui-1.8.5.custom/development-bundle/ui/minified/jquery.ui.widget.min.js +15 -0
  406. data/static/jquery-ui-1.8.5.custom/development-bundle/version.txt +1 -0
  407. data/static/jquery-ui-1.8.5.custom/index.html +395 -0
  408. data/static/jquery-ui-1.8.5.custom/js/jquery-1.4.2.min.js +154 -0
  409. data/static/jquery-ui-1.8.5.custom/js/jquery-ui-1.8.5.custom.min.js +778 -0
  410. metadata +421 -4
@@ -0,0 +1,797 @@
1
+ /*
2
+ * jQuery UI Draggable 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/Draggables
9
+ *
10
+ * Depends:
11
+ * jquery.ui.core.js
12
+ * jquery.ui.mouse.js
13
+ * jquery.ui.widget.js
14
+ */
15
+ (function( $, undefined ) {
16
+
17
+ $.widget("ui.draggable", $.ui.mouse, {
18
+ widgetEventPrefix: "drag",
19
+ options: {
20
+ addClasses: true,
21
+ appendTo: "parent",
22
+ axis: false,
23
+ connectToSortable: false,
24
+ containment: false,
25
+ cursor: "auto",
26
+ cursorAt: false,
27
+ grid: false,
28
+ handle: false,
29
+ helper: "original",
30
+ iframeFix: false,
31
+ opacity: false,
32
+ refreshPositions: false,
33
+ revert: false,
34
+ revertDuration: 500,
35
+ scope: "default",
36
+ scroll: true,
37
+ scrollSensitivity: 20,
38
+ scrollSpeed: 20,
39
+ snap: false,
40
+ snapMode: "both",
41
+ snapTolerance: 20,
42
+ stack: false,
43
+ zIndex: false
44
+ },
45
+ _create: function() {
46
+
47
+ if (this.options.helper == 'original' && !(/^(?:r|a|f)/).test(this.element.css("position")))
48
+ this.element[0].style.position = 'relative';
49
+
50
+ (this.options.addClasses && this.element.addClass("ui-draggable"));
51
+ (this.options.disabled && this.element.addClass("ui-draggable-disabled"));
52
+
53
+ this._mouseInit();
54
+
55
+ },
56
+
57
+ destroy: function() {
58
+ if(!this.element.data('draggable')) return;
59
+ this.element
60
+ .removeData("draggable")
61
+ .unbind(".draggable")
62
+ .removeClass("ui-draggable"
63
+ + " ui-draggable-dragging"
64
+ + " ui-draggable-disabled");
65
+ this._mouseDestroy();
66
+
67
+ return this;
68
+ },
69
+
70
+ _mouseCapture: function(event) {
71
+
72
+ var o = this.options;
73
+
74
+ // among others, prevent a drag on a resizable-handle
75
+ if (this.helper || o.disabled || $(event.target).is('.ui-resizable-handle'))
76
+ return false;
77
+
78
+ //Quit if we're not on a valid handle
79
+ this.handle = this._getHandle(event);
80
+ if (!this.handle)
81
+ return false;
82
+
83
+ return true;
84
+
85
+ },
86
+
87
+ _mouseStart: function(event) {
88
+
89
+ var o = this.options;
90
+
91
+ //Create and append the visible helper
92
+ this.helper = this._createHelper(event);
93
+
94
+ //Cache the helper size
95
+ this._cacheHelperProportions();
96
+
97
+ //If ddmanager is used for droppables, set the global draggable
98
+ if($.ui.ddmanager)
99
+ $.ui.ddmanager.current = this;
100
+
101
+ /*
102
+ * - Position generation -
103
+ * This block generates everything position related - it's the core of draggables.
104
+ */
105
+
106
+ //Cache the margins of the original element
107
+ this._cacheMargins();
108
+
109
+ //Store the helper's css position
110
+ this.cssPosition = this.helper.css("position");
111
+ this.scrollParent = this.helper.scrollParent();
112
+
113
+ //The element's absolute position on the page minus margins
114
+ this.offset = this.positionAbs = this.element.offset();
115
+ this.offset = {
116
+ top: this.offset.top - this.margins.top,
117
+ left: this.offset.left - this.margins.left
118
+ };
119
+
120
+ $.extend(this.offset, {
121
+ click: { //Where the click happened, relative to the element
122
+ left: event.pageX - this.offset.left,
123
+ top: event.pageY - this.offset.top
124
+ },
125
+ parent: this._getParentOffset(),
126
+ relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper
127
+ });
128
+
129
+ //Generate the original position
130
+ this.originalPosition = this.position = this._generatePosition(event);
131
+ this.originalPageX = event.pageX;
132
+ this.originalPageY = event.pageY;
133
+
134
+ //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied
135
+ (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));
136
+
137
+ //Set a containment if given in the options
138
+ if(o.containment)
139
+ this._setContainment();
140
+
141
+ //Trigger event + callbacks
142
+ if(this._trigger("start", event) === false) {
143
+ this._clear();
144
+ return false;
145
+ }
146
+
147
+ //Recache the helper size
148
+ this._cacheHelperProportions();
149
+
150
+ //Prepare the droppable offsets
151
+ if ($.ui.ddmanager && !o.dropBehaviour)
152
+ $.ui.ddmanager.prepareOffsets(this, event);
153
+
154
+ this.helper.addClass("ui-draggable-dragging");
155
+ this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position
156
+ return true;
157
+ },
158
+
159
+ _mouseDrag: function(event, noPropagation) {
160
+
161
+ //Compute the helpers position
162
+ this.position = this._generatePosition(event);
163
+ this.positionAbs = this._convertPositionTo("absolute");
164
+
165
+ //Call plugins and callbacks and use the resulting position if something is returned
166
+ if (!noPropagation) {
167
+ var ui = this._uiHash();
168
+ if(this._trigger('drag', event, ui) === false) {
169
+ this._mouseUp({});
170
+ return false;
171
+ }
172
+ this.position = ui.position;
173
+ }
174
+
175
+ if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px';
176
+ if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px';
177
+ if($.ui.ddmanager) $.ui.ddmanager.drag(this, event);
178
+
179
+ return false;
180
+ },
181
+
182
+ _mouseStop: function(event) {
183
+
184
+ //If we are using droppables, inform the manager about the drop
185
+ var dropped = false;
186
+ if ($.ui.ddmanager && !this.options.dropBehaviour)
187
+ dropped = $.ui.ddmanager.drop(this, event);
188
+
189
+ //if a drop comes from outside (a sortable)
190
+ if(this.dropped) {
191
+ dropped = this.dropped;
192
+ this.dropped = false;
193
+ }
194
+
195
+ //if the original element is removed, don't bother to continue
196
+ if(!this.element[0] || !this.element[0].parentNode)
197
+ return false;
198
+
199
+ if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
200
+ var self = this;
201
+ $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
202
+ if(self._trigger("stop", event) !== false) {
203
+ self._clear();
204
+ }
205
+ });
206
+ } else {
207
+ if(this._trigger("stop", event) !== false) {
208
+ this._clear();
209
+ }
210
+ }
211
+
212
+ return false;
213
+ },
214
+
215
+ cancel: function() {
216
+
217
+ if(this.helper.is(".ui-draggable-dragging")) {
218
+ this._mouseUp({});
219
+ } else {
220
+ this._clear();
221
+ }
222
+
223
+ return this;
224
+
225
+ },
226
+
227
+ _getHandle: function(event) {
228
+
229
+ var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false;
230
+ $(this.options.handle, this.element)
231
+ .find("*")
232
+ .andSelf()
233
+ .each(function() {
234
+ if(this == event.target) handle = true;
235
+ });
236
+
237
+ return handle;
238
+
239
+ },
240
+
241
+ _createHelper: function(event) {
242
+
243
+ var o = this.options;
244
+ var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event])) : (o.helper == 'clone' ? this.element.clone() : this.element);
245
+
246
+ if(!helper.parents('body').length)
247
+ helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo));
248
+
249
+ if(helper[0] != this.element[0] && !(/(fixed|absolute)/).test(helper.css("position")))
250
+ helper.css("position", "absolute");
251
+
252
+ return helper;
253
+
254
+ },
255
+
256
+ _adjustOffsetFromHelper: function(obj) {
257
+ if (typeof obj == 'string') {
258
+ obj = obj.split(' ');
259
+ }
260
+ if ($.isArray(obj)) {
261
+ obj = {left: +obj[0], top: +obj[1] || 0};
262
+ }
263
+ if ('left' in obj) {
264
+ this.offset.click.left = obj.left + this.margins.left;
265
+ }
266
+ if ('right' in obj) {
267
+ this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
268
+ }
269
+ if ('top' in obj) {
270
+ this.offset.click.top = obj.top + this.margins.top;
271
+ }
272
+ if ('bottom' in obj) {
273
+ this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
274
+ }
275
+ },
276
+
277
+ _getParentOffset: function() {
278
+
279
+ //Get the offsetParent and cache its position
280
+ this.offsetParent = this.helper.offsetParent();
281
+ var po = this.offsetParent.offset();
282
+
283
+ // This is a special case where we need to modify a offset calculated on start, since the following happened:
284
+ // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent
285
+ // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that
286
+ // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag
287
+ if(this.cssPosition == 'absolute' && this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) {
288
+ po.left += this.scrollParent.scrollLeft();
289
+ po.top += this.scrollParent.scrollTop();
290
+ }
291
+
292
+ if((this.offsetParent[0] == document.body) //This needs to be actually done for all browsers, since pageX/pageY includes this information
293
+ || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == 'html' && $.browser.msie)) //Ugly IE fix
294
+ po = { top: 0, left: 0 };
295
+
296
+ return {
297
+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
298
+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
299
+ };
300
+
301
+ },
302
+
303
+ _getRelativeOffset: function() {
304
+
305
+ if(this.cssPosition == "relative") {
306
+ var p = this.element.position();
307
+ return {
308
+ top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(),
309
+ left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft()
310
+ };
311
+ } else {
312
+ return { top: 0, left: 0 };
313
+ }
314
+
315
+ },
316
+
317
+ _cacheMargins: function() {
318
+ this.margins = {
319
+ left: (parseInt(this.element.css("marginLeft"),10) || 0),
320
+ top: (parseInt(this.element.css("marginTop"),10) || 0)
321
+ };
322
+ },
323
+
324
+ _cacheHelperProportions: function() {
325
+ this.helperProportions = {
326
+ width: this.helper.outerWidth(),
327
+ height: this.helper.outerHeight()
328
+ };
329
+ },
330
+
331
+ _setContainment: function() {
332
+
333
+ var o = this.options;
334
+ if(o.containment == 'parent') o.containment = this.helper[0].parentNode;
335
+ if(o.containment == 'document' || o.containment == 'window') this.containment = [
336
+ 0 - this.offset.relative.left - this.offset.parent.left,
337
+ 0 - this.offset.relative.top - this.offset.parent.top,
338
+ $(o.containment == 'document' ? document : window).width() - this.helperProportions.width - this.margins.left,
339
+ ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top
340
+ ];
341
+
342
+ if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
343
+ var ce = $(o.containment)[0]; if(!ce) return;
344
+ var co = $(o.containment).offset();
345
+ var over = ($(ce).css("overflow") != 'hidden');
346
+
347
+ this.containment = [
348
+ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0) - this.margins.left,
349
+ co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) + (parseInt($(ce).css("paddingTop"),10) || 0) - this.margins.top,
350
+ co.left+(over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left,
351
+ co.top+(over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top
352
+ ];
353
+ } else if(o.containment.constructor == Array) {
354
+ this.containment = o.containment;
355
+ }
356
+
357
+ },
358
+
359
+ _convertPositionTo: function(d, pos) {
360
+
361
+ if(!pos) pos = this.position;
362
+ var mod = d == "absolute" ? 1 : -1;
363
+ var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
364
+
365
+ return {
366
+ top: (
367
+ pos.top // The absolute mouse position
368
+ + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent
369
+ + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)
370
+ - ($.browser.safari && $.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)
371
+ ),
372
+ left: (
373
+ pos.left // The absolute mouse position
374
+ + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent
375
+ + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)
376
+ - ($.browser.safari && $.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)
377
+ )
378
+ };
379
+
380
+ },
381
+
382
+ _generatePosition: function(event) {
383
+
384
+ var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
385
+ var pageX = event.pageX;
386
+ var pageY = event.pageY;
387
+
388
+ /*
389
+ * - Position constraining -
390
+ * Constrain the position to a mix of grid, containment.
391
+ */
392
+
393
+ if(this.originalPosition) { //If we are not dragging yet, we won't check for options
394
+
395
+ if(this.containment) {
396
+ if(event.pageX - this.offset.click.left < this.containment[0]) pageX = this.containment[0] + this.offset.click.left;
397
+ if(event.pageY - this.offset.click.top < this.containment[1]) pageY = this.containment[1] + this.offset.click.top;
398
+ if(event.pageX - this.offset.click.left > this.containment[2]) pageX = this.containment[2] + this.offset.click.left;
399
+ if(event.pageY - this.offset.click.top > this.containment[3]) pageY = this.containment[3] + this.offset.click.top;
400
+ }
401
+
402
+ if(o.grid) {
403
+ var top = this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1];
404
+ pageY = this.containment ? (!(top - this.offset.click.top < this.containment[1] || top - this.offset.click.top > this.containment[3]) ? top : (!(top - this.offset.click.top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
405
+
406
+ var left = this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0];
407
+ pageX = this.containment ? (!(left - this.offset.click.left < this.containment[0] || left - this.offset.click.left > this.containment[2]) ? left : (!(left - this.offset.click.left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
408
+ }
409
+
410
+ }
411
+
412
+ return {
413
+ top: (
414
+ pageY // The absolute mouse position
415
+ - this.offset.click.top // Click offset (relative to the element)
416
+ - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent
417
+ - this.offset.parent.top // The offsetParent's offset without borders (offset + border)
418
+ + ($.browser.safari && $.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ))
419
+ ),
420
+ left: (
421
+ pageX // The absolute mouse position
422
+ - this.offset.click.left // Click offset (relative to the element)
423
+ - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent
424
+ - this.offset.parent.left // The offsetParent's offset without borders (offset + border)
425
+ + ($.browser.safari && $.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ))
426
+ )
427
+ };
428
+
429
+ },
430
+
431
+ _clear: function() {
432
+ this.helper.removeClass("ui-draggable-dragging");
433
+ if(this.helper[0] != this.element[0] && !this.cancelHelperRemoval) this.helper.remove();
434
+ //if($.ui.ddmanager) $.ui.ddmanager.current = null;
435
+ this.helper = null;
436
+ this.cancelHelperRemoval = false;
437
+ },
438
+
439
+ // From now on bulk stuff - mainly helpers
440
+
441
+ _trigger: function(type, event, ui) {
442
+ ui = ui || this._uiHash();
443
+ $.ui.plugin.call(this, type, [event, ui]);
444
+ if(type == "drag") this.positionAbs = this._convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins
445
+ return $.Widget.prototype._trigger.call(this, type, event, ui);
446
+ },
447
+
448
+ plugins: {},
449
+
450
+ _uiHash: function(event) {
451
+ return {
452
+ helper: this.helper,
453
+ position: this.position,
454
+ originalPosition: this.originalPosition,
455
+ offset: this.positionAbs
456
+ };
457
+ }
458
+
459
+ });
460
+
461
+ $.extend($.ui.draggable, {
462
+ version: "1.8.5"
463
+ });
464
+
465
+ $.ui.plugin.add("draggable", "connectToSortable", {
466
+ start: function(event, ui) {
467
+
468
+ var inst = $(this).data("draggable"), o = inst.options,
469
+ uiSortable = $.extend({}, ui, { item: inst.element });
470
+ inst.sortables = [];
471
+ $(o.connectToSortable).each(function() {
472
+ var sortable = $.data(this, 'sortable');
473
+ if (sortable && !sortable.options.disabled) {
474
+ inst.sortables.push({
475
+ instance: sortable,
476
+ shouldRevert: sortable.options.revert
477
+ });
478
+ sortable._refreshItems(); //Do a one-time refresh at start to refresh the containerCache
479
+ sortable._trigger("activate", event, uiSortable);
480
+ }
481
+ });
482
+
483
+ },
484
+ stop: function(event, ui) {
485
+
486
+ //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper
487
+ var inst = $(this).data("draggable"),
488
+ uiSortable = $.extend({}, ui, { item: inst.element });
489
+
490
+ $.each(inst.sortables, function() {
491
+ if(this.instance.isOver) {
492
+
493
+ this.instance.isOver = 0;
494
+
495
+ inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance
496
+ this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work)
497
+
498
+ //The sortable revert is supported, and we have to set a temporary dropped variable on the draggable to support revert: 'valid/invalid'
499
+ if(this.shouldRevert) this.instance.options.revert = true;
500
+
501
+ //Trigger the stop of the sortable
502
+ this.instance._mouseStop(event);
503
+
504
+ this.instance.options.helper = this.instance.options._helper;
505
+
506
+ //If the helper has been the original item, restore properties in the sortable
507
+ if(inst.options.helper == 'original')
508
+ this.instance.currentItem.css({ top: 'auto', left: 'auto' });
509
+
510
+ } else {
511
+ this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance
512
+ this.instance._trigger("deactivate", event, uiSortable);
513
+ }
514
+
515
+ });
516
+
517
+ },
518
+ drag: function(event, ui) {
519
+
520
+ var inst = $(this).data("draggable"), self = this;
521
+
522
+ var checkPos = function(o) {
523
+ var dyClick = this.offset.click.top, dxClick = this.offset.click.left;
524
+ var helperTop = this.positionAbs.top, helperLeft = this.positionAbs.left;
525
+ var itemHeight = o.height, itemWidth = o.width;
526
+ var itemTop = o.top, itemLeft = o.left;
527
+
528
+ return $.ui.isOver(helperTop + dyClick, helperLeft + dxClick, itemTop, itemLeft, itemHeight, itemWidth);
529
+ };
530
+
531
+ $.each(inst.sortables, function(i) {
532
+
533
+ //Copy over some variables to allow calling the sortable's native _intersectsWith
534
+ this.instance.positionAbs = inst.positionAbs;
535
+ this.instance.helperProportions = inst.helperProportions;
536
+ this.instance.offset.click = inst.offset.click;
537
+
538
+ if(this.instance._intersectsWith(this.instance.containerCache)) {
539
+
540
+ //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once
541
+ if(!this.instance.isOver) {
542
+
543
+ this.instance.isOver = 1;
544
+ //Now we fake the start of dragging for the sortable instance,
545
+ //by cloning the list group item, appending it to the sortable and using it as inst.currentItem
546
+ //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one)
547
+ this.instance.currentItem = $(self).clone().appendTo(this.instance.element).data("sortable-item", true);
548
+ this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it
549
+ this.instance.options.helper = function() { return ui.helper[0]; };
550
+
551
+ event.target = this.instance.currentItem[0];
552
+ this.instance._mouseCapture(event, true);
553
+ this.instance._mouseStart(event, true, true);
554
+
555
+ //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes
556
+ this.instance.offset.click.top = inst.offset.click.top;
557
+ this.instance.offset.click.left = inst.offset.click.left;
558
+ this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left;
559
+ this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top;
560
+
561
+ inst._trigger("toSortable", event);
562
+ inst.dropped = this.instance.element; //draggable revert needs that
563
+ //hack so receive/update callbacks work (mostly)
564
+ inst.currentItem = inst.element;
565
+ this.instance.fromOutside = inst;
566
+
567
+ }
568
+
569
+ //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable
570
+ if(this.instance.currentItem) this.instance._mouseDrag(event);
571
+
572
+ } else {
573
+
574
+ //If it doesn't intersect with the sortable, and it intersected before,
575
+ //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval
576
+ if(this.instance.isOver) {
577
+
578
+ this.instance.isOver = 0;
579
+ this.instance.cancelHelperRemoval = true;
580
+
581
+ //Prevent reverting on this forced stop
582
+ this.instance.options.revert = false;
583
+
584
+ // The out event needs to be triggered independently
585
+ this.instance._trigger('out', event, this.instance._uiHash(this.instance));
586
+
587
+ this.instance._mouseStop(event, true);
588
+ this.instance.options.helper = this.instance.options._helper;
589
+
590
+ //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size
591
+ this.instance.currentItem.remove();
592
+ if(this.instance.placeholder) this.instance.placeholder.remove();
593
+
594
+ inst._trigger("fromSortable", event);
595
+ inst.dropped = false; //draggable revert needs that
596
+ }
597
+
598
+ };
599
+
600
+ });
601
+
602
+ }
603
+ });
604
+
605
+ $.ui.plugin.add("draggable", "cursor", {
606
+ start: function(event, ui) {
607
+ var t = $('body'), o = $(this).data('draggable').options;
608
+ if (t.css("cursor")) o._cursor = t.css("cursor");
609
+ t.css("cursor", o.cursor);
610
+ },
611
+ stop: function(event, ui) {
612
+ var o = $(this).data('draggable').options;
613
+ if (o._cursor) $('body').css("cursor", o._cursor);
614
+ }
615
+ });
616
+
617
+ $.ui.plugin.add("draggable", "iframeFix", {
618
+ start: function(event, ui) {
619
+ var o = $(this).data('draggable').options;
620
+ $(o.iframeFix === true ? "iframe" : o.iframeFix).each(function() {
621
+ $('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>')
622
+ .css({
623
+ width: this.offsetWidth+"px", height: this.offsetHeight+"px",
624
+ position: "absolute", opacity: "0.001", zIndex: 1000
625
+ })
626
+ .css($(this).offset())
627
+ .appendTo("body");
628
+ });
629
+ },
630
+ stop: function(event, ui) {
631
+ $("div.ui-draggable-iframeFix").each(function() { this.parentNode.removeChild(this); }); //Remove frame helpers
632
+ }
633
+ });
634
+
635
+ $.ui.plugin.add("draggable", "opacity", {
636
+ start: function(event, ui) {
637
+ var t = $(ui.helper), o = $(this).data('draggable').options;
638
+ if(t.css("opacity")) o._opacity = t.css("opacity");
639
+ t.css('opacity', o.opacity);
640
+ },
641
+ stop: function(event, ui) {
642
+ var o = $(this).data('draggable').options;
643
+ if(o._opacity) $(ui.helper).css('opacity', o._opacity);
644
+ }
645
+ });
646
+
647
+ $.ui.plugin.add("draggable", "scroll", {
648
+ start: function(event, ui) {
649
+ var i = $(this).data("draggable");
650
+ if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') i.overflowOffset = i.scrollParent.offset();
651
+ },
652
+ drag: function(event, ui) {
653
+
654
+ var i = $(this).data("draggable"), o = i.options, scrolled = false;
655
+
656
+ if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {
657
+
658
+ if(!o.axis || o.axis != 'x') {
659
+ if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity)
660
+ i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed;
661
+ else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity)
662
+ i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed;
663
+ }
664
+
665
+ if(!o.axis || o.axis != 'y') {
666
+ if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity)
667
+ i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed;
668
+ else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity)
669
+ i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed;
670
+ }
671
+
672
+ } else {
673
+
674
+ if(!o.axis || o.axis != 'x') {
675
+ if(event.pageY - $(document).scrollTop() < o.scrollSensitivity)
676
+ scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
677
+ else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity)
678
+ scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
679
+ }
680
+
681
+ if(!o.axis || o.axis != 'y') {
682
+ if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity)
683
+ scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
684
+ else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
685
+ scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
686
+ }
687
+
688
+ }
689
+
690
+ if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour)
691
+ $.ui.ddmanager.prepareOffsets(i, event);
692
+
693
+ }
694
+ });
695
+
696
+ $.ui.plugin.add("draggable", "snap", {
697
+ start: function(event, ui) {
698
+
699
+ var i = $(this).data("draggable"), o = i.options;
700
+ i.snapElements = [];
701
+
702
+ $(o.snap.constructor != String ? ( o.snap.items || ':data(draggable)' ) : o.snap).each(function() {
703
+ var $t = $(this); var $o = $t.offset();
704
+ if(this != i.element[0]) i.snapElements.push({
705
+ item: this,
706
+ width: $t.outerWidth(), height: $t.outerHeight(),
707
+ top: $o.top, left: $o.left
708
+ });
709
+ });
710
+
711
+ },
712
+ drag: function(event, ui) {
713
+
714
+ var inst = $(this).data("draggable"), o = inst.options;
715
+ var d = o.snapTolerance;
716
+
717
+ var x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width,
718
+ y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height;
719
+
720
+ for (var i = inst.snapElements.length - 1; i >= 0; i--){
721
+
722
+ var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width,
723
+ t = inst.snapElements[i].top, b = t + inst.snapElements[i].height;
724
+
725
+ //Yes, I know, this is insane ;)
726
+ if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {
727
+ if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
728
+ inst.snapElements[i].snapping = false;
729
+ continue;
730
+ }
731
+
732
+ if(o.snapMode != 'inner') {
733
+ var ts = Math.abs(t - y2) <= d;
734
+ var bs = Math.abs(b - y1) <= d;
735
+ var ls = Math.abs(l - x2) <= d;
736
+ var rs = Math.abs(r - x1) <= d;
737
+ if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top - inst.margins.top;
738
+ if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top - inst.margins.top;
739
+ if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left - inst.margins.left;
740
+ if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left - inst.margins.left;
741
+ }
742
+
743
+ var first = (ts || bs || ls || rs);
744
+
745
+ if(o.snapMode != 'outer') {
746
+ var ts = Math.abs(t - y1) <= d;
747
+ var bs = Math.abs(b - y2) <= d;
748
+ var ls = Math.abs(l - x1) <= d;
749
+ var rs = Math.abs(r - x2) <= d;
750
+ if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top - inst.margins.top;
751
+ if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top - inst.margins.top;
752
+ if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left - inst.margins.left;
753
+ if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left - inst.margins.left;
754
+ }
755
+
756
+ if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))
757
+ (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
758
+ inst.snapElements[i].snapping = (ts || bs || ls || rs || first);
759
+
760
+ };
761
+
762
+ }
763
+ });
764
+
765
+ $.ui.plugin.add("draggable", "stack", {
766
+ start: function(event, ui) {
767
+
768
+ var o = $(this).data("draggable").options;
769
+
770
+ var group = $.makeArray($(o.stack)).sort(function(a,b) {
771
+ return (parseInt($(a).css("zIndex"),10) || 0) - (parseInt($(b).css("zIndex"),10) || 0);
772
+ });
773
+ if (!group.length) { return; }
774
+
775
+ var min = parseInt(group[0].style.zIndex) || 0;
776
+ $(group).each(function(i) {
777
+ this.style.zIndex = min + i;
778
+ });
779
+
780
+ this[0].style.zIndex = min + group.length;
781
+
782
+ }
783
+ });
784
+
785
+ $.ui.plugin.add("draggable", "zIndex", {
786
+ start: function(event, ui) {
787
+ var t = $(ui.helper), o = $(this).data("draggable").options;
788
+ if(t.css("zIndex")) o._zIndex = t.css("zIndex");
789
+ t.css('zIndex', o.zIndex);
790
+ },
791
+ stop: function(event, ui) {
792
+ var o = $(this).data("draggable").options;
793
+ if(o._zIndex) $(ui.helper).css('zIndex', o._zIndex);
794
+ }
795
+ });
796
+
797
+ })(jQuery);