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,63 +1,105 @@
1
- //= require jquery.ui.core
2
- //= require jquery.ui.widget
1
+ //= require jquery-ui/version
2
+ //= require jquery-ui/keycode
3
+ //= require jquery-ui/unique-id
4
+ //= require jquery-ui/widget
3
5
 
4
6
  /*!
5
- * jQuery UI Accordion 1.10.4
7
+ * jQuery UI Accordion 1.13.0
6
8
  * http://jqueryui.com
7
9
  *
8
- * Copyright 2014 jQuery Foundation and other contributors
10
+ * Copyright jQuery Foundation and other contributors
9
11
  * Released under the MIT license.
10
12
  * http://jquery.org/license
11
- *
12
- * http://api.jqueryui.com/accordion/
13
- *
14
- * Depends:
15
- * jquery.ui.core.js
16
- * jquery.ui.widget.js
17
13
  */
18
- (function( $, undefined ) {
19
14
 
20
- var uid = 0,
21
- hideProps = {},
22
- showProps = {};
23
-
24
- hideProps.height = hideProps.paddingTop = hideProps.paddingBottom =
25
- hideProps.borderTopWidth = hideProps.borderBottomWidth = "hide";
26
- showProps.height = showProps.paddingTop = showProps.paddingBottom =
27
- showProps.borderTopWidth = showProps.borderBottomWidth = "show";
15
+ //>>label: Accordion
16
+ //>>group: Widgets
17
+ /* eslint-disable max-len */
18
+ //>>description: Displays collapsible content panels for presenting information in a limited amount of space.
19
+ /* eslint-enable max-len */
20
+ //>>docs: http://api.jqueryui.com/accordion/
21
+ //>>demos: http://jqueryui.com/accordion/
22
+ //>>css.structure: ../../themes/base/core.css
23
+ //>>css.structure: ../../themes/base/accordion.css
24
+ //>>css.theme: ../../themes/base/theme.css
25
+
26
+ ( function( factory ) {
27
+ "use strict";
28
+
29
+ if ( typeof define === "function" && define.amd ) {
30
+
31
+ // AMD. Register as an anonymous module.
32
+ define( [
33
+ "jquery",
34
+ "../version",
35
+ "../keycode",
36
+ "../unique-id",
37
+ "../widget"
38
+ ], factory );
39
+ } else {
40
+
41
+ // Browser globals
42
+ factory( jQuery );
43
+ }
44
+ } )( function( $ ) {
45
+ "use strict";
28
46
 
29
- $.widget( "ui.accordion", {
30
- version: "1.10.4",
47
+ return $.widget( "ui.accordion", {
48
+ version: "1.13.0",
31
49
  options: {
32
50
  active: 0,
33
51
  animate: {},
52
+ classes: {
53
+ "ui-accordion-header": "ui-corner-top",
54
+ "ui-accordion-header-collapsed": "ui-corner-all",
55
+ "ui-accordion-content": "ui-corner-bottom"
56
+ },
34
57
  collapsible: false,
35
58
  event: "click",
36
- header: "> li > :first-child,> :not(li):even",
59
+ header: function( elem ) {
60
+ return elem.find( "> li > :first-child" ).add( elem.find( "> :not(li)" ).even() );
61
+ },
37
62
  heightStyle: "auto",
38
63
  icons: {
39
64
  activeHeader: "ui-icon-triangle-1-s",
40
65
  header: "ui-icon-triangle-1-e"
41
66
  },
42
67
 
43
- // callbacks
68
+ // Callbacks
44
69
  activate: null,
45
70
  beforeActivate: null
46
71
  },
47
72
 
73
+ hideProps: {
74
+ borderTopWidth: "hide",
75
+ borderBottomWidth: "hide",
76
+ paddingTop: "hide",
77
+ paddingBottom: "hide",
78
+ height: "hide"
79
+ },
80
+
81
+ showProps: {
82
+ borderTopWidth: "show",
83
+ borderBottomWidth: "show",
84
+ paddingTop: "show",
85
+ paddingBottom: "show",
86
+ height: "show"
87
+ },
88
+
48
89
  _create: function() {
49
90
  var options = this.options;
91
+
50
92
  this.prevShow = this.prevHide = $();
51
- this.element.addClass( "ui-accordion ui-widget ui-helper-reset" )
52
- // ARIA
53
- .attr( "role", "tablist" );
93
+ this._addClass( "ui-accordion", "ui-widget ui-helper-reset" );
94
+ this.element.attr( "role", "tablist" );
54
95
 
55
- // don't allow collapsible: false and active: false / null
56
- if ( !options.collapsible && (options.active === false || options.active == null) ) {
96
+ // Don't allow collapsible: false and active: false / null
97
+ if ( !options.collapsible && ( options.active === false || options.active == null ) ) {
57
98
  options.active = 0;
58
99
  }
59
100
 
60
101
  this._processPanels();
102
+
61
103
  // handle negative values
62
104
  if ( options.active < 0 ) {
63
105
  options.active += this.headers.length;
@@ -68,66 +110,49 @@ $.widget( "ui.accordion", {
68
110
  _getCreateEventData: function() {
69
111
  return {
70
112
  header: this.active,
71
- panel: !this.active.length ? $() : this.active.next(),
72
- content: !this.active.length ? $() : this.active.next()
113
+ panel: !this.active.length ? $() : this.active.next()
73
114
  };
74
115
  },
75
116
 
76
117
  _createIcons: function() {
77
- var icons = this.options.icons;
118
+ var icon, children,
119
+ icons = this.options.icons;
120
+
78
121
  if ( icons ) {
79
- $( "<span>" )
80
- .addClass( "ui-accordion-header-icon ui-icon " + icons.header )
81
- .prependTo( this.headers );
82
- this.active.children( ".ui-accordion-header-icon" )
83
- .removeClass( icons.header )
84
- .addClass( icons.activeHeader );
85
- this.headers.addClass( "ui-accordion-icons" );
122
+ icon = $( "<span>" );
123
+ this._addClass( icon, "ui-accordion-header-icon", "ui-icon " + icons.header );
124
+ icon.prependTo( this.headers );
125
+ children = this.active.children( ".ui-accordion-header-icon" );
126
+ this._removeClass( children, icons.header )
127
+ ._addClass( children, null, icons.activeHeader )
128
+ ._addClass( this.headers, "ui-accordion-icons" );
86
129
  }
87
130
  },
88
131
 
89
132
  _destroyIcons: function() {
90
- this.headers
91
- .removeClass( "ui-accordion-icons" )
92
- .children( ".ui-accordion-header-icon" )
93
- .remove();
133
+ this._removeClass( this.headers, "ui-accordion-icons" );
134
+ this.headers.children( ".ui-accordion-header-icon" ).remove();
94
135
  },
95
136
 
96
137
  _destroy: function() {
97
138
  var contents;
98
139
 
99
- // clean up main element
100
- this.element
101
- .removeClass( "ui-accordion ui-widget ui-helper-reset" )
102
- .removeAttr( "role" );
140
+ // Clean up main element
141
+ this.element.removeAttr( "role" );
103
142
 
104
- // clean up headers
143
+ // Clean up headers
105
144
  this.headers
106
- .removeClass( "ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
107
- .removeAttr( "role" )
108
- .removeAttr( "aria-expanded" )
109
- .removeAttr( "aria-selected" )
110
- .removeAttr( "aria-controls" )
111
- .removeAttr( "tabIndex" )
112
- .each(function() {
113
- if ( /^ui-accordion/.test( this.id ) ) {
114
- this.removeAttribute( "id" );
115
- }
116
- });
145
+ .removeAttr( "role aria-expanded aria-selected aria-controls tabIndex" )
146
+ .removeUniqueId();
147
+
117
148
  this._destroyIcons();
118
149
 
119
- // clean up content panels
150
+ // Clean up content panels
120
151
  contents = this.headers.next()
121
152
  .css( "display", "" )
122
- .removeAttr( "role" )
123
- .removeAttr( "aria-hidden" )
124
- .removeAttr( "aria-labelledby" )
125
- .removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled" )
126
- .each(function() {
127
- if ( /^ui-accordion/.test( this.id ) ) {
128
- this.removeAttribute( "id" );
129
- }
130
- });
153
+ .removeAttr( "role aria-hidden aria-labelledby" )
154
+ .removeUniqueId();
155
+
131
156
  if ( this.options.heightStyle !== "content" ) {
132
157
  contents.css( "height", "" );
133
158
  }
@@ -135,6 +160,7 @@ $.widget( "ui.accordion", {
135
160
 
136
161
  _setOption: function( key, value ) {
137
162
  if ( key === "active" ) {
163
+
138
164
  // _activate() will handle invalid values and update this.options
139
165
  this._activate( value );
140
166
  return;
@@ -149,7 +175,7 @@ $.widget( "ui.accordion", {
149
175
 
150
176
  this._super( key, value );
151
177
 
152
- // setting collapsible: false while collapsed; open first panel
178
+ // Setting collapsible: false while collapsed; open first panel
153
179
  if ( key === "collapsible" && !value && this.options.active === false ) {
154
180
  this._activate( 0 );
155
181
  }
@@ -160,13 +186,19 @@ $.widget( "ui.accordion", {
160
186
  this._createIcons();
161
187
  }
162
188
  }
189
+ },
190
+
191
+ _setOptionDisabled: function( value ) {
192
+ this._super( value );
193
+
194
+ this.element.attr( "aria-disabled", value );
163
195
 
164
- // #5332 - opacity doesn't cascade to positioned elements in IE
196
+ // Support: IE8 Only
197
+ // #5332 / #6059 - opacity doesn't cascade to positioned elements in IE
165
198
  // so we need to add the disabled class to the headers and panels
166
- if ( key === "disabled" ) {
167
- this.headers.add( this.headers.next() )
168
- .toggleClass( "ui-state-disabled", !!value );
169
- }
199
+ this._toggleClass( null, "ui-state-disabled", !!value );
200
+ this._toggleClass( this.headers.add( this.headers.next() ), null, "ui-state-disabled",
201
+ !!value );
170
202
  },
171
203
 
172
204
  _keydown: function( event ) {
@@ -180,37 +212,37 @@ $.widget( "ui.accordion", {
180
212
  toFocus = false;
181
213
 
182
214
  switch ( event.keyCode ) {
183
- case keyCode.RIGHT:
184
- case keyCode.DOWN:
185
- toFocus = this.headers[ ( currentIndex + 1 ) % length ];
186
- break;
187
- case keyCode.LEFT:
188
- case keyCode.UP:
189
- toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
190
- break;
191
- case keyCode.SPACE:
192
- case keyCode.ENTER:
193
- this._eventHandler( event );
194
- break;
195
- case keyCode.HOME:
196
- toFocus = this.headers[ 0 ];
197
- break;
198
- case keyCode.END:
199
- toFocus = this.headers[ length - 1 ];
200
- break;
215
+ case keyCode.RIGHT:
216
+ case keyCode.DOWN:
217
+ toFocus = this.headers[ ( currentIndex + 1 ) % length ];
218
+ break;
219
+ case keyCode.LEFT:
220
+ case keyCode.UP:
221
+ toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
222
+ break;
223
+ case keyCode.SPACE:
224
+ case keyCode.ENTER:
225
+ this._eventHandler( event );
226
+ break;
227
+ case keyCode.HOME:
228
+ toFocus = this.headers[ 0 ];
229
+ break;
230
+ case keyCode.END:
231
+ toFocus = this.headers[ length - 1 ];
232
+ break;
201
233
  }
202
234
 
203
235
  if ( toFocus ) {
204
236
  $( event.target ).attr( "tabIndex", -1 );
205
237
  $( toFocus ).attr( "tabIndex", 0 );
206
- toFocus.focus();
238
+ $( toFocus ).trigger( "focus" );
207
239
  event.preventDefault();
208
240
  }
209
241
  },
210
242
 
211
- _panelKeyDown : function( event ) {
243
+ _panelKeyDown: function( event ) {
212
244
  if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) {
213
- $( event.currentTarget ).prev().focus();
245
+ $( event.currentTarget ).prev().trigger( "focus" );
214
246
  }
215
247
  },
216
248
 
@@ -218,25 +250,32 @@ $.widget( "ui.accordion", {
218
250
  var options = this.options;
219
251
  this._processPanels();
220
252
 
221
- // was collapsed or no panel
222
- if ( ( options.active === false && options.collapsible === true ) || !this.headers.length ) {
253
+ // Was collapsed or no panel
254
+ if ( ( options.active === false && options.collapsible === true ) ||
255
+ !this.headers.length ) {
223
256
  options.active = false;
224
257
  this.active = $();
258
+
225
259
  // active false only when collapsible is true
226
260
  } else if ( options.active === false ) {
227
261
  this._activate( 0 );
262
+
228
263
  // was active, but active panel is gone
229
264
  } else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
265
+
230
266
  // all remaining panel are disabled
231
- if ( this.headers.length === this.headers.find(".ui-state-disabled").length ) {
267
+ if ( this.headers.length === this.headers.find( ".ui-state-disabled" ).length ) {
232
268
  options.active = false;
233
269
  this.active = $();
270
+
234
271
  // activate previous panel
235
272
  } else {
236
273
  this._activate( Math.max( 0, options.active - 1 ) );
237
274
  }
275
+
238
276
  // was active, active panel still exists
239
277
  } else {
278
+
240
279
  // make sure active index is correct
241
280
  options.active = this.headers.index( this.active );
242
281
  }
@@ -247,77 +286,78 @@ $.widget( "ui.accordion", {
247
286
  },
248
287
 
249
288
  _processPanels: function() {
250
- this.headers = this.element.find( this.options.header )
251
- .addClass( "ui-accordion-header ui-helper-reset ui-state-default ui-corner-all" );
289
+ var prevHeaders = this.headers,
290
+ prevPanels = this.panels;
291
+
292
+ if ( typeof this.options.header === "function" ) {
293
+ this.headers = this.options.header( this.element );
294
+ } else {
295
+ this.headers = this.element.find( this.options.header );
296
+ }
297
+ this._addClass( this.headers, "ui-accordion-header ui-accordion-header-collapsed",
298
+ "ui-state-default" );
299
+
300
+ this.panels = this.headers.next().filter( ":not(.ui-accordion-content-active)" ).hide();
301
+ this._addClass( this.panels, "ui-accordion-content", "ui-helper-reset ui-widget-content" );
252
302
 
253
- this.headers.next()
254
- .addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" )
255
- .filter(":not(.ui-accordion-content-active)")
256
- .hide();
303
+ // Avoid memory leaks (#10056)
304
+ if ( prevPanels ) {
305
+ this._off( prevHeaders.not( this.headers ) );
306
+ this._off( prevPanels.not( this.panels ) );
307
+ }
257
308
  },
258
309
 
259
310
  _refresh: function() {
260
311
  var maxHeight,
261
312
  options = this.options,
262
313
  heightStyle = options.heightStyle,
263
- parent = this.element.parent(),
264
- accordionId = this.accordionId = "ui-accordion-" +
265
- (this.element.attr( "id" ) || ++uid);
314
+ parent = this.element.parent();
266
315
 
267
- this.active = this._findActive( options.active )
268
- .addClass( "ui-accordion-header-active ui-state-active ui-corner-top" )
269
- .removeClass( "ui-corner-all" );
270
- this.active.next()
271
- .addClass( "ui-accordion-content-active" )
272
- .show();
316
+ this.active = this._findActive( options.active );
317
+ this._addClass( this.active, "ui-accordion-header-active", "ui-state-active" )
318
+ ._removeClass( this.active, "ui-accordion-header-collapsed" );
319
+ this._addClass( this.active.next(), "ui-accordion-content-active" );
320
+ this.active.next().show();
273
321
 
274
322
  this.headers
275
323
  .attr( "role", "tab" )
276
- .each(function( i ) {
324
+ .each( function() {
277
325
  var header = $( this ),
278
- headerId = header.attr( "id" ),
326
+ headerId = header.uniqueId().attr( "id" ),
279
327
  panel = header.next(),
280
- panelId = panel.attr( "id" );
281
- if ( !headerId ) {
282
- headerId = accordionId + "-header-" + i;
283
- header.attr( "id", headerId );
284
- }
285
- if ( !panelId ) {
286
- panelId = accordionId + "-panel-" + i;
287
- panel.attr( "id", panelId );
288
- }
328
+ panelId = panel.uniqueId().attr( "id" );
289
329
  header.attr( "aria-controls", panelId );
290
330
  panel.attr( "aria-labelledby", headerId );
291
- })
331
+ } )
292
332
  .next()
293
333
  .attr( "role", "tabpanel" );
294
334
 
295
335
  this.headers
296
336
  .not( this.active )
297
- .attr({
298
- "aria-selected": "false",
299
- "aria-expanded": "false",
300
- tabIndex: -1
301
- })
302
- .next()
303
- .attr({
304
- "aria-hidden": "true"
305
- })
306
- .hide();
337
+ .attr( {
338
+ "aria-selected": "false",
339
+ "aria-expanded": "false",
340
+ tabIndex: -1
341
+ } )
342
+ .next()
343
+ .attr( {
344
+ "aria-hidden": "true"
345
+ } )
346
+ .hide();
307
347
 
308
- // make sure at least one header is in the tab order
348
+ // Make sure at least one header is in the tab order
309
349
  if ( !this.active.length ) {
310
350
  this.headers.eq( 0 ).attr( "tabIndex", 0 );
311
351
  } else {
312
- this.active.attr({
352
+ this.active.attr( {
313
353
  "aria-selected": "true",
314
354
  "aria-expanded": "true",
315
355
  tabIndex: 0
316
- })
317
- .next()
318
- .attr({
319
- "aria-hidden": "false"
320
- });
356
+ } )
357
+ .next()
358
+ .attr( {
359
+ "aria-hidden": "false"
360
+ } );
321
361
  }
322
362
 
323
363
  this._createIcons();
@@ -326,7 +366,7 @@ $.widget( "ui.accordion", {
326
366
 
327
367
  if ( heightStyle === "fill" ) {
328
368
  maxHeight = parent.height();
329
- this.element.siblings( ":visible" ).each(function() {
369
+ this.element.siblings( ":visible" ).each( function() {
330
370
  var elem = $( this ),
331
371
  position = elem.css( "position" );
332
372
 
@@ -334,24 +374,31 @@ $.widget( "ui.accordion", {
334
374
  return;
335
375
  }
336
376
  maxHeight -= elem.outerHeight( true );
337
- });
377
+ } );
338
378
 
339
- this.headers.each(function() {
379
+ this.headers.each( function() {
340
380
  maxHeight -= $( this ).outerHeight( true );
341
- });
381
+ } );
342
382
 
343
383
  this.headers.next()
344
- .each(function() {
384
+ .each( function() {
345
385
  $( this ).height( Math.max( 0, maxHeight -
346
386
  $( this ).innerHeight() + $( this ).height() ) );
347
- })
387
+ } )
348
388
  .css( "overflow", "auto" );
349
389
  } else if ( heightStyle === "auto" ) {
350
390
  maxHeight = 0;
351
391
  this.headers.next()
352
- .each(function() {
392
+ .each( function() {
393
+ var isVisible = $( this ).is( ":visible" );
394
+ if ( !isVisible ) {
395
+ $( this ).show();
396
+ }
353
397
  maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
354
- })
398
+ if ( !isVisible ) {
399
+ $( this ).hide();
400
+ }
401
+ } )
355
402
  .height( maxHeight );
356
403
  }
357
404
  },
@@ -359,19 +406,19 @@ $.widget( "ui.accordion", {
359
406
  _activate: function( index ) {
360
407
  var active = this._findActive( index )[ 0 ];
361
408
 
362
- // trying to activate the already active panel
409
+ // Trying to activate the already active panel
363
410
  if ( active === this.active[ 0 ] ) {
364
411
  return;
365
412
  }
366
413
 
367
- // trying to collapse, simulate a click on the currently active header
414
+ // Trying to collapse, simulate a click on the currently active header
368
415
  active = active || this.active[ 0 ];
369
416
 
370
- this._eventHandler({
417
+ this._eventHandler( {
371
418
  target: active,
372
419
  currentTarget: active,
373
420
  preventDefault: $.noop
374
- });
421
+ } );
375
422
  },
376
423
 
377
424
  _findActive: function( selector ) {
@@ -383,20 +430,21 @@ $.widget( "ui.accordion", {
383
430
  keydown: "_keydown"
384
431
  };
385
432
  if ( event ) {
386
- $.each( event.split(" "), function( index, eventName ) {
433
+ $.each( event.split( " " ), function( index, eventName ) {
387
434
  events[ eventName ] = "_eventHandler";
388
- });
435
+ } );
389
436
  }
390
437
 
391
438
  this._off( this.headers.add( this.headers.next() ) );
392
439
  this._on( this.headers, events );
393
- this._on( this.headers.next(), { keydown: "_panelKeyDown" });
440
+ this._on( this.headers.next(), { keydown: "_panelKeyDown" } );
394
441
  this._hoverable( this.headers );
395
442
  this._focusable( this.headers );
396
443
  },
397
444
 
398
445
  _eventHandler: function( event ) {
399
- var options = this.options,
446
+ var activeChildren, clickedChildren,
447
+ options = this.options,
400
448
  active = this.active,
401
449
  clicked = $( event.currentTarget ),
402
450
  clickedIsActive = clicked[ 0 ] === active[ 0 ],
@@ -413,8 +461,10 @@ $.widget( "ui.accordion", {
413
461
  event.preventDefault();
414
462
 
415
463
  if (
464
+
416
465
  // click on active header, but not collapsible
417
466
  ( clickedIsActive && !options.collapsible ) ||
467
+
418
468
  // allow canceling activation
419
469
  ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
420
470
  return;
@@ -422,33 +472,30 @@ $.widget( "ui.accordion", {
422
472
 
423
473
  options.active = collapsing ? false : this.headers.index( clicked );
424
474
 
425
- // when the call to ._toggle() comes after the class changes
475
+ // When the call to ._toggle() comes after the class changes
426
476
  // it causes a very odd bug in IE 8 (see #6720)
427
477
  this.active = clickedIsActive ? $() : clicked;
428
478
  this._toggle( eventData );
429
479
 
430
- // switch classes
480
+ // Switch classes
431
481
  // corner classes on the previously active header stay after the animation
432
- active.removeClass( "ui-accordion-header-active ui-state-active" );
482
+ this._removeClass( active, "ui-accordion-header-active", "ui-state-active" );
433
483
  if ( options.icons ) {
434
- active.children( ".ui-accordion-header-icon" )
435
- .removeClass( options.icons.activeHeader )
436
- .addClass( options.icons.header );
484
+ activeChildren = active.children( ".ui-accordion-header-icon" );
485
+ this._removeClass( activeChildren, null, options.icons.activeHeader )
486
+ ._addClass( activeChildren, null, options.icons.header );
437
487
  }
438
488
 
439
489
  if ( !clickedIsActive ) {
440
- clicked
441
- .removeClass( "ui-corner-all" )
442
- .addClass( "ui-accordion-header-active ui-state-active ui-corner-top" );
490
+ this._removeClass( clicked, "ui-accordion-header-collapsed" )
491
+ ._addClass( clicked, "ui-accordion-header-active", "ui-state-active" );
443
492
  if ( options.icons ) {
444
- clicked.children( ".ui-accordion-header-icon" )
445
- .removeClass( options.icons.header )
446
- .addClass( options.icons.activeHeader );
493
+ clickedChildren = clicked.children( ".ui-accordion-header-icon" );
494
+ this._removeClass( clickedChildren, null, options.icons.header )
495
+ ._addClass( clickedChildren, null, options.icons.activeHeader );
447
496
  }
448
497
 
449
- clicked
450
- .next()
451
- .addClass( "ui-accordion-content-active" );
498
+ this._addClass( clicked.next(), "ui-accordion-content-active" );
452
499
  }
453
500
  },
454
501
 
@@ -456,7 +503,7 @@ $.widget( "ui.accordion", {
456
503
  var toShow = data.newPanel,
457
504
  toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
458
505
 
459
- // handle activating a panel during the animation for another activation
506
+ // Handle activating a panel during the animation for another activation
460
507
  this.prevShow.add( this.prevHide ).stop( true, true );
461
508
  this.prevShow = toShow;
462
509
  this.prevHide = toHide;
@@ -469,39 +516,44 @@ $.widget( "ui.accordion", {
469
516
  this._toggleComplete( data );
470
517
  }
471
518
 
472
- toHide.attr({
519
+ toHide.attr( {
473
520
  "aria-hidden": "true"
474
- });
475
- toHide.prev().attr( "aria-selected", "false" );
521
+ } );
522
+ toHide.prev().attr( {
523
+ "aria-selected": "false",
524
+ "aria-expanded": "false"
525
+ } );
526
+
476
527
  // if we're switching panels, remove the old header from the tab order
477
528
  // if we're opening from collapsed state, remove the previous header from the tab order
478
529
  // if we're collapsing, then keep the collapsing header in the tab order
479
530
  if ( toShow.length && toHide.length ) {
480
- toHide.prev().attr({
531
+ toHide.prev().attr( {
481
532
  "tabIndex": -1,
482
533
  "aria-expanded": "false"
483
- });
534
+ } );
484
535
  } else if ( toShow.length ) {
485
- this.headers.filter(function() {
486
- return $( this ).attr( "tabIndex" ) === 0;
487
- })
488
- .attr( "tabIndex", -1 );
536
+ this.headers.filter( function() {
537
+ return parseInt( $( this ).attr( "tabIndex" ), 10 ) === 0;
538
+ } )
539
+ .attr( "tabIndex", -1 );
489
540
  }
490
541
 
491
542
  toShow
492
543
  .attr( "aria-hidden", "false" )
493
544
  .prev()
494
- .attr({
545
+ .attr( {
495
546
  "aria-selected": "true",
496
- tabIndex: 0,
497
- "aria-expanded": "true"
498
- });
547
+ "aria-expanded": "true",
548
+ tabIndex: 0
549
+ } );
499
550
  },
500
551
 
501
552
  _animate: function( toShow, toHide, data ) {
502
553
  var total, easing, duration,
503
554
  that = this,
504
555
  adjust = 0,
556
+ boxSizing = toShow.css( "box-sizing" ),
505
557
  down = toShow.length &&
506
558
  ( !toHide.length || ( toShow.index() < toHide.index() ) ),
507
559
  animate = this.options.animate || {},
@@ -516,58 +568,60 @@ $.widget( "ui.accordion", {
516
568
  if ( typeof options === "string" ) {
517
569
  easing = options;
518
570
  }
571
+
519
572
  // fall back from options to animation in case of partial down settings
520
573
  easing = easing || options.easing || animate.easing;
521
574
  duration = duration || options.duration || animate.duration;
522
575
 
523
576
  if ( !toHide.length ) {
524
- return toShow.animate( showProps, duration, easing, complete );
577
+ return toShow.animate( this.showProps, duration, easing, complete );
525
578
  }
526
579
  if ( !toShow.length ) {
527
- return toHide.animate( hideProps, duration, easing, complete );
580
+ return toHide.animate( this.hideProps, duration, easing, complete );
528
581
  }
529
582
 
530
583
  total = toShow.show().outerHeight();
531
- toHide.animate( hideProps, {
584
+ toHide.animate( this.hideProps, {
532
585
  duration: duration,
533
586
  easing: easing,
534
587
  step: function( now, fx ) {
535
588
  fx.now = Math.round( now );
536
589
  }
537
- });
590
+ } );
538
591
  toShow
539
592
  .hide()
540
- .animate( showProps, {
593
+ .animate( this.showProps, {
541
594
  duration: duration,
542
595
  easing: easing,
543
596
  complete: complete,
544
597
  step: function( now, fx ) {
545
598
  fx.now = Math.round( now );
546
599
  if ( fx.prop !== "height" ) {
547
- adjust += fx.now;
600
+ if ( boxSizing === "content-box" ) {
601
+ adjust += fx.now;
602
+ }
548
603
  } else if ( that.options.heightStyle !== "content" ) {
549
604
  fx.now = Math.round( total - toHide.outerHeight() - adjust );
550
605
  adjust = 0;
551
606
  }
552
607
  }
553
- });
608
+ } );
554
609
  },
555
610
 
556
611
  _toggleComplete: function( data ) {
557
- var toHide = data.oldPanel;
612
+ var toHide = data.oldPanel,
613
+ prev = toHide.prev();
558
614
 
559
- toHide
560
- .removeClass( "ui-accordion-content-active" )
561
- .prev()
562
- .removeClass( "ui-corner-top" )
563
- .addClass( "ui-corner-all" );
615
+ this._removeClass( toHide, "ui-accordion-content-active" );
616
+ this._removeClass( prev, "ui-accordion-header-active" )
617
+ ._addClass( prev, "ui-accordion-header-collapsed" );
564
618
 
565
619
  // Work around for rendering bug in IE (#5421)
566
620
  if ( toHide.length ) {
567
- toHide.parent()[0].className = toHide.parent()[0].className;
621
+ toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className;
568
622
  }
569
623
  this._trigger( "activate", null, data );
570
624
  }
571
- });
625
+ } );
572
626
 
573
- })( jQuery );
627
+ } );