jquery-ui-rails 5.0.5 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of jquery-ui-rails might be problematic. Click here for more details.

Files changed (275) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +1 -1
  3. data/History.md +12 -0
  4. data/README.md +47 -30
  5. data/Rakefile +48 -27
  6. data/VERSIONS.md +1 -0
  7. data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  8. data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
  9. data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
  10. data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
  11. data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
  12. data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
  13. data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  14. data/app/assets/javascripts/jquery-ui.js +52 -33
  15. data/app/assets/javascripts/jquery-ui/core.js +37 -304
  16. data/app/assets/javascripts/jquery-ui/data.js +41 -0
  17. data/app/assets/javascripts/jquery-ui/disable-selection.js +48 -0
  18. data/app/assets/javascripts/jquery-ui/effect.all.js +15 -16
  19. data/app/assets/javascripts/jquery-ui/effect.js +620 -284
  20. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +73 -0
  21. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +113 -0
  22. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +68 -0
  23. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +72 -0
  24. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +114 -0
  25. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +50 -0
  26. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +92 -0
  27. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +60 -0
  28. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +46 -0
  29. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +67 -0
  30. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +60 -0
  31. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +77 -0
  32. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +194 -0
  33. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +79 -0
  34. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +43 -0
  35. data/app/assets/javascripts/jquery-ui/escape-selector.js +23 -0
  36. data/app/assets/javascripts/jquery-ui/focusable.js +86 -0
  37. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +80 -0
  38. data/app/assets/javascripts/jquery-ui/form.js +22 -0
  39. data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +37 -0
  40. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +39 -0
  41. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +39 -0
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +37 -0
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +37 -0
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +38 -0
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +37 -0
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +37 -0
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +37 -0
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +45 -0
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +37 -0
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +37 -0
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +37 -0
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +37 -0
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +37 -0
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +37 -0
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +37 -0
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +37 -0
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +45 -0
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +36 -0
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +73 -0
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +37 -0
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +45 -0
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +37 -0
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +37 -0
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +39 -0
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +37 -0
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +37 -0
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +37 -0
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +37 -0
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +36 -0
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +37 -0
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +37 -0
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +45 -0
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +37 -0
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +37 -0
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +37 -0
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +48 -0
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +37 -0
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +37 -0
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +37 -0
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +38 -0
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +45 -0
  82. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +45 -0
  83. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +45 -0
  84. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +37 -0
  85. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +37 -0
  86. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +37 -0
  87. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +49 -0
  88. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +37 -0
  89. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +37 -0
  90. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +49 -0
  91. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +50 -0
  92. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +37 -0
  93. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +45 -0
  94. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +44 -0
  95. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +61 -0
  96. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +40 -0
  97. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +37 -0
  98. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +37 -0
  99. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +38 -0
  100. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +37 -0
  101. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +37 -0
  102. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +37 -0
  103. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +37 -0
  104. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +53 -0
  105. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +37 -0
  106. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +37 -0
  107. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +37 -0
  108. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +38 -0
  109. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +37 -0
  110. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +37 -0
  111. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +37 -0
  112. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +37 -0
  113. data/app/assets/javascripts/jquery-ui/ie.js +17 -0
  114. data/app/assets/javascripts/jquery-ui/jquery-1-7.js +91 -0
  115. data/app/assets/javascripts/jquery-ui/keycode.js +47 -0
  116. data/app/assets/javascripts/jquery-ui/labels.js +65 -0
  117. data/app/assets/javascripts/jquery-ui/plugin.js +46 -0
  118. data/app/assets/javascripts/jquery-ui/position.js +92 -109
  119. data/app/assets/javascripts/jquery-ui/safe-active-element.js +42 -0
  120. data/app/assets/javascripts/jquery-ui/safe-blur.js +23 -0
  121. data/app/assets/javascripts/jquery-ui/scroll-parent.js +47 -0
  122. data/app/assets/javascripts/jquery-ui/tabbable.js +38 -0
  123. data/app/assets/javascripts/jquery-ui/unique-id.js +51 -0
  124. data/app/assets/javascripts/jquery-ui/version.js +17 -0
  125. data/app/assets/javascripts/jquery-ui/widget.js +328 -151
  126. data/app/assets/javascripts/jquery-ui/{accordion.js → widgets/accordion.js} +187 -162
  127. data/app/assets/javascripts/jquery-ui/{autocomplete.js → widgets/autocomplete.js} +148 -92
  128. data/app/assets/javascripts/jquery-ui/widgets/button.js +391 -0
  129. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +291 -0
  130. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +300 -0
  131. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2123 -0
  132. data/app/assets/javascripts/jquery-ui/{dialog.js → widgets/dialog.js} +229 -158
  133. data/app/assets/javascripts/jquery-ui/{draggable.js → widgets/draggable.js} +416 -293
  134. data/app/assets/javascripts/jquery-ui/{droppable.js → widgets/droppable.js} +167 -83
  135. data/app/assets/javascripts/jquery-ui/{menu.js → widgets/menu.js} +164 -134
  136. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +230 -0
  137. data/app/assets/javascripts/jquery-ui/{progressbar.js → widgets/progressbar.js} +60 -41
  138. data/app/assets/javascripts/jquery-ui/{resizable.js → widgets/resizable.js} +413 -362
  139. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +314 -0
  140. data/app/assets/javascripts/jquery-ui/{selectmenu.js → widgets/selectmenu.js} +253 -176
  141. data/app/assets/javascripts/jquery-ui/{slider.js → widgets/slider.js} +193 -157
  142. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1561 -0
  143. data/app/assets/javascripts/jquery-ui/{spinner.js → widgets/spinner.js} +175 -112
  144. data/app/assets/javascripts/jquery-ui/{tabs.js → widgets/tabs.js} +237 -195
  145. data/app/assets/javascripts/jquery-ui/{tooltip.js → widgets/tooltip.js} +136 -87
  146. data/app/assets/stylesheets/jquery-ui/accordion.css +1 -15
  147. data/app/assets/stylesheets/jquery-ui/all.css +1 -1
  148. data/app/assets/stylesheets/jquery-ui/autocomplete.css +1 -3
  149. data/app/assets/stylesheets/jquery-ui/base.css +3 -1
  150. data/app/assets/stylesheets/jquery-ui/button.css +35 -68
  151. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
  152. data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
  153. data/app/assets/stylesheets/jquery-ui/core.css +11 -7
  154. data/app/assets/stylesheets/jquery-ui/datepicker.css +11 -2
  155. data/app/assets/stylesheets/jquery-ui/dialog.css +38 -11
  156. data/app/assets/stylesheets/jquery-ui/draggable.css +1 -2
  157. data/app/assets/stylesheets/jquery-ui/menu.css +7 -7
  158. data/app/assets/stylesheets/jquery-ui/progressbar.css +1 -2
  159. data/app/assets/stylesheets/jquery-ui/resizable.css +1 -2
  160. data/app/assets/stylesheets/jquery-ui/selectable.css +1 -2
  161. data/app/assets/stylesheets/jquery-ui/selectmenu.css +11 -22
  162. data/app/assets/stylesheets/jquery-ui/slider.css +1 -2
  163. data/app/assets/stylesheets/jquery-ui/sortable.css +1 -2
  164. data/app/assets/stylesheets/jquery-ui/spinner.css +7 -22
  165. data/app/assets/stylesheets/jquery-ui/tabs.css +1 -2
  166. data/app/assets/stylesheets/jquery-ui/theme.css.erb +113 -87
  167. data/app/assets/stylesheets/jquery-ui/tooltip.css +1 -4
  168. data/lib/jquery/ui/rails/version.rb +2 -2
  169. metadata +150 -144
  170. data/app/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  171. data/app/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  172. data/app/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  173. data/app/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
  174. data/app/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  175. data/app/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  176. data/app/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  177. data/app/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
  178. data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  179. data/app/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
  180. data/app/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
  181. data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  182. data/app/assets/javascripts/jquery-ui/button.js +0 -414
  183. data/app/assets/javascripts/jquery-ui/datepicker-af.js +0 -37
  184. data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +0 -37
  185. data/app/assets/javascripts/jquery-ui/datepicker-ar.js +0 -38
  186. data/app/assets/javascripts/jquery-ui/datepicker-az.js +0 -37
  187. data/app/assets/javascripts/jquery-ui/datepicker-be.js +0 -37
  188. data/app/assets/javascripts/jquery-ui/datepicker-bg.js +0 -38
  189. data/app/assets/javascripts/jquery-ui/datepicker-bs.js +0 -37
  190. data/app/assets/javascripts/jquery-ui/datepicker-ca.js +0 -37
  191. data/app/assets/javascripts/jquery-ui/datepicker-cs.js +0 -37
  192. data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +0 -37
  193. data/app/assets/javascripts/jquery-ui/datepicker-da.js +0 -37
  194. data/app/assets/javascripts/jquery-ui/datepicker-de.js +0 -37
  195. data/app/assets/javascripts/jquery-ui/datepicker-el.js +0 -37
  196. data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +0 -37
  197. data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +0 -37
  198. data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +0 -37
  199. data/app/assets/javascripts/jquery-ui/datepicker-eo.js +0 -37
  200. data/app/assets/javascripts/jquery-ui/datepicker-es.js +0 -37
  201. data/app/assets/javascripts/jquery-ui/datepicker-et.js +0 -37
  202. data/app/assets/javascripts/jquery-ui/datepicker-eu.js +0 -36
  203. data/app/assets/javascripts/jquery-ui/datepicker-fa.js +0 -73
  204. data/app/assets/javascripts/jquery-ui/datepicker-fi.js +0 -37
  205. data/app/assets/javascripts/jquery-ui/datepicker-fo.js +0 -37
  206. data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +0 -37
  207. data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +0 -37
  208. data/app/assets/javascripts/jquery-ui/datepicker-fr.js +0 -39
  209. data/app/assets/javascripts/jquery-ui/datepicker-gl.js +0 -37
  210. data/app/assets/javascripts/jquery-ui/datepicker-he.js +0 -37
  211. data/app/assets/javascripts/jquery-ui/datepicker-hi.js +0 -37
  212. data/app/assets/javascripts/jquery-ui/datepicker-hr.js +0 -37
  213. data/app/assets/javascripts/jquery-ui/datepicker-hu.js +0 -36
  214. data/app/assets/javascripts/jquery-ui/datepicker-hy.js +0 -37
  215. data/app/assets/javascripts/jquery-ui/datepicker-id.js +0 -37
  216. data/app/assets/javascripts/jquery-ui/datepicker-is.js +0 -37
  217. data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +0 -37
  218. data/app/assets/javascripts/jquery-ui/datepicker-it.js +0 -37
  219. data/app/assets/javascripts/jquery-ui/datepicker-ja.js +0 -37
  220. data/app/assets/javascripts/jquery-ui/datepicker-ka.js +0 -35
  221. data/app/assets/javascripts/jquery-ui/datepicker-kk.js +0 -37
  222. data/app/assets/javascripts/jquery-ui/datepicker-km.js +0 -37
  223. data/app/assets/javascripts/jquery-ui/datepicker-ko.js +0 -37
  224. data/app/assets/javascripts/jquery-ui/datepicker-ky.js +0 -38
  225. data/app/assets/javascripts/jquery-ui/datepicker-lb.js +0 -37
  226. data/app/assets/javascripts/jquery-ui/datepicker-lt.js +0 -37
  227. data/app/assets/javascripts/jquery-ui/datepicker-lv.js +0 -37
  228. data/app/assets/javascripts/jquery-ui/datepicker-mk.js +0 -37
  229. data/app/assets/javascripts/jquery-ui/datepicker-ml.js +0 -37
  230. data/app/assets/javascripts/jquery-ui/datepicker-ms.js +0 -37
  231. data/app/assets/javascripts/jquery-ui/datepicker-nb.js +0 -36
  232. data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +0 -37
  233. data/app/assets/javascripts/jquery-ui/datepicker-nl.js +0 -37
  234. data/app/assets/javascripts/jquery-ui/datepicker-nn.js +0 -36
  235. data/app/assets/javascripts/jquery-ui/datepicker-no.js +0 -37
  236. data/app/assets/javascripts/jquery-ui/datepicker-pl.js +0 -37
  237. data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +0 -37
  238. data/app/assets/javascripts/jquery-ui/datepicker-pt.js +0 -36
  239. data/app/assets/javascripts/jquery-ui/datepicker-rm.js +0 -35
  240. data/app/assets/javascripts/jquery-ui/datepicker-ro.js +0 -40
  241. data/app/assets/javascripts/jquery-ui/datepicker-ru.js +0 -37
  242. data/app/assets/javascripts/jquery-ui/datepicker-sk.js +0 -37
  243. data/app/assets/javascripts/jquery-ui/datepicker-sl.js +0 -38
  244. data/app/assets/javascripts/jquery-ui/datepicker-sq.js +0 -37
  245. data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +0 -37
  246. data/app/assets/javascripts/jquery-ui/datepicker-sr.js +0 -37
  247. data/app/assets/javascripts/jquery-ui/datepicker-sv.js +0 -37
  248. data/app/assets/javascripts/jquery-ui/datepicker-ta.js +0 -37
  249. data/app/assets/javascripts/jquery-ui/datepicker-th.js +0 -37
  250. data/app/assets/javascripts/jquery-ui/datepicker-tj.js +0 -37
  251. data/app/assets/javascripts/jquery-ui/datepicker-tr.js +0 -37
  252. data/app/assets/javascripts/jquery-ui/datepicker-uk.js +0 -38
  253. data/app/assets/javascripts/jquery-ui/datepicker-vi.js +0 -37
  254. data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +0 -37
  255. data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +0 -37
  256. data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +0 -37
  257. data/app/assets/javascripts/jquery-ui/datepicker.js +0 -2086
  258. data/app/assets/javascripts/jquery-ui/effect-blind.js +0 -92
  259. data/app/assets/javascripts/jquery-ui/effect-bounce.js +0 -125
  260. data/app/assets/javascripts/jquery-ui/effect-clip.js +0 -79
  261. data/app/assets/javascripts/jquery-ui/effect-drop.js +0 -77
  262. data/app/assets/javascripts/jquery-ui/effect-explode.js +0 -109
  263. data/app/assets/javascripts/jquery-ui/effect-fade.js +0 -42
  264. data/app/assets/javascripts/jquery-ui/effect-fold.js +0 -88
  265. data/app/assets/javascripts/jquery-ui/effect-highlight.js +0 -62
  266. data/app/assets/javascripts/jquery-ui/effect-puff.js +0 -63
  267. data/app/assets/javascripts/jquery-ui/effect-pulsate.js +0 -75
  268. data/app/assets/javascripts/jquery-ui/effect-scale.js +0 -92
  269. data/app/assets/javascripts/jquery-ui/effect-shake.js +0 -86
  270. data/app/assets/javascripts/jquery-ui/effect-size.js +0 -235
  271. data/app/assets/javascripts/jquery-ui/effect-slide.js +0 -76
  272. data/app/assets/javascripts/jquery-ui/effect-transfer.js +0 -59
  273. data/app/assets/javascripts/jquery-ui/mouse.js +0 -202
  274. data/app/assets/javascripts/jquery-ui/selectable.js +0 -291
  275. data/app/assets/javascripts/jquery-ui/sortable.js +0 -1319
@@ -0,0 +1,37 @@
1
+ /* Chinese initialisation for the jQuery UI date picker plugin. */
2
+ /* Written by Cloudream (cloudream@gmail.com). */
3
+ ( function( factory ) {
4
+ if ( typeof define === "function" && define.amd ) {
5
+
6
+ // AMD. Register as an anonymous module.
7
+ define( [ "../widgets/datepicker" ], factory );
8
+ } else {
9
+
10
+ // Browser globals
11
+ factory( jQuery.datepicker );
12
+ }
13
+ }( function( datepicker ) {
14
+
15
+ datepicker.regional[ "zh-CN" ] = {
16
+ closeText: "关闭",
17
+ prevText: "<上月",
18
+ nextText: "下月>",
19
+ currentText: "今天",
20
+ monthNames: [ "一月","二月","三月","四月","五月","六月",
21
+ "七月","八月","九月","十月","十一月","十二月" ],
22
+ monthNamesShort: [ "一月","二月","三月","四月","五月","六月",
23
+ "七月","八月","九月","十月","十一月","十二月" ],
24
+ dayNames: [ "星期日","星期一","星期二","星期三","星期四","星期五","星期六" ],
25
+ dayNamesShort: [ "周日","周一","周二","周三","周四","周五","周六" ],
26
+ dayNamesMin: [ "日","一","二","三","四","五","六" ],
27
+ weekHeader: "周",
28
+ dateFormat: "yy-mm-dd",
29
+ firstDay: 1,
30
+ isRTL: false,
31
+ showMonthAfterYear: true,
32
+ yearSuffix: "年" };
33
+ datepicker.setDefaults( datepicker.regional[ "zh-CN" ] );
34
+
35
+ return datepicker.regional[ "zh-CN" ];
36
+
37
+ } ) );
@@ -0,0 +1,37 @@
1
+ /* Chinese initialisation for the jQuery UI date picker plugin. */
2
+ /* Written by SCCY (samuelcychan@gmail.com). */
3
+ ( function( factory ) {
4
+ if ( typeof define === "function" && define.amd ) {
5
+
6
+ // AMD. Register as an anonymous module.
7
+ define( [ "../widgets/datepicker" ], factory );
8
+ } else {
9
+
10
+ // Browser globals
11
+ factory( jQuery.datepicker );
12
+ }
13
+ }( function( datepicker ) {
14
+
15
+ datepicker.regional[ "zh-HK" ] = {
16
+ closeText: "關閉",
17
+ prevText: "<上月",
18
+ nextText: "下月>",
19
+ currentText: "今天",
20
+ monthNames: [ "一月","二月","三月","四月","五月","六月",
21
+ "七月","八月","九月","十月","十一月","十二月" ],
22
+ monthNamesShort: [ "一月","二月","三月","四月","五月","六月",
23
+ "七月","八月","九月","十月","十一月","十二月" ],
24
+ dayNames: [ "星期日","星期一","星期二","星期三","星期四","星期五","星期六" ],
25
+ dayNamesShort: [ "周日","周一","周二","周三","周四","周五","周六" ],
26
+ dayNamesMin: [ "日","一","二","三","四","五","六" ],
27
+ weekHeader: "周",
28
+ dateFormat: "dd-mm-yy",
29
+ firstDay: 0,
30
+ isRTL: false,
31
+ showMonthAfterYear: true,
32
+ yearSuffix: "年" };
33
+ datepicker.setDefaults( datepicker.regional[ "zh-HK" ] );
34
+
35
+ return datepicker.regional[ "zh-HK" ];
36
+
37
+ } ) );
@@ -0,0 +1,37 @@
1
+ /* Chinese initialisation for the jQuery UI date picker plugin. */
2
+ /* Written by Ressol (ressol@gmail.com). */
3
+ ( function( factory ) {
4
+ if ( typeof define === "function" && define.amd ) {
5
+
6
+ // AMD. Register as an anonymous module.
7
+ define( [ "../widgets/datepicker" ], factory );
8
+ } else {
9
+
10
+ // Browser globals
11
+ factory( jQuery.datepicker );
12
+ }
13
+ }( function( datepicker ) {
14
+
15
+ datepicker.regional[ "zh-TW" ] = {
16
+ closeText: "關閉",
17
+ prevText: "<上月",
18
+ nextText: "下月>",
19
+ currentText: "今天",
20
+ monthNames: [ "一月","二月","三月","四月","五月","六月",
21
+ "七月","八月","九月","十月","十一月","十二月" ],
22
+ monthNamesShort: [ "一月","二月","三月","四月","五月","六月",
23
+ "七月","八月","九月","十月","十一月","十二月" ],
24
+ dayNames: [ "星期日","星期一","星期二","星期三","星期四","星期五","星期六" ],
25
+ dayNamesShort: [ "周日","周一","周二","周三","周四","周五","周六" ],
26
+ dayNamesMin: [ "日","一","二","三","四","五","六" ],
27
+ weekHeader: "周",
28
+ dateFormat: "yy/mm/dd",
29
+ firstDay: 1,
30
+ isRTL: false,
31
+ showMonthAfterYear: true,
32
+ yearSuffix: "年" };
33
+ datepicker.setDefaults( datepicker.regional[ "zh-TW" ] );
34
+
35
+ return datepicker.regional[ "zh-TW" ];
36
+
37
+ } ) );
@@ -0,0 +1,17 @@
1
+ //= require jquery-ui/version
2
+
3
+ ( function( factory ) {
4
+ if ( typeof define === "function" && define.amd ) {
5
+
6
+ // AMD. Register as an anonymous module.
7
+ define( [ "jquery", "./version" ], factory );
8
+ } else {
9
+
10
+ // Browser globals
11
+ factory( jQuery );
12
+ }
13
+ } ( function( $ ) {
14
+
15
+ // This file is deprecated
16
+ return $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
17
+ } ) );
@@ -0,0 +1,91 @@
1
+ //= require jquery-ui/version
2
+
3
+ /*!
4
+ * jQuery UI Support for jQuery core 1.7.x 1.12.1
5
+ * http://jqueryui.com
6
+ *
7
+ * Copyright jQuery Foundation and other contributors
8
+ * Released under the MIT license.
9
+ * http://jquery.org/license
10
+ *
11
+ */
12
+
13
+ //>>label: jQuery 1.7 Support
14
+ //>>group: Core
15
+ //>>description: Support version 1.7.x of jQuery core
16
+
17
+ ( function( factory ) {
18
+ if ( typeof define === "function" && define.amd ) {
19
+
20
+ // AMD. Register as an anonymous module.
21
+ define( [ "jquery", "./version" ], factory );
22
+ } else {
23
+
24
+ // Browser globals
25
+ factory( jQuery );
26
+ }
27
+ }( function( $ ) {
28
+
29
+ // Support: jQuery 1.7 only
30
+ // Not a great way to check versions, but since we only support 1.7+ and only
31
+ // need to detect <1.8, this is a simple check that should suffice. Checking
32
+ // for "1.7." would be a bit safer, but the version string is 1.7, not 1.7.0
33
+ // and we'll never reach 1.70.0 (if we do, we certainly won't be supporting
34
+ // 1.7 anymore). See #11197 for why we're not using feature detection.
35
+ if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
36
+
37
+ // Setters for .innerWidth(), .innerHeight(), .outerWidth(), .outerHeight()
38
+ // Unlike jQuery Core 1.8+, these only support numeric values to set the
39
+ // dimensions in pixels
40
+ $.each( [ "Width", "Height" ], function( i, name ) {
41
+ var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
42
+ type = name.toLowerCase(),
43
+ orig = {
44
+ innerWidth: $.fn.innerWidth,
45
+ innerHeight: $.fn.innerHeight,
46
+ outerWidth: $.fn.outerWidth,
47
+ outerHeight: $.fn.outerHeight
48
+ };
49
+
50
+ function reduce( elem, size, border, margin ) {
51
+ $.each( side, function() {
52
+ size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
53
+ if ( border ) {
54
+ size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
55
+ }
56
+ if ( margin ) {
57
+ size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
58
+ }
59
+ } );
60
+ return size;
61
+ }
62
+
63
+ $.fn[ "inner" + name ] = function( size ) {
64
+ if ( size === undefined ) {
65
+ return orig[ "inner" + name ].call( this );
66
+ }
67
+
68
+ return this.each( function() {
69
+ $( this ).css( type, reduce( this, size ) + "px" );
70
+ } );
71
+ };
72
+
73
+ $.fn[ "outer" + name ] = function( size, margin ) {
74
+ if ( typeof size !== "number" ) {
75
+ return orig[ "outer" + name ].call( this, size );
76
+ }
77
+
78
+ return this.each( function() {
79
+ $( this ).css( type, reduce( this, size, true, margin ) + "px" );
80
+ } );
81
+ };
82
+ } );
83
+
84
+ $.fn.addBack = function( selector ) {
85
+ return this.add( selector == null ?
86
+ this.prevObject : this.prevObject.filter( selector )
87
+ );
88
+ };
89
+ }
90
+
91
+ } ) );
@@ -0,0 +1,47 @@
1
+ //= require jquery-ui/version
2
+
3
+ /*!
4
+ * jQuery UI Keycode 1.12.1
5
+ * http://jqueryui.com
6
+ *
7
+ * Copyright jQuery Foundation and other contributors
8
+ * Released under the MIT license.
9
+ * http://jquery.org/license
10
+ */
11
+
12
+ //>>label: Keycode
13
+ //>>group: Core
14
+ //>>description: Provide keycodes as keynames
15
+ //>>docs: http://api.jqueryui.com/jQuery.ui.keyCode/
16
+
17
+ ( function( factory ) {
18
+ if ( typeof define === "function" && define.amd ) {
19
+
20
+ // AMD. Register as an anonymous module.
21
+ define( [ "jquery", "./version" ], factory );
22
+ } else {
23
+
24
+ // Browser globals
25
+ factory( jQuery );
26
+ }
27
+ } ( function( $ ) {
28
+ return $.ui.keyCode = {
29
+ BACKSPACE: 8,
30
+ COMMA: 188,
31
+ DELETE: 46,
32
+ DOWN: 40,
33
+ END: 35,
34
+ ENTER: 13,
35
+ ESCAPE: 27,
36
+ HOME: 36,
37
+ LEFT: 37,
38
+ PAGE_DOWN: 34,
39
+ PAGE_UP: 33,
40
+ PERIOD: 190,
41
+ RIGHT: 39,
42
+ SPACE: 32,
43
+ TAB: 9,
44
+ UP: 38
45
+ };
46
+
47
+ } ) );
@@ -0,0 +1,65 @@
1
+ //= require jquery-ui/version
2
+ //= require jquery-ui/escape-selector
3
+
4
+ /*!
5
+ * jQuery UI Labels 1.12.1
6
+ * http://jqueryui.com
7
+ *
8
+ * Copyright jQuery Foundation and other contributors
9
+ * Released under the MIT license.
10
+ * http://jquery.org/license
11
+ */
12
+
13
+ //>>label: labels
14
+ //>>group: Core
15
+ //>>description: Find all the labels associated with a given input
16
+ //>>docs: http://api.jqueryui.com/labels/
17
+
18
+ ( function( factory ) {
19
+ if ( typeof define === "function" && define.amd ) {
20
+
21
+ // AMD. Register as an anonymous module.
22
+ define( [ "jquery", "./version", "./escape-selector" ], factory );
23
+ } else {
24
+
25
+ // Browser globals
26
+ factory( jQuery );
27
+ }
28
+ } ( function( $ ) {
29
+
30
+ return $.fn.labels = function() {
31
+ var ancestor, selector, id, labels, ancestors;
32
+
33
+ // Check control.labels first
34
+ if ( this[ 0 ].labels && this[ 0 ].labels.length ) {
35
+ return this.pushStack( this[ 0 ].labels );
36
+ }
37
+
38
+ // Support: IE <= 11, FF <= 37, Android <= 2.3 only
39
+ // Above browsers do not support control.labels. Everything below is to support them
40
+ // as well as document fragments. control.labels does not work on document fragments
41
+ labels = this.eq( 0 ).parents( "label" );
42
+
43
+ // Look for the label based on the id
44
+ id = this.attr( "id" );
45
+ if ( id ) {
46
+
47
+ // We don't search against the document in case the element
48
+ // is disconnected from the DOM
49
+ ancestor = this.eq( 0 ).parents().last();
50
+
51
+ // Get a full set of top level ancestors
52
+ ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() );
53
+
54
+ // Create a selector for the label based on the id
55
+ selector = "label[for='" + $.ui.escapeSelector( id ) + "']";
56
+
57
+ labels = labels.add( ancestors.find( selector ).addBack( selector ) );
58
+
59
+ }
60
+
61
+ // Return whatever we have found for labels
62
+ return this.pushStack( labels );
63
+ };
64
+
65
+ } ) );
@@ -0,0 +1,46 @@
1
+ //= require jquery-ui/version
2
+
3
+ ( function( factory ) {
4
+ if ( typeof define === "function" && define.amd ) {
5
+
6
+ // AMD. Register as an anonymous module.
7
+ define( [ "jquery", "./version" ], factory );
8
+ } else {
9
+
10
+ // Browser globals
11
+ factory( jQuery );
12
+ }
13
+ } ( function( $ ) {
14
+
15
+ // $.ui.plugin is deprecated. Use $.widget() extensions instead.
16
+ return $.ui.plugin = {
17
+ add: function( module, option, set ) {
18
+ var i,
19
+ proto = $.ui[ module ].prototype;
20
+ for ( i in set ) {
21
+ proto.plugins[ i ] = proto.plugins[ i ] || [];
22
+ proto.plugins[ i ].push( [ option, set[ i ] ] );
23
+ }
24
+ },
25
+ call: function( instance, name, args, allowDisconnected ) {
26
+ var i,
27
+ set = instance.plugins[ name ];
28
+
29
+ if ( !set ) {
30
+ return;
31
+ }
32
+
33
+ if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode ||
34
+ instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
35
+ return;
36
+ }
37
+
38
+ for ( i = 0; i < set.length; i++ ) {
39
+ if ( instance.options[ set[ i ][ 0 ] ] ) {
40
+ set[ i ][ 1 ].apply( instance.element, args );
41
+ }
42
+ }
43
+ }
44
+ };
45
+
46
+ } ) );
@@ -1,5 +1,7 @@
1
+ //= require jquery-ui/version
2
+
1
3
  /*!
2
- * jQuery UI Position 1.11.4
4
+ * jQuery UI Position 1.12.1
3
5
  * http://jqueryui.com
4
6
  *
5
7
  * Copyright jQuery Foundation and other contributors
@@ -8,25 +10,28 @@
8
10
  *
9
11
  * http://api.jqueryui.com/position/
10
12
  */
11
- (function( factory ) {
13
+
14
+ //>>label: Position
15
+ //>>group: Core
16
+ //>>description: Positions elements relative to other elements.
17
+ //>>docs: http://api.jqueryui.com/position/
18
+ //>>demos: http://jqueryui.com/position/
19
+
20
+ ( function( factory ) {
12
21
  if ( typeof define === "function" && define.amd ) {
13
22
 
14
23
  // AMD. Register as an anonymous module.
15
- define( [ "jquery" ], factory );
24
+ define( [ "jquery", "./version" ], factory );
16
25
  } else {
17
26
 
18
27
  // Browser globals
19
28
  factory( jQuery );
20
29
  }
21
- }(function( $ ) {
22
- (function() {
23
-
24
- $.ui = $.ui || {};
25
-
26
- var cachedScrollbarWidth, supportsOffsetFractions,
30
+ }( function( $ ) {
31
+ ( function() {
32
+ var cachedScrollbarWidth,
27
33
  max = Math.max,
28
34
  abs = Math.abs,
29
- round = Math.round,
30
35
  rhorizontal = /left|center|right/,
31
36
  rvertical = /top|center|bottom/,
32
37
  roffset = /[\+\-]\d+(\.[\d]+)?%?/,
@@ -46,7 +51,7 @@ function parseCss( element, property ) {
46
51
  }
47
52
 
48
53
  function getDimensions( elem ) {
49
- var raw = elem[0];
54
+ var raw = elem[ 0 ];
50
55
  if ( raw.nodeType === 9 ) {
51
56
  return {
52
57
  width: elem.width(),
@@ -81,8 +86,10 @@ $.position = {
81
86
  return cachedScrollbarWidth;
82
87
  }
83
88
  var w1, w2,
84
- div = $( "<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ),
85
- innerDiv = div.children()[0];
89
+ div = $( "<div " +
90
+ "style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>" +
91
+ "<div style='height:100px;width:auto;'></div></div>" ),
92
+ innerDiv = div.children()[ 0 ];
86
93
 
87
94
  $( "body" ).append( div );
88
95
  w1 = innerDiv.offsetWidth;
@@ -91,12 +98,12 @@ $.position = {
91
98
  w2 = innerDiv.offsetWidth;
92
99
 
93
100
  if ( w1 === w2 ) {
94
- w2 = div[0].clientWidth;
101
+ w2 = div[ 0 ].clientWidth;
95
102
  }
96
103
 
97
104
  div.remove();
98
105
 
99
- return (cachedScrollbarWidth = w1 - w2);
106
+ return ( cachedScrollbarWidth = w1 - w2 );
100
107
  },
101
108
  getScrollInfo: function( within ) {
102
109
  var overflowX = within.isWindow || within.isDocument ? "" :
@@ -104,9 +111,9 @@ $.position = {
104
111
  overflowY = within.isWindow || within.isDocument ? "" :
105
112
  within.element.css( "overflow-y" ),
106
113
  hasOverflowX = overflowX === "scroll" ||
107
- ( overflowX === "auto" && within.width < within.element[0].scrollWidth ),
114
+ ( overflowX === "auto" && within.width < within.element[ 0 ].scrollWidth ),
108
115
  hasOverflowY = overflowY === "scroll" ||
109
- ( overflowY === "auto" && within.height < within.element[0].scrollHeight );
116
+ ( overflowY === "auto" && within.height < within.element[ 0 ].scrollHeight );
110
117
  return {
111
118
  width: hasOverflowY ? $.position.scrollbarWidth() : 0,
112
119
  height: hasOverflowX ? $.position.scrollbarWidth() : 0
@@ -114,20 +121,18 @@ $.position = {
114
121
  },
115
122
  getWithinInfo: function( element ) {
116
123
  var withinElement = $( element || window ),
117
- isWindow = $.isWindow( withinElement[0] ),
118
- isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9;
124
+ isWindow = $.isWindow( withinElement[ 0 ] ),
125
+ isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9,
126
+ hasOffset = !isWindow && !isDocument;
119
127
  return {
120
128
  element: withinElement,
121
129
  isWindow: isWindow,
122
130
  isDocument: isDocument,
123
- offset: withinElement.offset() || { left: 0, top: 0 },
131
+ offset: hasOffset ? $( element ).offset() : { left: 0, top: 0 },
124
132
  scrollLeft: withinElement.scrollLeft(),
125
133
  scrollTop: withinElement.scrollTop(),
126
-
127
- // support: jQuery 1.6.x
128
- // jQuery 1.6 doesn't support .outerWidth/Height() on documents or windows
129
- width: isWindow || isDocument ? withinElement.width() : withinElement.outerWidth(),
130
- height: isWindow || isDocument ? withinElement.height() : withinElement.outerHeight()
134
+ width: withinElement.outerWidth(),
135
+ height: withinElement.outerHeight()
131
136
  };
132
137
  }
133
138
  };
@@ -137,7 +142,7 @@ $.fn.position = function( options ) {
137
142
  return _position.apply( this, arguments );
138
143
  }
139
144
 
140
- // make a copy, we don't want to modify arguments
145
+ // Make a copy, we don't want to modify arguments
141
146
  options = $.extend( {}, options );
142
147
 
143
148
  var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
@@ -148,24 +153,26 @@ $.fn.position = function( options ) {
148
153
  offsets = {};
149
154
 
150
155
  dimensions = getDimensions( target );
151
- if ( target[0].preventDefault ) {
152
- // force left top to allow flipping
156
+ if ( target[ 0 ].preventDefault ) {
157
+
158
+ // Force left top to allow flipping
153
159
  options.at = "left top";
154
160
  }
155
161
  targetWidth = dimensions.width;
156
162
  targetHeight = dimensions.height;
157
163
  targetOffset = dimensions.offset;
158
- // clone to reuse original targetOffset later
164
+
165
+ // Clone to reuse original targetOffset later
159
166
  basePosition = $.extend( {}, targetOffset );
160
167
 
161
- // force my and at to have valid horizontal and vertical positions
168
+ // Force my and at to have valid horizontal and vertical positions
162
169
  // if a value is missing or invalid, it will be converted to center
163
170
  $.each( [ "my", "at" ], function() {
164
171
  var pos = ( options[ this ] || "" ).split( " " ),
165
172
  horizontalOffset,
166
173
  verticalOffset;
167
174
 
168
- if ( pos.length === 1) {
175
+ if ( pos.length === 1 ) {
169
176
  pos = rhorizontal.test( pos[ 0 ] ) ?
170
177
  pos.concat( [ "center" ] ) :
171
178
  rvertical.test( pos[ 0 ] ) ?
@@ -175,7 +182,7 @@ $.fn.position = function( options ) {
175
182
  pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center";
176
183
  pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center";
177
184
 
178
- // calculate offsets
185
+ // Calculate offsets
179
186
  horizontalOffset = roffset.exec( pos[ 0 ] );
180
187
  verticalOffset = roffset.exec( pos[ 1 ] );
181
188
  offsets[ this ] = [
@@ -183,14 +190,14 @@ $.fn.position = function( options ) {
183
190
  verticalOffset ? verticalOffset[ 0 ] : 0
184
191
  ];
185
192
 
186
- // reduce to just the positions without the offsets
193
+ // Reduce to just the positions without the offsets
187
194
  options[ this ] = [
188
195
  rposition.exec( pos[ 0 ] )[ 0 ],
189
196
  rposition.exec( pos[ 1 ] )[ 0 ]
190
197
  ];
191
- });
198
+ } );
192
199
 
193
- // normalize collision option
200
+ // Normalize collision option
194
201
  if ( collision.length === 1 ) {
195
202
  collision[ 1 ] = collision[ 0 ];
196
203
  }
@@ -211,15 +218,17 @@ $.fn.position = function( options ) {
211
218
  basePosition.left += atOffset[ 0 ];
212
219
  basePosition.top += atOffset[ 1 ];
213
220
 
214
- return this.each(function() {
221
+ return this.each( function() {
215
222
  var collisionPosition, using,
216
223
  elem = $( this ),
217
224
  elemWidth = elem.outerWidth(),
218
225
  elemHeight = elem.outerHeight(),
219
226
  marginLeft = parseCss( this, "marginLeft" ),
220
227
  marginTop = parseCss( this, "marginTop" ),
221
- collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) + scrollInfo.width,
222
- collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) + scrollInfo.height,
228
+ collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) +
229
+ scrollInfo.width,
230
+ collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) +
231
+ scrollInfo.height,
223
232
  position = $.extend( {}, basePosition ),
224
233
  myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );
225
234
 
@@ -238,12 +247,6 @@ $.fn.position = function( options ) {
238
247
  position.left += myOffset[ 0 ];
239
248
  position.top += myOffset[ 1 ];
240
249
 
241
- // if the browser doesn't support fractions, then round for consistent results
242
- if ( !supportsOffsetFractions ) {
243
- position.left = round( position.left );
244
- position.top = round( position.top );
245
- }
246
-
247
250
  collisionPosition = {
248
251
  marginLeft: marginLeft,
249
252
  marginTop: marginTop
@@ -264,12 +267,13 @@ $.fn.position = function( options ) {
264
267
  at: options.at,
265
268
  within: within,
266
269
  elem: elem
267
- });
270
+ } );
268
271
  }
269
- });
272
+ } );
270
273
 
271
274
  if ( options.using ) {
272
- // adds feedback as second argument to using callback, if present
275
+
276
+ // Adds feedback as second argument to using callback, if present
273
277
  using = function( props ) {
274
278
  var left = targetOffset.left - position.left,
275
279
  right = left + targetWidth - elemWidth,
@@ -309,7 +313,7 @@ $.fn.position = function( options ) {
309
313
  }
310
314
 
311
315
  elem.offset( $.extend( position, { using: using } ) );
312
- });
316
+ } );
313
317
  };
314
318
 
315
319
  $.ui.position = {
@@ -323,16 +327,20 @@ $.ui.position = {
323
327
  overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
324
328
  newOverRight;
325
329
 
326
- // element is wider than within
330
+ // Element is wider than within
327
331
  if ( data.collisionWidth > outerWidth ) {
328
- // element is initially over the left side of within
332
+
333
+ // Element is initially over the left side of within
329
334
  if ( overLeft > 0 && overRight <= 0 ) {
330
- newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset;
335
+ newOverRight = position.left + overLeft + data.collisionWidth - outerWidth -
336
+ withinOffset;
331
337
  position.left += overLeft - newOverRight;
332
- // element is initially over right side of within
338
+
339
+ // Element is initially over right side of within
333
340
  } else if ( overRight > 0 && overLeft <= 0 ) {
334
341
  position.left = withinOffset;
335
- // element is initially over both left and right sides of within
342
+
343
+ // Element is initially over both left and right sides of within
336
344
  } else {
337
345
  if ( overLeft > overRight ) {
338
346
  position.left = withinOffset + outerWidth - data.collisionWidth;
@@ -340,13 +348,16 @@ $.ui.position = {
340
348
  position.left = withinOffset;
341
349
  }
342
350
  }
343
- // too far left -> align with left edge
351
+
352
+ // Too far left -> align with left edge
344
353
  } else if ( overLeft > 0 ) {
345
354
  position.left += overLeft;
346
- // too far right -> align with right edge
355
+
356
+ // Too far right -> align with right edge
347
357
  } else if ( overRight > 0 ) {
348
358
  position.left -= overRight;
349
- // adjust based on position and margin
359
+
360
+ // Adjust based on position and margin
350
361
  } else {
351
362
  position.left = max( position.left - collisionPosLeft, position.left );
352
363
  }
@@ -360,16 +371,20 @@ $.ui.position = {
360
371
  overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
361
372
  newOverBottom;
362
373
 
363
- // element is taller than within
374
+ // Element is taller than within
364
375
  if ( data.collisionHeight > outerHeight ) {
365
- // element is initially over the top of within
376
+
377
+ // Element is initially over the top of within
366
378
  if ( overTop > 0 && overBottom <= 0 ) {
367
- newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset;
379
+ newOverBottom = position.top + overTop + data.collisionHeight - outerHeight -
380
+ withinOffset;
368
381
  position.top += overTop - newOverBottom;
369
- // element is initially over bottom of within
382
+
383
+ // Element is initially over bottom of within
370
384
  } else if ( overBottom > 0 && overTop <= 0 ) {
371
385
  position.top = withinOffset;
372
- // element is initially over both top and bottom of within
386
+
387
+ // Element is initially over both top and bottom of within
373
388
  } else {
374
389
  if ( overTop > overBottom ) {
375
390
  position.top = withinOffset + outerHeight - data.collisionHeight;
@@ -377,13 +392,16 @@ $.ui.position = {
377
392
  position.top = withinOffset;
378
393
  }
379
394
  }
380
- // too far up -> align with top
395
+
396
+ // Too far up -> align with top
381
397
  } else if ( overTop > 0 ) {
382
398
  position.top += overTop;
383
- // too far down -> align with bottom edge
399
+
400
+ // Too far down -> align with bottom edge
384
401
  } else if ( overBottom > 0 ) {
385
402
  position.top -= overBottom;
386
- // adjust based on position and margin
403
+
404
+ // Adjust based on position and margin
387
405
  } else {
388
406
  position.top = max( position.top - collisionPosTop, position.top );
389
407
  }
@@ -413,12 +431,14 @@ $.ui.position = {
413
431
  newOverLeft;
414
432
 
415
433
  if ( overLeft < 0 ) {
416
- newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - outerWidth - withinOffset;
434
+ newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth -
435
+ outerWidth - withinOffset;
417
436
  if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {
418
437
  position.left += myOffset + atOffset + offset;
419
438
  }
420
439
  } else if ( overRight > 0 ) {
421
- newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset + atOffset + offset - offsetLeft;
440
+ newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset +
441
+ atOffset + offset - offsetLeft;
422
442
  if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {
423
443
  position.left += myOffset + atOffset + offset;
424
444
  }
@@ -447,12 +467,14 @@ $.ui.position = {
447
467
  newOverTop,
448
468
  newOverBottom;
449
469
  if ( overTop < 0 ) {
450
- newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset;
470
+ newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight -
471
+ outerHeight - withinOffset;
451
472
  if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) {
452
473
  position.top += myOffset + atOffset + offset;
453
474
  }
454
475
  } else if ( overBottom > 0 ) {
455
- newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
476
+ newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset +
477
+ offset - offsetTop;
456
478
  if ( newOverTop > 0 || abs( newOverTop ) < overBottom ) {
457
479
  position.top += myOffset + atOffset + offset;
458
480
  }
@@ -471,47 +493,8 @@ $.ui.position = {
471
493
  }
472
494
  };
473
495
 
474
- // fraction support test
475
- (function() {
476
- var testElement, testElementParent, testElementStyle, offsetLeft, i,
477
- body = document.getElementsByTagName( "body" )[ 0 ],
478
- div = document.createElement( "div" );
479
-
480
- //Create a "fake body" for testing based on method used in jQuery.support
481
- testElement = document.createElement( body ? "div" : "body" );
482
- testElementStyle = {
483
- visibility: "hidden",
484
- width: 0,
485
- height: 0,
486
- border: 0,
487
- margin: 0,
488
- background: "none"
489
- };
490
- if ( body ) {
491
- $.extend( testElementStyle, {
492
- position: "absolute",
493
- left: "-1000px",
494
- top: "-1000px"
495
- });
496
- }
497
- for ( i in testElementStyle ) {
498
- testElement.style[ i ] = testElementStyle[ i ];
499
- }
500
- testElement.appendChild( div );
501
- testElementParent = body || document.documentElement;
502
- testElementParent.insertBefore( testElement, testElementParent.firstChild );
503
-
504
- div.style.cssText = "position: absolute; left: 10.7432222px;";
505
-
506
- offsetLeft = $( div ).offset().left;
507
- supportsOffsetFractions = offsetLeft > 10 && offsetLeft < 11;
508
-
509
- testElement.innerHTML = "";
510
- testElementParent.removeChild( testElement );
511
- })();
512
-
513
- })();
496
+ } )();
514
497
 
515
498
  return $.ui.position;
516
499
 
517
- }));
500
+ } ) );