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.
- checksums.yaml +7 -0
- data/.travis.yml +1 -1
- data/History.md +12 -0
- data/README.md +47 -30
- data/Rakefile +48 -27
- data/VERSIONS.md +1 -0
- data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/javascripts/jquery-ui.js +52 -33
- data/app/assets/javascripts/jquery-ui/core.js +37 -304
- data/app/assets/javascripts/jquery-ui/data.js +41 -0
- data/app/assets/javascripts/jquery-ui/disable-selection.js +48 -0
- data/app/assets/javascripts/jquery-ui/effect.all.js +15 -16
- data/app/assets/javascripts/jquery-ui/effect.js +620 -284
- data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +73 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +113 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +68 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +72 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +114 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +50 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +92 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +60 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +46 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +67 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +60 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +77 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-size.js +194 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +79 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +43 -0
- data/app/assets/javascripts/jquery-ui/escape-selector.js +23 -0
- data/app/assets/javascripts/jquery-ui/focusable.js +86 -0
- data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +80 -0
- data/app/assets/javascripts/jquery-ui/form.js +22 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +36 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +73 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +36 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +49 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +49 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +50 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +44 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +61 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +53 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +37 -0
- data/app/assets/javascripts/jquery-ui/ie.js +17 -0
- data/app/assets/javascripts/jquery-ui/jquery-1-7.js +91 -0
- data/app/assets/javascripts/jquery-ui/keycode.js +47 -0
- data/app/assets/javascripts/jquery-ui/labels.js +65 -0
- data/app/assets/javascripts/jquery-ui/plugin.js +46 -0
- data/app/assets/javascripts/jquery-ui/position.js +92 -109
- data/app/assets/javascripts/jquery-ui/safe-active-element.js +42 -0
- data/app/assets/javascripts/jquery-ui/safe-blur.js +23 -0
- data/app/assets/javascripts/jquery-ui/scroll-parent.js +47 -0
- data/app/assets/javascripts/jquery-ui/tabbable.js +38 -0
- data/app/assets/javascripts/jquery-ui/unique-id.js +51 -0
- data/app/assets/javascripts/jquery-ui/version.js +17 -0
- data/app/assets/javascripts/jquery-ui/widget.js +328 -151
- data/app/assets/javascripts/jquery-ui/{accordion.js → widgets/accordion.js} +187 -162
- data/app/assets/javascripts/jquery-ui/{autocomplete.js → widgets/autocomplete.js} +148 -92
- data/app/assets/javascripts/jquery-ui/widgets/button.js +391 -0
- data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +291 -0
- data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +300 -0
- data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2123 -0
- data/app/assets/javascripts/jquery-ui/{dialog.js → widgets/dialog.js} +229 -158
- data/app/assets/javascripts/jquery-ui/{draggable.js → widgets/draggable.js} +416 -293
- data/app/assets/javascripts/jquery-ui/{droppable.js → widgets/droppable.js} +167 -83
- data/app/assets/javascripts/jquery-ui/{menu.js → widgets/menu.js} +164 -134
- data/app/assets/javascripts/jquery-ui/widgets/mouse.js +230 -0
- data/app/assets/javascripts/jquery-ui/{progressbar.js → widgets/progressbar.js} +60 -41
- data/app/assets/javascripts/jquery-ui/{resizable.js → widgets/resizable.js} +413 -362
- data/app/assets/javascripts/jquery-ui/widgets/selectable.js +314 -0
- data/app/assets/javascripts/jquery-ui/{selectmenu.js → widgets/selectmenu.js} +253 -176
- data/app/assets/javascripts/jquery-ui/{slider.js → widgets/slider.js} +193 -157
- data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1561 -0
- data/app/assets/javascripts/jquery-ui/{spinner.js → widgets/spinner.js} +175 -112
- data/app/assets/javascripts/jquery-ui/{tabs.js → widgets/tabs.js} +237 -195
- data/app/assets/javascripts/jquery-ui/{tooltip.js → widgets/tooltip.js} +136 -87
- data/app/assets/stylesheets/jquery-ui/accordion.css +1 -15
- data/app/assets/stylesheets/jquery-ui/all.css +1 -1
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +1 -3
- data/app/assets/stylesheets/jquery-ui/base.css +3 -1
- data/app/assets/stylesheets/jquery-ui/button.css +35 -68
- data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
- data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
- data/app/assets/stylesheets/jquery-ui/core.css +11 -7
- data/app/assets/stylesheets/jquery-ui/datepicker.css +11 -2
- data/app/assets/stylesheets/jquery-ui/dialog.css +38 -11
- data/app/assets/stylesheets/jquery-ui/draggable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/menu.css +7 -7
- data/app/assets/stylesheets/jquery-ui/progressbar.css +1 -2
- data/app/assets/stylesheets/jquery-ui/resizable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/selectable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +11 -22
- data/app/assets/stylesheets/jquery-ui/slider.css +1 -2
- data/app/assets/stylesheets/jquery-ui/sortable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/spinner.css +7 -22
- data/app/assets/stylesheets/jquery-ui/tabs.css +1 -2
- data/app/assets/stylesheets/jquery-ui/theme.css.erb +113 -87
- data/app/assets/stylesheets/jquery-ui/tooltip.css +1 -4
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +150 -144
- data/app/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/javascripts/jquery-ui/button.js +0 -414
- data/app/assets/javascripts/jquery-ui/datepicker-af.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ar.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-az.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-be.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-bg.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-bs.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ca.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-cs.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-da.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-de.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-el.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-eo.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-es.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-et.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-eu.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-fa.js +0 -73
- data/app/assets/javascripts/jquery-ui/datepicker-fi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fo.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr.js +0 -39
- data/app/assets/javascripts/jquery-ui/datepicker-gl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-he.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hu.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-hy.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-id.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-is.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-it.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ja.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ka.js +0 -35
- data/app/assets/javascripts/jquery-ui/datepicker-kk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-km.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ko.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ky.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-lb.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-lt.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-lv.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-mk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ml.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ms.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nb.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nn.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-no.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pt.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-rm.js +0 -35
- data/app/assets/javascripts/jquery-ui/datepicker-ro.js +0 -40
- data/app/assets/javascripts/jquery-ui/datepicker-ru.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sl.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-sq.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sv.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ta.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-th.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-tj.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-tr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-uk.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-vi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker.js +0 -2086
- data/app/assets/javascripts/jquery-ui/effect-blind.js +0 -92
- data/app/assets/javascripts/jquery-ui/effect-bounce.js +0 -125
- data/app/assets/javascripts/jquery-ui/effect-clip.js +0 -79
- data/app/assets/javascripts/jquery-ui/effect-drop.js +0 -77
- data/app/assets/javascripts/jquery-ui/effect-explode.js +0 -109
- data/app/assets/javascripts/jquery-ui/effect-fade.js +0 -42
- data/app/assets/javascripts/jquery-ui/effect-fold.js +0 -88
- data/app/assets/javascripts/jquery-ui/effect-highlight.js +0 -62
- data/app/assets/javascripts/jquery-ui/effect-puff.js +0 -63
- data/app/assets/javascripts/jquery-ui/effect-pulsate.js +0 -75
- data/app/assets/javascripts/jquery-ui/effect-scale.js +0 -92
- data/app/assets/javascripts/jquery-ui/effect-shake.js +0 -86
- data/app/assets/javascripts/jquery-ui/effect-size.js +0 -235
- data/app/assets/javascripts/jquery-ui/effect-slide.js +0 -76
- data/app/assets/javascripts/jquery-ui/effect-transfer.js +0 -59
- data/app/assets/javascripts/jquery-ui/mouse.js +0 -202
- data/app/assets/javascripts/jquery-ui/selectable.js +0 -291
- data/app/assets/javascripts/jquery-ui/sortable.js +0 -1319
@@ -1,47 +1,66 @@
|
|
1
|
-
//= require jquery-ui/
|
1
|
+
//= require jquery-ui/version
|
2
|
+
//= require jquery-ui/keycode
|
3
|
+
//= require jquery-ui/unique-id
|
2
4
|
//= require jquery-ui/widget
|
3
5
|
|
4
6
|
/*!
|
5
|
-
* jQuery UI Accordion 1.
|
7
|
+
* jQuery UI Accordion 1.12.1
|
6
8
|
* http://jqueryui.com
|
7
9
|
*
|
8
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
13
|
*/
|
14
|
-
|
14
|
+
|
15
|
+
//>>label: Accordion
|
16
|
+
//>>group: Widgets
|
17
|
+
// jscs:disable maximumLineLength
|
18
|
+
//>>description: Displays collapsible content panels for presenting information in a limited amount of space.
|
19
|
+
// jscs:enable maximumLineLength
|
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 ) {
|
15
27
|
if ( typeof define === "function" && define.amd ) {
|
16
28
|
|
17
29
|
// AMD. Register as an anonymous module.
|
18
|
-
define([
|
30
|
+
define( [
|
19
31
|
"jquery",
|
20
|
-
"
|
21
|
-
"
|
32
|
+
"../version",
|
33
|
+
"../keycode",
|
34
|
+
"../unique-id",
|
35
|
+
"../widget"
|
22
36
|
], factory );
|
23
37
|
} else {
|
24
38
|
|
25
39
|
// Browser globals
|
26
40
|
factory( jQuery );
|
27
41
|
}
|
28
|
-
}(function( $ ) {
|
42
|
+
}( function( $ ) {
|
29
43
|
|
30
44
|
return $.widget( "ui.accordion", {
|
31
|
-
version: "1.
|
45
|
+
version: "1.12.1",
|
32
46
|
options: {
|
33
47
|
active: 0,
|
34
48
|
animate: {},
|
49
|
+
classes: {
|
50
|
+
"ui-accordion-header": "ui-corner-top",
|
51
|
+
"ui-accordion-header-collapsed": "ui-corner-all",
|
52
|
+
"ui-accordion-content": "ui-corner-bottom"
|
53
|
+
},
|
35
54
|
collapsible: false,
|
36
55
|
event: "click",
|
37
|
-
header: "> li > :first-child
|
56
|
+
header: "> li > :first-child, > :not(li):even",
|
38
57
|
heightStyle: "auto",
|
39
58
|
icons: {
|
40
59
|
activeHeader: "ui-icon-triangle-1-s",
|
41
60
|
header: "ui-icon-triangle-1-e"
|
42
61
|
},
|
43
62
|
|
44
|
-
//
|
63
|
+
// Callbacks
|
45
64
|
activate: null,
|
46
65
|
beforeActivate: null
|
47
66
|
},
|
@@ -64,17 +83,18 @@ return $.widget( "ui.accordion", {
|
|
64
83
|
|
65
84
|
_create: function() {
|
66
85
|
var options = this.options;
|
86
|
+
|
67
87
|
this.prevShow = this.prevHide = $();
|
68
|
-
this.
|
69
|
-
|
70
|
-
.attr( "role", "tablist" );
|
88
|
+
this._addClass( "ui-accordion", "ui-widget ui-helper-reset" );
|
89
|
+
this.element.attr( "role", "tablist" );
|
71
90
|
|
72
|
-
//
|
73
|
-
if ( !options.collapsible && (options.active === false || options.active == null) ) {
|
91
|
+
// Don't allow collapsible: false and active: false / null
|
92
|
+
if ( !options.collapsible && ( options.active === false || options.active == null ) ) {
|
74
93
|
options.active = 0;
|
75
94
|
}
|
76
95
|
|
77
96
|
this._processPanels();
|
97
|
+
|
78
98
|
// handle negative values
|
79
99
|
if ( options.active < 0 ) {
|
80
100
|
options.active += this.headers.length;
|
@@ -90,54 +110,42 @@ return $.widget( "ui.accordion", {
|
|
90
110
|
},
|
91
111
|
|
92
112
|
_createIcons: function() {
|
93
|
-
var
|
113
|
+
var icon, children,
|
114
|
+
icons = this.options.icons;
|
115
|
+
|
94
116
|
if ( icons ) {
|
95
|
-
$( "<span>" )
|
96
|
-
|
97
|
-
|
98
|
-
this.active.children( ".ui-accordion-header-icon" )
|
99
|
-
|
100
|
-
.
|
101
|
-
|
117
|
+
icon = $( "<span>" );
|
118
|
+
this._addClass( icon, "ui-accordion-header-icon", "ui-icon " + icons.header );
|
119
|
+
icon.prependTo( this.headers );
|
120
|
+
children = this.active.children( ".ui-accordion-header-icon" );
|
121
|
+
this._removeClass( children, icons.header )
|
122
|
+
._addClass( children, null, icons.activeHeader )
|
123
|
+
._addClass( this.headers, "ui-accordion-icons" );
|
102
124
|
}
|
103
125
|
},
|
104
126
|
|
105
127
|
_destroyIcons: function() {
|
106
|
-
this.headers
|
107
|
-
|
108
|
-
.children( ".ui-accordion-header-icon" )
|
109
|
-
.remove();
|
128
|
+
this._removeClass( this.headers, "ui-accordion-icons" );
|
129
|
+
this.headers.children( ".ui-accordion-header-icon" ).remove();
|
110
130
|
},
|
111
131
|
|
112
132
|
_destroy: function() {
|
113
133
|
var contents;
|
114
134
|
|
115
|
-
//
|
116
|
-
this.element
|
117
|
-
.removeClass( "ui-accordion ui-widget ui-helper-reset" )
|
118
|
-
.removeAttr( "role" );
|
135
|
+
// Clean up main element
|
136
|
+
this.element.removeAttr( "role" );
|
119
137
|
|
120
|
-
//
|
138
|
+
// Clean up headers
|
121
139
|
this.headers
|
122
|
-
.
|
123
|
-
"ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
|
124
|
-
.removeAttr( "role" )
|
125
|
-
.removeAttr( "aria-expanded" )
|
126
|
-
.removeAttr( "aria-selected" )
|
127
|
-
.removeAttr( "aria-controls" )
|
128
|
-
.removeAttr( "tabIndex" )
|
140
|
+
.removeAttr( "role aria-expanded aria-selected aria-controls tabIndex" )
|
129
141
|
.removeUniqueId();
|
130
142
|
|
131
143
|
this._destroyIcons();
|
132
144
|
|
133
|
-
//
|
145
|
+
// Clean up content panels
|
134
146
|
contents = this.headers.next()
|
135
|
-
.removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom " +
|
136
|
-
"ui-accordion-content ui-accordion-content-active ui-state-disabled" )
|
137
147
|
.css( "display", "" )
|
138
|
-
.removeAttr( "role" )
|
139
|
-
.removeAttr( "aria-hidden" )
|
140
|
-
.removeAttr( "aria-labelledby" )
|
148
|
+
.removeAttr( "role aria-hidden aria-labelledby" )
|
141
149
|
.removeUniqueId();
|
142
150
|
|
143
151
|
if ( this.options.heightStyle !== "content" ) {
|
@@ -147,6 +155,7 @@ return $.widget( "ui.accordion", {
|
|
147
155
|
|
148
156
|
_setOption: function( key, value ) {
|
149
157
|
if ( key === "active" ) {
|
158
|
+
|
150
159
|
// _activate() will handle invalid values and update this.options
|
151
160
|
this._activate( value );
|
152
161
|
return;
|
@@ -161,7 +170,7 @@ return $.widget( "ui.accordion", {
|
|
161
170
|
|
162
171
|
this._super( key, value );
|
163
172
|
|
164
|
-
//
|
173
|
+
// Setting collapsible: false while collapsed; open first panel
|
165
174
|
if ( key === "collapsible" && !value && this.options.active === false ) {
|
166
175
|
this._activate( 0 );
|
167
176
|
}
|
@@ -172,16 +181,19 @@ return $.widget( "ui.accordion", {
|
|
172
181
|
this._createIcons();
|
173
182
|
}
|
174
183
|
}
|
184
|
+
},
|
185
|
+
|
186
|
+
_setOptionDisabled: function( value ) {
|
187
|
+
this._super( value );
|
175
188
|
|
176
|
-
|
189
|
+
this.element.attr( "aria-disabled", value );
|
190
|
+
|
191
|
+
// Support: IE8 Only
|
192
|
+
// #5332 / #6059 - opacity doesn't cascade to positioned elements in IE
|
177
193
|
// so we need to add the disabled class to the headers and panels
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
.attr( "aria-disabled", value );
|
182
|
-
this.headers.add( this.headers.next() )
|
183
|
-
.toggleClass( "ui-state-disabled", !!value );
|
184
|
-
}
|
194
|
+
this._toggleClass( null, "ui-state-disabled", !!value );
|
195
|
+
this._toggleClass( this.headers.add( this.headers.next() ), null, "ui-state-disabled",
|
196
|
+
!!value );
|
185
197
|
},
|
186
198
|
|
187
199
|
_keydown: function( event ) {
|
@@ -195,37 +207,37 @@ return $.widget( "ui.accordion", {
|
|
195
207
|
toFocus = false;
|
196
208
|
|
197
209
|
switch ( event.keyCode ) {
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
210
|
+
case keyCode.RIGHT:
|
211
|
+
case keyCode.DOWN:
|
212
|
+
toFocus = this.headers[ ( currentIndex + 1 ) % length ];
|
213
|
+
break;
|
214
|
+
case keyCode.LEFT:
|
215
|
+
case keyCode.UP:
|
216
|
+
toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
|
217
|
+
break;
|
218
|
+
case keyCode.SPACE:
|
219
|
+
case keyCode.ENTER:
|
220
|
+
this._eventHandler( event );
|
221
|
+
break;
|
222
|
+
case keyCode.HOME:
|
223
|
+
toFocus = this.headers[ 0 ];
|
224
|
+
break;
|
225
|
+
case keyCode.END:
|
226
|
+
toFocus = this.headers[ length - 1 ];
|
227
|
+
break;
|
216
228
|
}
|
217
229
|
|
218
230
|
if ( toFocus ) {
|
219
231
|
$( event.target ).attr( "tabIndex", -1 );
|
220
232
|
$( toFocus ).attr( "tabIndex", 0 );
|
221
|
-
toFocus.focus
|
233
|
+
$( toFocus ).trigger( "focus" );
|
222
234
|
event.preventDefault();
|
223
235
|
}
|
224
236
|
},
|
225
237
|
|
226
238
|
_panelKeyDown: function( event ) {
|
227
239
|
if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) {
|
228
|
-
$( event.currentTarget ).prev().focus
|
240
|
+
$( event.currentTarget ).prev().trigger( "focus" );
|
229
241
|
}
|
230
242
|
},
|
231
243
|
|
@@ -233,25 +245,32 @@ return $.widget( "ui.accordion", {
|
|
233
245
|
var options = this.options;
|
234
246
|
this._processPanels();
|
235
247
|
|
236
|
-
//
|
237
|
-
if ( ( options.active === false && options.collapsible === true ) ||
|
248
|
+
// Was collapsed or no panel
|
249
|
+
if ( ( options.active === false && options.collapsible === true ) ||
|
250
|
+
!this.headers.length ) {
|
238
251
|
options.active = false;
|
239
252
|
this.active = $();
|
253
|
+
|
240
254
|
// active false only when collapsible is true
|
241
255
|
} else if ( options.active === false ) {
|
242
256
|
this._activate( 0 );
|
257
|
+
|
243
258
|
// was active, but active panel is gone
|
244
259
|
} else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
|
260
|
+
|
245
261
|
// all remaining panel are disabled
|
246
|
-
if ( this.headers.length === this.headers.find(".ui-state-disabled").length ) {
|
262
|
+
if ( this.headers.length === this.headers.find( ".ui-state-disabled" ).length ) {
|
247
263
|
options.active = false;
|
248
264
|
this.active = $();
|
265
|
+
|
249
266
|
// activate previous panel
|
250
267
|
} else {
|
251
268
|
this._activate( Math.max( 0, options.active - 1 ) );
|
252
269
|
}
|
270
|
+
|
253
271
|
// was active, active panel still exists
|
254
272
|
} else {
|
273
|
+
|
255
274
|
// make sure active index is correct
|
256
275
|
options.active = this.headers.index( this.active );
|
257
276
|
}
|
@@ -265,13 +284,12 @@ return $.widget( "ui.accordion", {
|
|
265
284
|
var prevHeaders = this.headers,
|
266
285
|
prevPanels = this.panels;
|
267
286
|
|
268
|
-
this.headers = this.element.find( this.options.header )
|
269
|
-
|
287
|
+
this.headers = this.element.find( this.options.header );
|
288
|
+
this._addClass( this.headers, "ui-accordion-header ui-accordion-header-collapsed",
|
289
|
+
"ui-state-default" );
|
270
290
|
|
271
|
-
this.panels = this.headers.next()
|
272
|
-
|
273
|
-
.filter( ":not(.ui-accordion-content-active)" )
|
274
|
-
.hide();
|
291
|
+
this.panels = this.headers.next().filter( ":not(.ui-accordion-content-active)" ).hide();
|
292
|
+
this._addClass( this.panels, "ui-accordion-content", "ui-helper-reset ui-widget-content" );
|
275
293
|
|
276
294
|
// Avoid memory leaks (#10056)
|
277
295
|
if ( prevPanels ) {
|
@@ -286,52 +304,51 @@ return $.widget( "ui.accordion", {
|
|
286
304
|
heightStyle = options.heightStyle,
|
287
305
|
parent = this.element.parent();
|
288
306
|
|
289
|
-
this.active = this._findActive( options.active )
|
290
|
-
|
291
|
-
.
|
292
|
-
this.active.next()
|
293
|
-
|
294
|
-
.show();
|
307
|
+
this.active = this._findActive( options.active );
|
308
|
+
this._addClass( this.active, "ui-accordion-header-active", "ui-state-active" )
|
309
|
+
._removeClass( this.active, "ui-accordion-header-collapsed" );
|
310
|
+
this._addClass( this.active.next(), "ui-accordion-content-active" );
|
311
|
+
this.active.next().show();
|
295
312
|
|
296
313
|
this.headers
|
297
314
|
.attr( "role", "tab" )
|
298
|
-
.each(function() {
|
315
|
+
.each( function() {
|
299
316
|
var header = $( this ),
|
300
317
|
headerId = header.uniqueId().attr( "id" ),
|
301
318
|
panel = header.next(),
|
302
319
|
panelId = panel.uniqueId().attr( "id" );
|
303
320
|
header.attr( "aria-controls", panelId );
|
304
321
|
panel.attr( "aria-labelledby", headerId );
|
305
|
-
})
|
322
|
+
} )
|
306
323
|
.next()
|
307
324
|
.attr( "role", "tabpanel" );
|
308
325
|
|
309
326
|
this.headers
|
310
327
|
.not( this.active )
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
328
|
+
.attr( {
|
329
|
+
"aria-selected": "false",
|
330
|
+
"aria-expanded": "false",
|
331
|
+
tabIndex: -1
|
332
|
+
} )
|
333
|
+
.next()
|
334
|
+
.attr( {
|
335
|
+
"aria-hidden": "true"
|
336
|
+
} )
|
337
|
+
.hide();
|
321
338
|
|
322
|
-
//
|
339
|
+
// Make sure at least one header is in the tab order
|
323
340
|
if ( !this.active.length ) {
|
324
341
|
this.headers.eq( 0 ).attr( "tabIndex", 0 );
|
325
342
|
} else {
|
326
|
-
this.active.attr({
|
343
|
+
this.active.attr( {
|
327
344
|
"aria-selected": "true",
|
328
345
|
"aria-expanded": "true",
|
329
346
|
tabIndex: 0
|
330
|
-
})
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
347
|
+
} )
|
348
|
+
.next()
|
349
|
+
.attr( {
|
350
|
+
"aria-hidden": "false"
|
351
|
+
} );
|
335
352
|
}
|
336
353
|
|
337
354
|
this._createIcons();
|
@@ -340,7 +357,7 @@ return $.widget( "ui.accordion", {
|
|
340
357
|
|
341
358
|
if ( heightStyle === "fill" ) {
|
342
359
|
maxHeight = parent.height();
|
343
|
-
this.element.siblings( ":visible" ).each(function() {
|
360
|
+
this.element.siblings( ":visible" ).each( function() {
|
344
361
|
var elem = $( this ),
|
345
362
|
position = elem.css( "position" );
|
346
363
|
|
@@ -348,24 +365,31 @@ return $.widget( "ui.accordion", {
|
|
348
365
|
return;
|
349
366
|
}
|
350
367
|
maxHeight -= elem.outerHeight( true );
|
351
|
-
});
|
368
|
+
} );
|
352
369
|
|
353
|
-
this.headers.each(function() {
|
370
|
+
this.headers.each( function() {
|
354
371
|
maxHeight -= $( this ).outerHeight( true );
|
355
|
-
});
|
372
|
+
} );
|
356
373
|
|
357
374
|
this.headers.next()
|
358
|
-
.each(function() {
|
375
|
+
.each( function() {
|
359
376
|
$( this ).height( Math.max( 0, maxHeight -
|
360
377
|
$( this ).innerHeight() + $( this ).height() ) );
|
361
|
-
})
|
378
|
+
} )
|
362
379
|
.css( "overflow", "auto" );
|
363
380
|
} else if ( heightStyle === "auto" ) {
|
364
381
|
maxHeight = 0;
|
365
382
|
this.headers.next()
|
366
|
-
.each(function() {
|
383
|
+
.each( function() {
|
384
|
+
var isVisible = $( this ).is( ":visible" );
|
385
|
+
if ( !isVisible ) {
|
386
|
+
$( this ).show();
|
387
|
+
}
|
367
388
|
maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
|
368
|
-
|
389
|
+
if ( !isVisible ) {
|
390
|
+
$( this ).hide();
|
391
|
+
}
|
392
|
+
} )
|
369
393
|
.height( maxHeight );
|
370
394
|
}
|
371
395
|
},
|
@@ -373,19 +397,19 @@ return $.widget( "ui.accordion", {
|
|
373
397
|
_activate: function( index ) {
|
374
398
|
var active = this._findActive( index )[ 0 ];
|
375
399
|
|
376
|
-
//
|
400
|
+
// Trying to activate the already active panel
|
377
401
|
if ( active === this.active[ 0 ] ) {
|
378
402
|
return;
|
379
403
|
}
|
380
404
|
|
381
|
-
//
|
405
|
+
// Trying to collapse, simulate a click on the currently active header
|
382
406
|
active = active || this.active[ 0 ];
|
383
407
|
|
384
|
-
this._eventHandler({
|
408
|
+
this._eventHandler( {
|
385
409
|
target: active,
|
386
410
|
currentTarget: active,
|
387
411
|
preventDefault: $.noop
|
388
|
-
});
|
412
|
+
} );
|
389
413
|
},
|
390
414
|
|
391
415
|
_findActive: function( selector ) {
|
@@ -399,18 +423,19 @@ return $.widget( "ui.accordion", {
|
|
399
423
|
if ( event ) {
|
400
424
|
$.each( event.split( " " ), function( index, eventName ) {
|
401
425
|
events[ eventName ] = "_eventHandler";
|
402
|
-
});
|
426
|
+
} );
|
403
427
|
}
|
404
428
|
|
405
429
|
this._off( this.headers.add( this.headers.next() ) );
|
406
430
|
this._on( this.headers, events );
|
407
|
-
this._on( this.headers.next(), { keydown: "_panelKeyDown" });
|
431
|
+
this._on( this.headers.next(), { keydown: "_panelKeyDown" } );
|
408
432
|
this._hoverable( this.headers );
|
409
433
|
this._focusable( this.headers );
|
410
434
|
},
|
411
435
|
|
412
436
|
_eventHandler: function( event ) {
|
413
|
-
var
|
437
|
+
var activeChildren, clickedChildren,
|
438
|
+
options = this.options,
|
414
439
|
active = this.active,
|
415
440
|
clicked = $( event.currentTarget ),
|
416
441
|
clickedIsActive = clicked[ 0 ] === active[ 0 ],
|
@@ -427,8 +452,10 @@ return $.widget( "ui.accordion", {
|
|
427
452
|
event.preventDefault();
|
428
453
|
|
429
454
|
if (
|
455
|
+
|
430
456
|
// click on active header, but not collapsible
|
431
457
|
( clickedIsActive && !options.collapsible ) ||
|
458
|
+
|
432
459
|
// allow canceling activation
|
433
460
|
( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
|
434
461
|
return;
|
@@ -436,33 +463,30 @@ return $.widget( "ui.accordion", {
|
|
436
463
|
|
437
464
|
options.active = collapsing ? false : this.headers.index( clicked );
|
438
465
|
|
439
|
-
//
|
466
|
+
// When the call to ._toggle() comes after the class changes
|
440
467
|
// it causes a very odd bug in IE 8 (see #6720)
|
441
468
|
this.active = clickedIsActive ? $() : clicked;
|
442
469
|
this._toggle( eventData );
|
443
470
|
|
444
|
-
//
|
471
|
+
// Switch classes
|
445
472
|
// corner classes on the previously active header stay after the animation
|
446
|
-
|
473
|
+
this._removeClass( active, "ui-accordion-header-active", "ui-state-active" );
|
447
474
|
if ( options.icons ) {
|
448
|
-
active.children( ".ui-accordion-header-icon" )
|
449
|
-
|
450
|
-
.
|
475
|
+
activeChildren = active.children( ".ui-accordion-header-icon" );
|
476
|
+
this._removeClass( activeChildren, null, options.icons.activeHeader )
|
477
|
+
._addClass( activeChildren, null, options.icons.header );
|
451
478
|
}
|
452
479
|
|
453
480
|
if ( !clickedIsActive ) {
|
454
|
-
clicked
|
455
|
-
.
|
456
|
-
.addClass( "ui-accordion-header-active ui-state-active ui-corner-top" );
|
481
|
+
this._removeClass( clicked, "ui-accordion-header-collapsed" )
|
482
|
+
._addClass( clicked, "ui-accordion-header-active", "ui-state-active" );
|
457
483
|
if ( options.icons ) {
|
458
|
-
clicked.children( ".ui-accordion-header-icon" )
|
459
|
-
|
460
|
-
.
|
484
|
+
clickedChildren = clicked.children( ".ui-accordion-header-icon" );
|
485
|
+
this._removeClass( clickedChildren, null, options.icons.header )
|
486
|
+
._addClass( clickedChildren, null, options.icons.activeHeader );
|
461
487
|
}
|
462
488
|
|
463
|
-
clicked
|
464
|
-
.next()
|
465
|
-
.addClass( "ui-accordion-content-active" );
|
489
|
+
this._addClass( clicked.next(), "ui-accordion-content-active" );
|
466
490
|
}
|
467
491
|
},
|
468
492
|
|
@@ -470,7 +494,7 @@ return $.widget( "ui.accordion", {
|
|
470
494
|
var toShow = data.newPanel,
|
471
495
|
toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
|
472
496
|
|
473
|
-
//
|
497
|
+
// Handle activating a panel during the animation for another activation
|
474
498
|
this.prevShow.add( this.prevHide ).stop( true, true );
|
475
499
|
this.prevShow = toShow;
|
476
500
|
this.prevHide = toHide;
|
@@ -483,36 +507,37 @@ return $.widget( "ui.accordion", {
|
|
483
507
|
this._toggleComplete( data );
|
484
508
|
}
|
485
509
|
|
486
|
-
toHide.attr({
|
510
|
+
toHide.attr( {
|
487
511
|
"aria-hidden": "true"
|
488
|
-
});
|
489
|
-
toHide.prev().attr({
|
512
|
+
} );
|
513
|
+
toHide.prev().attr( {
|
490
514
|
"aria-selected": "false",
|
491
515
|
"aria-expanded": "false"
|
492
|
-
});
|
516
|
+
} );
|
517
|
+
|
493
518
|
// if we're switching panels, remove the old header from the tab order
|
494
519
|
// if we're opening from collapsed state, remove the previous header from the tab order
|
495
520
|
// if we're collapsing, then keep the collapsing header in the tab order
|
496
521
|
if ( toShow.length && toHide.length ) {
|
497
|
-
toHide.prev().attr({
|
522
|
+
toHide.prev().attr( {
|
498
523
|
"tabIndex": -1,
|
499
524
|
"aria-expanded": "false"
|
500
|
-
});
|
525
|
+
} );
|
501
526
|
} else if ( toShow.length ) {
|
502
|
-
this.headers.filter(function() {
|
527
|
+
this.headers.filter( function() {
|
503
528
|
return parseInt( $( this ).attr( "tabIndex" ), 10 ) === 0;
|
504
|
-
})
|
505
|
-
|
529
|
+
} )
|
530
|
+
.attr( "tabIndex", -1 );
|
506
531
|
}
|
507
532
|
|
508
533
|
toShow
|
509
534
|
.attr( "aria-hidden", "false" )
|
510
535
|
.prev()
|
511
|
-
.attr({
|
536
|
+
.attr( {
|
512
537
|
"aria-selected": "true",
|
513
538
|
"aria-expanded": "true",
|
514
539
|
tabIndex: 0
|
515
|
-
});
|
540
|
+
} );
|
516
541
|
},
|
517
542
|
|
518
543
|
_animate: function( toShow, toHide, data ) {
|
@@ -534,6 +559,7 @@ return $.widget( "ui.accordion", {
|
|
534
559
|
if ( typeof options === "string" ) {
|
535
560
|
easing = options;
|
536
561
|
}
|
562
|
+
|
537
563
|
// fall back from options to animation in case of partial down settings
|
538
564
|
easing = easing || options.easing || animate.easing;
|
539
565
|
duration = duration || options.duration || animate.duration;
|
@@ -552,7 +578,7 @@ return $.widget( "ui.accordion", {
|
|
552
578
|
step: function( now, fx ) {
|
553
579
|
fx.now = Math.round( now );
|
554
580
|
}
|
555
|
-
});
|
581
|
+
} );
|
556
582
|
toShow
|
557
583
|
.hide()
|
558
584
|
.animate( this.showProps, {
|
@@ -570,17 +596,16 @@ return $.widget( "ui.accordion", {
|
|
570
596
|
adjust = 0;
|
571
597
|
}
|
572
598
|
}
|
573
|
-
});
|
599
|
+
} );
|
574
600
|
},
|
575
601
|
|
576
602
|
_toggleComplete: function( data ) {
|
577
|
-
var toHide = data.oldPanel
|
603
|
+
var toHide = data.oldPanel,
|
604
|
+
prev = toHide.prev();
|
578
605
|
|
579
|
-
toHide
|
580
|
-
|
581
|
-
.prev
|
582
|
-
.removeClass( "ui-corner-top" )
|
583
|
-
.addClass( "ui-corner-all" );
|
606
|
+
this._removeClass( toHide, "ui-accordion-content-active" );
|
607
|
+
this._removeClass( prev, "ui-accordion-header-active" )
|
608
|
+
._addClass( prev, "ui-accordion-header-collapsed" );
|
584
609
|
|
585
610
|
// Work around for rendering bug in IE (#5421)
|
586
611
|
if ( toHide.length ) {
|
@@ -588,6 +613,6 @@ return $.widget( "ui.accordion", {
|
|
588
613
|
}
|
589
614
|
this._trigger( "activate", null, data );
|
590
615
|
}
|
591
|
-
});
|
616
|
+
} );
|
592
617
|
|
593
|
-
}));
|
618
|
+
} ) );
|