jquery-ui-rails 4.2.1 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. checksums.yaml +7 -0
  2. data/.gitmodules +1 -1
  3. data/.travis.yml +1 -1
  4. data/History.md +41 -2
  5. data/README.md +100 -83
  6. data/Rakefile +82 -49
  7. data/VERSIONS.md +9 -0
  8. data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  9. data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
  10. data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
  11. data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
  12. data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
  13. data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
  14. data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  15. data/app/assets/javascripts/jquery-ui/core.js +15 -0
  16. data/app/assets/javascripts/jquery-ui/data.js +45 -0
  17. data/app/assets/javascripts/jquery-ui/disable-selection.js +51 -0
  18. data/app/assets/javascripts/jquery-ui/effect.all.js +15 -0
  19. data/app/assets/javascripts/jquery-ui/effect.js +975 -0
  20. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +76 -0
  21. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +116 -0
  22. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +71 -0
  23. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +75 -0
  24. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +117 -0
  25. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +53 -0
  26. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +95 -0
  27. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +63 -0
  28. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +49 -0
  29. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +70 -0
  30. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +63 -0
  31. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +80 -0
  32. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +199 -0
  33. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +82 -0
  34. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +46 -0
  35. data/app/assets/javascripts/jquery-ui/focusable.js +89 -0
  36. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +83 -0
  37. data/app/assets/javascripts/jquery-ui/form.js +25 -0
  38. data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +40 -0
  39. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +42 -0
  40. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +42 -0
  41. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +40 -0
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +40 -0
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +41 -0
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +40 -0
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +40 -0
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +40 -0
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +48 -0
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +40 -0
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +40 -0
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +40 -0
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +40 -0
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +40 -0
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +40 -0
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +40 -0
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +40 -0
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +48 -0
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +39 -0
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +76 -0
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +40 -0
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +48 -0
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +40 -0
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +40 -0
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +42 -0
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +40 -0
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +40 -0
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +40 -0
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +40 -0
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +39 -0
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +40 -0
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +40 -0
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +48 -0
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +40 -0
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +40 -0
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +40 -0
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +51 -0
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +40 -0
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +40 -0
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +40 -0
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +41 -0
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +48 -0
  82. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +48 -0
  83. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +48 -0
  84. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +40 -0
  85. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +40 -0
  86. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +40 -0
  87. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +52 -0
  88. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +40 -0
  89. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +40 -0
  90. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +52 -0
  91. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +53 -0
  92. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +40 -0
  93. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +48 -0
  94. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +47 -0
  95. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +64 -0
  96. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +43 -0
  97. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +40 -0
  98. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +40 -0
  99. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +41 -0
  100. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +40 -0
  101. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +40 -0
  102. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +40 -0
  103. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +40 -0
  104. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +56 -0
  105. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +40 -0
  106. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +40 -0
  107. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +40 -0
  108. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +41 -0
  109. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +40 -0
  110. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +40 -0
  111. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +40 -0
  112. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +40 -0
  113. data/app/assets/javascripts/jquery-ui/ie.js +20 -0
  114. data/app/assets/javascripts/jquery-ui/jquery-patch.js +91 -0
  115. data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
  116. data/app/assets/javascripts/jquery-ui/keycode.js +51 -0
  117. data/app/assets/javascripts/jquery-ui/labels.js +71 -0
  118. data/app/assets/javascripts/jquery-ui/plugin.js +49 -0
  119. data/app/assets/javascripts/{jquery.ui.position.js → jquery-ui/position.js} +120 -108
  120. data/app/assets/javascripts/jquery-ui/safe-active-element.js +46 -0
  121. data/app/assets/javascripts/jquery-ui/safe-blur.js +27 -0
  122. data/app/assets/javascripts/jquery-ui/scroll-parent.js +50 -0
  123. data/app/assets/javascripts/jquery-ui/tabbable.js +41 -0
  124. data/app/assets/javascripts/jquery-ui/unique-id.js +54 -0
  125. data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +722 -0
  126. data/app/assets/javascripts/jquery-ui/version.js +20 -0
  127. data/app/assets/javascripts/jquery-ui/widget.js +754 -0
  128. data/app/assets/javascripts/{jquery.ui.accordion.js → jquery-ui/widgets/accordion.js} +257 -203
  129. data/app/assets/javascripts/{jquery.ui.autocomplete.js → jquery-ui/widgets/autocomplete.js} +202 -133
  130. data/app/assets/javascripts/jquery-ui/widgets/button.js +454 -0
  131. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +289 -0
  132. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +304 -0
  133. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2243 -0
  134. data/app/assets/javascripts/jquery-ui/widgets/dialog.js +968 -0
  135. data/app/assets/javascripts/jquery-ui/widgets/draggable.js +1268 -0
  136. data/app/assets/javascripts/jquery-ui/widgets/droppable.js +508 -0
  137. data/app/assets/javascripts/{jquery.ui.menu.js → jquery-ui/widgets/menu.js} +276 -187
  138. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +241 -0
  139. data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +184 -0
  140. data/app/assets/javascripts/jquery-ui/widgets/resizable.js +1225 -0
  141. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +321 -0
  142. data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +702 -0
  143. data/app/assets/javascripts/{jquery.ui.slider.js → jquery-ui/widgets/slider.js} +254 -174
  144. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1623 -0
  145. data/app/assets/javascripts/{jquery.ui.spinner.js → jquery-ui/widgets/spinner.js} +206 -119
  146. data/app/assets/javascripts/{jquery.ui.tabs.js → jquery-ui/widgets/tabs.js} +334 -255
  147. data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +530 -0
  148. data/app/assets/javascripts/jquery-ui.js +57 -0
  149. data/app/assets/stylesheets/jquery-ui/accordion.css +26 -0
  150. data/app/assets/stylesheets/{jquery.ui.all.css.erb → jquery-ui/all.css} +4 -4
  151. data/app/assets/stylesheets/{jquery.ui.autocomplete.css.erb → jquery-ui/autocomplete.css} +3 -5
  152. data/app/assets/stylesheets/jquery-ui/base.css +32 -0
  153. data/app/assets/stylesheets/jquery-ui/button.css +85 -0
  154. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
  155. data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
  156. data/app/assets/stylesheets/{jquery.ui.core.css.erb → jquery-ui/core.css} +16 -9
  157. data/app/assets/stylesheets/{jquery.ui.datepicker.css.erb → jquery-ui/datepicker.css} +14 -5
  158. data/app/assets/stylesheets/{jquery.ui.dialog.css.erb → jquery-ui/dialog.css} +40 -12
  159. data/app/assets/stylesheets/jquery-ui/draggable.css +15 -0
  160. data/app/assets/stylesheets/jquery-ui/menu.css +67 -0
  161. data/app/assets/stylesheets/jquery-ui/progressbar.css +31 -0
  162. data/app/assets/stylesheets/{jquery.ui.resizable.css.erb → jquery-ui/resizable.css} +5 -4
  163. data/app/assets/stylesheets/{jquery.ui.selectable.css.erb → jquery-ui/selectable.css} +7 -4
  164. data/app/assets/stylesheets/jquery-ui/selectmenu.css +53 -0
  165. data/app/assets/stylesheets/{jquery.ui.slider.css.erb → jquery-ui/slider.css} +7 -6
  166. data/app/assets/stylesheets/jquery-ui/sortable.css +15 -0
  167. data/app/assets/stylesheets/{jquery.ui.spinner.css.erb → jquery-ui/spinner.css} +9 -24
  168. data/app/assets/stylesheets/{jquery.ui.tabs.css.erb → jquery-ui/tabs.css} +3 -4
  169. data/app/assets/stylesheets/{jquery.ui.theme.css.erb → jquery-ui/theme.css.erb} +122 -96
  170. data/app/assets/stylesheets/{jquery.ui.tooltip.css.erb → jquery-ui/tooltip.css} +3 -6
  171. data/app/assets/stylesheets/jquery-ui.css +1 -0
  172. data/lib/jquery/ui/rails/version.rb +2 -2
  173. metadata +180 -166
  174. data/app/assets/images/jquery-ui/animated-overlay.gif +0 -0
  175. data/app/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  176. data/app/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  177. data/app/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  178. data/app/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
  179. data/app/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  180. data/app/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  181. data/app/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  182. data/app/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
  183. data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  184. data/app/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
  185. data/app/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
  186. data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  187. data/app/assets/javascripts/jquery.ui.all.js +0 -34
  188. data/app/assets/javascripts/jquery.ui.button.js +0 -398
  189. data/app/assets/javascripts/jquery.ui.core.js +0 -320
  190. data/app/assets/javascripts/jquery.ui.datepicker-af.js +0 -23
  191. data/app/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -23
  192. data/app/assets/javascripts/jquery.ui.datepicker-ar.js +0 -23
  193. data/app/assets/javascripts/jquery.ui.datepicker-az.js +0 -23
  194. data/app/assets/javascripts/jquery.ui.datepicker-be.js +0 -23
  195. data/app/assets/javascripts/jquery.ui.datepicker-bg.js +0 -24
  196. data/app/assets/javascripts/jquery.ui.datepicker-bs.js +0 -23
  197. data/app/assets/javascripts/jquery.ui.datepicker-ca.js +0 -23
  198. data/app/assets/javascripts/jquery.ui.datepicker-cs.js +0 -23
  199. data/app/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -23
  200. data/app/assets/javascripts/jquery.ui.datepicker-da.js +0 -23
  201. data/app/assets/javascripts/jquery.ui.datepicker-de.js +0 -23
  202. data/app/assets/javascripts/jquery.ui.datepicker-el.js +0 -23
  203. data/app/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -23
  204. data/app/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -23
  205. data/app/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -23
  206. data/app/assets/javascripts/jquery.ui.datepicker-eo.js +0 -23
  207. data/app/assets/javascripts/jquery.ui.datepicker-es.js +0 -23
  208. data/app/assets/javascripts/jquery.ui.datepicker-et.js +0 -23
  209. data/app/assets/javascripts/jquery.ui.datepicker-eu.js +0 -23
  210. data/app/assets/javascripts/jquery.ui.datepicker-fa.js +0 -59
  211. data/app/assets/javascripts/jquery.ui.datepicker-fi.js +0 -23
  212. data/app/assets/javascripts/jquery.ui.datepicker-fo.js +0 -23
  213. data/app/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -23
  214. data/app/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
  215. data/app/assets/javascripts/jquery.ui.datepicker-fr.js +0 -25
  216. data/app/assets/javascripts/jquery.ui.datepicker-gl.js +0 -23
  217. data/app/assets/javascripts/jquery.ui.datepicker-he.js +0 -23
  218. data/app/assets/javascripts/jquery.ui.datepicker-hi.js +0 -23
  219. data/app/assets/javascripts/jquery.ui.datepicker-hr.js +0 -23
  220. data/app/assets/javascripts/jquery.ui.datepicker-hu.js +0 -23
  221. data/app/assets/javascripts/jquery.ui.datepicker-hy.js +0 -23
  222. data/app/assets/javascripts/jquery.ui.datepicker-id.js +0 -23
  223. data/app/assets/javascripts/jquery.ui.datepicker-is.js +0 -23
  224. data/app/assets/javascripts/jquery.ui.datepicker-it.js +0 -23
  225. data/app/assets/javascripts/jquery.ui.datepicker-ja.js +0 -23
  226. data/app/assets/javascripts/jquery.ui.datepicker-ka.js +0 -21
  227. data/app/assets/javascripts/jquery.ui.datepicker-kk.js +0 -23
  228. data/app/assets/javascripts/jquery.ui.datepicker-km.js +0 -23
  229. data/app/assets/javascripts/jquery.ui.datepicker-ko.js +0 -23
  230. data/app/assets/javascripts/jquery.ui.datepicker-ky.js +0 -24
  231. data/app/assets/javascripts/jquery.ui.datepicker-lb.js +0 -23
  232. data/app/assets/javascripts/jquery.ui.datepicker-lt.js +0 -23
  233. data/app/assets/javascripts/jquery.ui.datepicker-lv.js +0 -23
  234. data/app/assets/javascripts/jquery.ui.datepicker-mk.js +0 -23
  235. data/app/assets/javascripts/jquery.ui.datepicker-ml.js +0 -23
  236. data/app/assets/javascripts/jquery.ui.datepicker-ms.js +0 -23
  237. data/app/assets/javascripts/jquery.ui.datepicker-nb.js +0 -22
  238. data/app/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -23
  239. data/app/assets/javascripts/jquery.ui.datepicker-nl.js +0 -23
  240. data/app/assets/javascripts/jquery.ui.datepicker-nn.js +0 -22
  241. data/app/assets/javascripts/jquery.ui.datepicker-no.js +0 -23
  242. data/app/assets/javascripts/jquery.ui.datepicker-pl.js +0 -23
  243. data/app/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -23
  244. data/app/assets/javascripts/jquery.ui.datepicker-pt.js +0 -22
  245. data/app/assets/javascripts/jquery.ui.datepicker-rm.js +0 -21
  246. data/app/assets/javascripts/jquery.ui.datepicker-ro.js +0 -26
  247. data/app/assets/javascripts/jquery.ui.datepicker-ru.js +0 -23
  248. data/app/assets/javascripts/jquery.ui.datepicker-sk.js +0 -23
  249. data/app/assets/javascripts/jquery.ui.datepicker-sl.js +0 -24
  250. data/app/assets/javascripts/jquery.ui.datepicker-sq.js +0 -23
  251. data/app/assets/javascripts/jquery.ui.datepicker-sr-SR.js +0 -23
  252. data/app/assets/javascripts/jquery.ui.datepicker-sr.js +0 -23
  253. data/app/assets/javascripts/jquery.ui.datepicker-sv.js +0 -23
  254. data/app/assets/javascripts/jquery.ui.datepicker-ta.js +0 -23
  255. data/app/assets/javascripts/jquery.ui.datepicker-th.js +0 -23
  256. data/app/assets/javascripts/jquery.ui.datepicker-tj.js +0 -23
  257. data/app/assets/javascripts/jquery.ui.datepicker-tr.js +0 -23
  258. data/app/assets/javascripts/jquery.ui.datepicker-uk.js +0 -24
  259. data/app/assets/javascripts/jquery.ui.datepicker-vi.js +0 -23
  260. data/app/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -23
  261. data/app/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -23
  262. data/app/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -23
  263. data/app/assets/javascripts/jquery.ui.datepicker.js +0 -2040
  264. data/app/assets/javascripts/jquery.ui.dialog.js +0 -830
  265. data/app/assets/javascripts/jquery.ui.draggable.js +0 -962
  266. data/app/assets/javascripts/jquery.ui.droppable.js +0 -394
  267. data/app/assets/javascripts/jquery.ui.effect-blind.js +0 -84
  268. data/app/assets/javascripts/jquery.ui.effect-bounce.js +0 -115
  269. data/app/assets/javascripts/jquery.ui.effect-clip.js +0 -69
  270. data/app/assets/javascripts/jquery.ui.effect-drop.js +0 -67
  271. data/app/assets/javascripts/jquery.ui.effect-explode.js +0 -99
  272. data/app/assets/javascripts/jquery.ui.effect-fade.js +0 -32
  273. data/app/assets/javascripts/jquery.ui.effect-fold.js +0 -78
  274. data/app/assets/javascripts/jquery.ui.effect-highlight.js +0 -52
  275. data/app/assets/javascripts/jquery.ui.effect-pulsate.js +0 -65
  276. data/app/assets/javascripts/jquery.ui.effect-scale.js +0 -320
  277. data/app/assets/javascripts/jquery.ui.effect-shake.js +0 -76
  278. data/app/assets/javascripts/jquery.ui.effect-slide.js +0 -66
  279. data/app/assets/javascripts/jquery.ui.effect-transfer.js +0 -49
  280. data/app/assets/javascripts/jquery.ui.effect.all.js +0 -14
  281. data/app/assets/javascripts/jquery.ui.effect.js +0 -1289
  282. data/app/assets/javascripts/jquery.ui.mouse.js +0 -172
  283. data/app/assets/javascripts/jquery.ui.progressbar.js +0 -148
  284. data/app/assets/javascripts/jquery.ui.resizable.js +0 -982
  285. data/app/assets/javascripts/jquery.ui.selectable.js +0 -281
  286. data/app/assets/javascripts/jquery.ui.sortable.js +0 -1293
  287. data/app/assets/javascripts/jquery.ui.tooltip.js +0 -406
  288. data/app/assets/javascripts/jquery.ui.widget.js +0 -521
  289. data/app/assets/stylesheets/jquery.ui.accordion.css.erb +0 -42
  290. data/app/assets/stylesheets/jquery.ui.base.css.erb +0 -27
  291. data/app/assets/stylesheets/jquery.ui.button.css.erb +0 -118
  292. data/app/assets/stylesheets/jquery.ui.menu.css.erb +0 -83
  293. data/app/assets/stylesheets/jquery.ui.progressbar.css.erb +0 -37
@@ -1,830 +0,0 @@
1
- //= require jquery.ui.core
2
- //= require jquery.ui.widget
3
- //= require jquery.ui.button
4
- //= require jquery.ui.draggable
5
- //= require jquery.ui.position
6
- //= require jquery.ui.resizable
7
-
8
- /*!
9
- * jQuery UI Dialog 1.10.4
10
- * http://jqueryui.com
11
- *
12
- * Copyright 2014 jQuery Foundation and other contributors
13
- * Released under the MIT license.
14
- * http://jquery.org/license
15
- *
16
- * http://api.jqueryui.com/dialog/
17
- *
18
- * Depends:
19
- * jquery.ui.core.js
20
- * jquery.ui.widget.js
21
- * jquery.ui.button.js
22
- * jquery.ui.draggable.js
23
- * jquery.ui.mouse.js
24
- * jquery.ui.position.js
25
- * jquery.ui.resizable.js
26
- */
27
- (function( $, undefined ) {
28
-
29
- var sizeRelatedOptions = {
30
- buttons: true,
31
- height: true,
32
- maxHeight: true,
33
- maxWidth: true,
34
- minHeight: true,
35
- minWidth: true,
36
- width: true
37
- },
38
- resizableRelatedOptions = {
39
- maxHeight: true,
40
- maxWidth: true,
41
- minHeight: true,
42
- minWidth: true
43
- };
44
-
45
- $.widget( "ui.dialog", {
46
- version: "1.10.4",
47
- options: {
48
- appendTo: "body",
49
- autoOpen: true,
50
- buttons: [],
51
- closeOnEscape: true,
52
- closeText: "close",
53
- dialogClass: "",
54
- draggable: true,
55
- hide: null,
56
- height: "auto",
57
- maxHeight: null,
58
- maxWidth: null,
59
- minHeight: 150,
60
- minWidth: 150,
61
- modal: false,
62
- position: {
63
- my: "center",
64
- at: "center",
65
- of: window,
66
- collision: "fit",
67
- // Ensure the titlebar is always visible
68
- using: function( pos ) {
69
- var topOffset = $( this ).css( pos ).offset().top;
70
- if ( topOffset < 0 ) {
71
- $( this ).css( "top", pos.top - topOffset );
72
- }
73
- }
74
- },
75
- resizable: true,
76
- show: null,
77
- title: null,
78
- width: 300,
79
-
80
- // callbacks
81
- beforeClose: null,
82
- close: null,
83
- drag: null,
84
- dragStart: null,
85
- dragStop: null,
86
- focus: null,
87
- open: null,
88
- resize: null,
89
- resizeStart: null,
90
- resizeStop: null
91
- },
92
-
93
- _create: function() {
94
- this.originalCss = {
95
- display: this.element[0].style.display,
96
- width: this.element[0].style.width,
97
- minHeight: this.element[0].style.minHeight,
98
- maxHeight: this.element[0].style.maxHeight,
99
- height: this.element[0].style.height
100
- };
101
- this.originalPosition = {
102
- parent: this.element.parent(),
103
- index: this.element.parent().children().index( this.element )
104
- };
105
- this.originalTitle = this.element.attr("title");
106
- this.options.title = this.options.title || this.originalTitle;
107
-
108
- this._createWrapper();
109
-
110
- this.element
111
- .show()
112
- .removeAttr("title")
113
- .addClass("ui-dialog-content ui-widget-content")
114
- .appendTo( this.uiDialog );
115
-
116
- this._createTitlebar();
117
- this._createButtonPane();
118
-
119
- if ( this.options.draggable && $.fn.draggable ) {
120
- this._makeDraggable();
121
- }
122
- if ( this.options.resizable && $.fn.resizable ) {
123
- this._makeResizable();
124
- }
125
-
126
- this._isOpen = false;
127
- },
128
-
129
- _init: function() {
130
- if ( this.options.autoOpen ) {
131
- this.open();
132
- }
133
- },
134
-
135
- _appendTo: function() {
136
- var element = this.options.appendTo;
137
- if ( element && (element.jquery || element.nodeType) ) {
138
- return $( element );
139
- }
140
- return this.document.find( element || "body" ).eq( 0 );
141
- },
142
-
143
- _destroy: function() {
144
- var next,
145
- originalPosition = this.originalPosition;
146
-
147
- this._destroyOverlay();
148
-
149
- this.element
150
- .removeUniqueId()
151
- .removeClass("ui-dialog-content ui-widget-content")
152
- .css( this.originalCss )
153
- // Without detaching first, the following becomes really slow
154
- .detach();
155
-
156
- this.uiDialog.stop( true, true ).remove();
157
-
158
- if ( this.originalTitle ) {
159
- this.element.attr( "title", this.originalTitle );
160
- }
161
-
162
- next = originalPosition.parent.children().eq( originalPosition.index );
163
- // Don't try to place the dialog next to itself (#8613)
164
- if ( next.length && next[0] !== this.element[0] ) {
165
- next.before( this.element );
166
- } else {
167
- originalPosition.parent.append( this.element );
168
- }
169
- },
170
-
171
- widget: function() {
172
- return this.uiDialog;
173
- },
174
-
175
- disable: $.noop,
176
- enable: $.noop,
177
-
178
- close: function( event ) {
179
- var activeElement,
180
- that = this;
181
-
182
- if ( !this._isOpen || this._trigger( "beforeClose", event ) === false ) {
183
- return;
184
- }
185
-
186
- this._isOpen = false;
187
- this._destroyOverlay();
188
-
189
- if ( !this.opener.filter(":focusable").focus().length ) {
190
-
191
- // support: IE9
192
- // IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
193
- try {
194
- activeElement = this.document[ 0 ].activeElement;
195
-
196
- // Support: IE9, IE10
197
- // If the <body> is blurred, IE will switch windows, see #4520
198
- if ( activeElement && activeElement.nodeName.toLowerCase() !== "body" ) {
199
-
200
- // Hiding a focused element doesn't trigger blur in WebKit
201
- // so in case we have nothing to focus on, explicitly blur the active element
202
- // https://bugs.webkit.org/show_bug.cgi?id=47182
203
- $( activeElement ).blur();
204
- }
205
- } catch ( error ) {}
206
- }
207
-
208
- this._hide( this.uiDialog, this.options.hide, function() {
209
- that._trigger( "close", event );
210
- });
211
- },
212
-
213
- isOpen: function() {
214
- return this._isOpen;
215
- },
216
-
217
- moveToTop: function() {
218
- this._moveToTop();
219
- },
220
-
221
- _moveToTop: function( event, silent ) {
222
- var moved = !!this.uiDialog.nextAll(":visible").insertBefore( this.uiDialog ).length;
223
- if ( moved && !silent ) {
224
- this._trigger( "focus", event );
225
- }
226
- return moved;
227
- },
228
-
229
- open: function() {
230
- var that = this;
231
- if ( this._isOpen ) {
232
- if ( this._moveToTop() ) {
233
- this._focusTabbable();
234
- }
235
- return;
236
- }
237
-
238
- this._isOpen = true;
239
- this.opener = $( this.document[0].activeElement );
240
-
241
- this._size();
242
- this._position();
243
- this._createOverlay();
244
- this._moveToTop( null, true );
245
- this._show( this.uiDialog, this.options.show, function() {
246
- that._focusTabbable();
247
- that._trigger("focus");
248
- });
249
-
250
- this._trigger("open");
251
- },
252
-
253
- _focusTabbable: function() {
254
- // Set focus to the first match:
255
- // 1. First element inside the dialog matching [autofocus]
256
- // 2. Tabbable element inside the content element
257
- // 3. Tabbable element inside the buttonpane
258
- // 4. The close button
259
- // 5. The dialog itself
260
- var hasFocus = this.element.find("[autofocus]");
261
- if ( !hasFocus.length ) {
262
- hasFocus = this.element.find(":tabbable");
263
- }
264
- if ( !hasFocus.length ) {
265
- hasFocus = this.uiDialogButtonPane.find(":tabbable");
266
- }
267
- if ( !hasFocus.length ) {
268
- hasFocus = this.uiDialogTitlebarClose.filter(":tabbable");
269
- }
270
- if ( !hasFocus.length ) {
271
- hasFocus = this.uiDialog;
272
- }
273
- hasFocus.eq( 0 ).focus();
274
- },
275
-
276
- _keepFocus: function( event ) {
277
- function checkFocus() {
278
- var activeElement = this.document[0].activeElement,
279
- isActive = this.uiDialog[0] === activeElement ||
280
- $.contains( this.uiDialog[0], activeElement );
281
- if ( !isActive ) {
282
- this._focusTabbable();
283
- }
284
- }
285
- event.preventDefault();
286
- checkFocus.call( this );
287
- // support: IE
288
- // IE <= 8 doesn't prevent moving focus even with event.preventDefault()
289
- // so we check again later
290
- this._delay( checkFocus );
291
- },
292
-
293
- _createWrapper: function() {
294
- this.uiDialog = $("<div>")
295
- .addClass( "ui-dialog ui-widget ui-widget-content ui-corner-all ui-front " +
296
- this.options.dialogClass )
297
- .hide()
298
- .attr({
299
- // Setting tabIndex makes the div focusable
300
- tabIndex: -1,
301
- role: "dialog"
302
- })
303
- .appendTo( this._appendTo() );
304
-
305
- this._on( this.uiDialog, {
306
- keydown: function( event ) {
307
- if ( this.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&
308
- event.keyCode === $.ui.keyCode.ESCAPE ) {
309
- event.preventDefault();
310
- this.close( event );
311
- return;
312
- }
313
-
314
- // prevent tabbing out of dialogs
315
- if ( event.keyCode !== $.ui.keyCode.TAB ) {
316
- return;
317
- }
318
- var tabbables = this.uiDialog.find(":tabbable"),
319
- first = tabbables.filter(":first"),
320
- last = tabbables.filter(":last");
321
-
322
- if ( ( event.target === last[0] || event.target === this.uiDialog[0] ) && !event.shiftKey ) {
323
- first.focus( 1 );
324
- event.preventDefault();
325
- } else if ( ( event.target === first[0] || event.target === this.uiDialog[0] ) && event.shiftKey ) {
326
- last.focus( 1 );
327
- event.preventDefault();
328
- }
329
- },
330
- mousedown: function( event ) {
331
- if ( this._moveToTop( event ) ) {
332
- this._focusTabbable();
333
- }
334
- }
335
- });
336
-
337
- // We assume that any existing aria-describedby attribute means
338
- // that the dialog content is marked up properly
339
- // otherwise we brute force the content as the description
340
- if ( !this.element.find("[aria-describedby]").length ) {
341
- this.uiDialog.attr({
342
- "aria-describedby": this.element.uniqueId().attr("id")
343
- });
344
- }
345
- },
346
-
347
- _createTitlebar: function() {
348
- var uiDialogTitle;
349
-
350
- this.uiDialogTitlebar = $("<div>")
351
- .addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix")
352
- .prependTo( this.uiDialog );
353
- this._on( this.uiDialogTitlebar, {
354
- mousedown: function( event ) {
355
- // Don't prevent click on close button (#8838)
356
- // Focusing a dialog that is partially scrolled out of view
357
- // causes the browser to scroll it into view, preventing the click event
358
- if ( !$( event.target ).closest(".ui-dialog-titlebar-close") ) {
359
- // Dialog isn't getting focus when dragging (#8063)
360
- this.uiDialog.focus();
361
- }
362
- }
363
- });
364
-
365
- // support: IE
366
- // Use type="button" to prevent enter keypresses in textboxes from closing the
367
- // dialog in IE (#9312)
368
- this.uiDialogTitlebarClose = $( "<button type='button'></button>" )
369
- .button({
370
- label: this.options.closeText,
371
- icons: {
372
- primary: "ui-icon-closethick"
373
- },
374
- text: false
375
- })
376
- .addClass("ui-dialog-titlebar-close")
377
- .appendTo( this.uiDialogTitlebar );
378
- this._on( this.uiDialogTitlebarClose, {
379
- click: function( event ) {
380
- event.preventDefault();
381
- this.close( event );
382
- }
383
- });
384
-
385
- uiDialogTitle = $("<span>")
386
- .uniqueId()
387
- .addClass("ui-dialog-title")
388
- .prependTo( this.uiDialogTitlebar );
389
- this._title( uiDialogTitle );
390
-
391
- this.uiDialog.attr({
392
- "aria-labelledby": uiDialogTitle.attr("id")
393
- });
394
- },
395
-
396
- _title: function( title ) {
397
- if ( !this.options.title ) {
398
- title.html("&#160;");
399
- }
400
- title.text( this.options.title );
401
- },
402
-
403
- _createButtonPane: function() {
404
- this.uiDialogButtonPane = $("<div>")
405
- .addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");
406
-
407
- this.uiButtonSet = $("<div>")
408
- .addClass("ui-dialog-buttonset")
409
- .appendTo( this.uiDialogButtonPane );
410
-
411
- this._createButtons();
412
- },
413
-
414
- _createButtons: function() {
415
- var that = this,
416
- buttons = this.options.buttons;
417
-
418
- // if we already have a button pane, remove it
419
- this.uiDialogButtonPane.remove();
420
- this.uiButtonSet.empty();
421
-
422
- if ( $.isEmptyObject( buttons ) || ($.isArray( buttons ) && !buttons.length) ) {
423
- this.uiDialog.removeClass("ui-dialog-buttons");
424
- return;
425
- }
426
-
427
- $.each( buttons, function( name, props ) {
428
- var click, buttonOptions;
429
- props = $.isFunction( props ) ?
430
- { click: props, text: name } :
431
- props;
432
- // Default to a non-submitting button
433
- props = $.extend( { type: "button" }, props );
434
- // Change the context for the click callback to be the main element
435
- click = props.click;
436
- props.click = function() {
437
- click.apply( that.element[0], arguments );
438
- };
439
- buttonOptions = {
440
- icons: props.icons,
441
- text: props.showText
442
- };
443
- delete props.icons;
444
- delete props.showText;
445
- $( "<button></button>", props )
446
- .button( buttonOptions )
447
- .appendTo( that.uiButtonSet );
448
- });
449
- this.uiDialog.addClass("ui-dialog-buttons");
450
- this.uiDialogButtonPane.appendTo( this.uiDialog );
451
- },
452
-
453
- _makeDraggable: function() {
454
- var that = this,
455
- options = this.options;
456
-
457
- function filteredUi( ui ) {
458
- return {
459
- position: ui.position,
460
- offset: ui.offset
461
- };
462
- }
463
-
464
- this.uiDialog.draggable({
465
- cancel: ".ui-dialog-content, .ui-dialog-titlebar-close",
466
- handle: ".ui-dialog-titlebar",
467
- containment: "document",
468
- start: function( event, ui ) {
469
- $( this ).addClass("ui-dialog-dragging");
470
- that._blockFrames();
471
- that._trigger( "dragStart", event, filteredUi( ui ) );
472
- },
473
- drag: function( event, ui ) {
474
- that._trigger( "drag", event, filteredUi( ui ) );
475
- },
476
- stop: function( event, ui ) {
477
- options.position = [
478
- ui.position.left - that.document.scrollLeft(),
479
- ui.position.top - that.document.scrollTop()
480
- ];
481
- $( this ).removeClass("ui-dialog-dragging");
482
- that._unblockFrames();
483
- that._trigger( "dragStop", event, filteredUi( ui ) );
484
- }
485
- });
486
- },
487
-
488
- _makeResizable: function() {
489
- var that = this,
490
- options = this.options,
491
- handles = options.resizable,
492
- // .ui-resizable has position: relative defined in the stylesheet
493
- // but dialogs have to use absolute or fixed positioning
494
- position = this.uiDialog.css("position"),
495
- resizeHandles = typeof handles === "string" ?
496
- handles :
497
- "n,e,s,w,se,sw,ne,nw";
498
-
499
- function filteredUi( ui ) {
500
- return {
501
- originalPosition: ui.originalPosition,
502
- originalSize: ui.originalSize,
503
- position: ui.position,
504
- size: ui.size
505
- };
506
- }
507
-
508
- this.uiDialog.resizable({
509
- cancel: ".ui-dialog-content",
510
- containment: "document",
511
- alsoResize: this.element,
512
- maxWidth: options.maxWidth,
513
- maxHeight: options.maxHeight,
514
- minWidth: options.minWidth,
515
- minHeight: this._minHeight(),
516
- handles: resizeHandles,
517
- start: function( event, ui ) {
518
- $( this ).addClass("ui-dialog-resizing");
519
- that._blockFrames();
520
- that._trigger( "resizeStart", event, filteredUi( ui ) );
521
- },
522
- resize: function( event, ui ) {
523
- that._trigger( "resize", event, filteredUi( ui ) );
524
- },
525
- stop: function( event, ui ) {
526
- options.height = $( this ).height();
527
- options.width = $( this ).width();
528
- $( this ).removeClass("ui-dialog-resizing");
529
- that._unblockFrames();
530
- that._trigger( "resizeStop", event, filteredUi( ui ) );
531
- }
532
- })
533
- .css( "position", position );
534
- },
535
-
536
- _minHeight: function() {
537
- var options = this.options;
538
-
539
- return options.height === "auto" ?
540
- options.minHeight :
541
- Math.min( options.minHeight, options.height );
542
- },
543
-
544
- _position: function() {
545
- // Need to show the dialog to get the actual offset in the position plugin
546
- var isVisible = this.uiDialog.is(":visible");
547
- if ( !isVisible ) {
548
- this.uiDialog.show();
549
- }
550
- this.uiDialog.position( this.options.position );
551
- if ( !isVisible ) {
552
- this.uiDialog.hide();
553
- }
554
- },
555
-
556
- _setOptions: function( options ) {
557
- var that = this,
558
- resize = false,
559
- resizableOptions = {};
560
-
561
- $.each( options, function( key, value ) {
562
- that._setOption( key, value );
563
-
564
- if ( key in sizeRelatedOptions ) {
565
- resize = true;
566
- }
567
- if ( key in resizableRelatedOptions ) {
568
- resizableOptions[ key ] = value;
569
- }
570
- });
571
-
572
- if ( resize ) {
573
- this._size();
574
- this._position();
575
- }
576
- if ( this.uiDialog.is(":data(ui-resizable)") ) {
577
- this.uiDialog.resizable( "option", resizableOptions );
578
- }
579
- },
580
-
581
- _setOption: function( key, value ) {
582
- var isDraggable, isResizable,
583
- uiDialog = this.uiDialog;
584
-
585
- if ( key === "dialogClass" ) {
586
- uiDialog
587
- .removeClass( this.options.dialogClass )
588
- .addClass( value );
589
- }
590
-
591
- if ( key === "disabled" ) {
592
- return;
593
- }
594
-
595
- this._super( key, value );
596
-
597
- if ( key === "appendTo" ) {
598
- this.uiDialog.appendTo( this._appendTo() );
599
- }
600
-
601
- if ( key === "buttons" ) {
602
- this._createButtons();
603
- }
604
-
605
- if ( key === "closeText" ) {
606
- this.uiDialogTitlebarClose.button({
607
- // Ensure that we always pass a string
608
- label: "" + value
609
- });
610
- }
611
-
612
- if ( key === "draggable" ) {
613
- isDraggable = uiDialog.is(":data(ui-draggable)");
614
- if ( isDraggable && !value ) {
615
- uiDialog.draggable("destroy");
616
- }
617
-
618
- if ( !isDraggable && value ) {
619
- this._makeDraggable();
620
- }
621
- }
622
-
623
- if ( key === "position" ) {
624
- this._position();
625
- }
626
-
627
- if ( key === "resizable" ) {
628
- // currently resizable, becoming non-resizable
629
- isResizable = uiDialog.is(":data(ui-resizable)");
630
- if ( isResizable && !value ) {
631
- uiDialog.resizable("destroy");
632
- }
633
-
634
- // currently resizable, changing handles
635
- if ( isResizable && typeof value === "string" ) {
636
- uiDialog.resizable( "option", "handles", value );
637
- }
638
-
639
- // currently non-resizable, becoming resizable
640
- if ( !isResizable && value !== false ) {
641
- this._makeResizable();
642
- }
643
- }
644
-
645
- if ( key === "title" ) {
646
- this._title( this.uiDialogTitlebar.find(".ui-dialog-title") );
647
- }
648
- },
649
-
650
- _size: function() {
651
- // If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
652
- // divs will both have width and height set, so we need to reset them
653
- var nonContentHeight, minContentHeight, maxContentHeight,
654
- options = this.options;
655
-
656
- // Reset content sizing
657
- this.element.show().css({
658
- width: "auto",
659
- minHeight: 0,
660
- maxHeight: "none",
661
- height: 0
662
- });
663
-
664
- if ( options.minWidth > options.width ) {
665
- options.width = options.minWidth;
666
- }
667
-
668
- // reset wrapper sizing
669
- // determine the height of all the non-content elements
670
- nonContentHeight = this.uiDialog.css({
671
- height: "auto",
672
- width: options.width
673
- })
674
- .outerHeight();
675
- minContentHeight = Math.max( 0, options.minHeight - nonContentHeight );
676
- maxContentHeight = typeof options.maxHeight === "number" ?
677
- Math.max( 0, options.maxHeight - nonContentHeight ) :
678
- "none";
679
-
680
- if ( options.height === "auto" ) {
681
- this.element.css({
682
- minHeight: minContentHeight,
683
- maxHeight: maxContentHeight,
684
- height: "auto"
685
- });
686
- } else {
687
- this.element.height( Math.max( 0, options.height - nonContentHeight ) );
688
- }
689
-
690
- if (this.uiDialog.is(":data(ui-resizable)") ) {
691
- this.uiDialog.resizable( "option", "minHeight", this._minHeight() );
692
- }
693
- },
694
-
695
- _blockFrames: function() {
696
- this.iframeBlocks = this.document.find( "iframe" ).map(function() {
697
- var iframe = $( this );
698
-
699
- return $( "<div>" )
700
- .css({
701
- position: "absolute",
702
- width: iframe.outerWidth(),
703
- height: iframe.outerHeight()
704
- })
705
- .appendTo( iframe.parent() )
706
- .offset( iframe.offset() )[0];
707
- });
708
- },
709
-
710
- _unblockFrames: function() {
711
- if ( this.iframeBlocks ) {
712
- this.iframeBlocks.remove();
713
- delete this.iframeBlocks;
714
- }
715
- },
716
-
717
- _allowInteraction: function( event ) {
718
- if ( $( event.target ).closest(".ui-dialog").length ) {
719
- return true;
720
- }
721
-
722
- // TODO: Remove hack when datepicker implements
723
- // the .ui-front logic (#8989)
724
- return !!$( event.target ).closest(".ui-datepicker").length;
725
- },
726
-
727
- _createOverlay: function() {
728
- if ( !this.options.modal ) {
729
- return;
730
- }
731
-
732
- var that = this,
733
- widgetFullName = this.widgetFullName;
734
- if ( !$.ui.dialog.overlayInstances ) {
735
- // Prevent use of anchors and inputs.
736
- // We use a delay in case the overlay is created from an
737
- // event that we're going to be cancelling. (#2804)
738
- this._delay(function() {
739
- // Handle .dialog().dialog("close") (#4065)
740
- if ( $.ui.dialog.overlayInstances ) {
741
- this.document.bind( "focusin.dialog", function( event ) {
742
- if ( !that._allowInteraction( event ) ) {
743
- event.preventDefault();
744
- $(".ui-dialog:visible:last .ui-dialog-content")
745
- .data( widgetFullName )._focusTabbable();
746
- }
747
- });
748
- }
749
- });
750
- }
751
-
752
- this.overlay = $("<div>")
753
- .addClass("ui-widget-overlay ui-front")
754
- .appendTo( this._appendTo() );
755
- this._on( this.overlay, {
756
- mousedown: "_keepFocus"
757
- });
758
- $.ui.dialog.overlayInstances++;
759
- },
760
-
761
- _destroyOverlay: function() {
762
- if ( !this.options.modal ) {
763
- return;
764
- }
765
-
766
- if ( this.overlay ) {
767
- $.ui.dialog.overlayInstances--;
768
-
769
- if ( !$.ui.dialog.overlayInstances ) {
770
- this.document.unbind( "focusin.dialog" );
771
- }
772
- this.overlay.remove();
773
- this.overlay = null;
774
- }
775
- }
776
- });
777
-
778
- $.ui.dialog.overlayInstances = 0;
779
-
780
- // DEPRECATED
781
- if ( $.uiBackCompat !== false ) {
782
- // position option with array notation
783
- // just override with old implementation
784
- $.widget( "ui.dialog", $.ui.dialog, {
785
- _position: function() {
786
- var position = this.options.position,
787
- myAt = [],
788
- offset = [ 0, 0 ],
789
- isVisible;
790
-
791
- if ( position ) {
792
- if ( typeof position === "string" || (typeof position === "object" && "0" in position ) ) {
793
- myAt = position.split ? position.split(" ") : [ position[0], position[1] ];
794
- if ( myAt.length === 1 ) {
795
- myAt[1] = myAt[0];
796
- }
797
-
798
- $.each( [ "left", "top" ], function( i, offsetPosition ) {
799
- if ( +myAt[ i ] === myAt[ i ] ) {
800
- offset[ i ] = myAt[ i ];
801
- myAt[ i ] = offsetPosition;
802
- }
803
- });
804
-
805
- position = {
806
- my: myAt[0] + (offset[0] < 0 ? offset[0] : "+" + offset[0]) + " " +
807
- myAt[1] + (offset[1] < 0 ? offset[1] : "+" + offset[1]),
808
- at: myAt.join(" ")
809
- };
810
- }
811
-
812
- position = $.extend( {}, $.ui.dialog.prototype.options.position, position );
813
- } else {
814
- position = $.ui.dialog.prototype.options.position;
815
- }
816
-
817
- // need to show the dialog to get the actual offset in the position plugin
818
- isVisible = this.uiDialog.is(":visible");
819
- if ( !isVisible ) {
820
- this.uiDialog.show();
821
- }
822
- this.uiDialog.position( position );
823
- if ( !isVisible ) {
824
- this.uiDialog.hide();
825
- }
826
- }
827
- });
828
- }
829
-
830
- }( jQuery ) );