jquery-ui-rails 5.0.4 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitmodules +1 -1
- data/.travis.yml +1 -1
- data/History.md +23 -2
- data/README.md +67 -50
- data/Rakefile +58 -29
- data/VERSIONS.md +4 -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/core.js +15 -304
- data/app/assets/javascripts/jquery-ui/data.js +45 -0
- data/app/assets/javascripts/jquery-ui/disable-selection.js +51 -0
- data/app/assets/javascripts/jquery-ui/effect.all.js +15 -16
- data/app/assets/javascripts/jquery-ui/effect.js +565 -891
- data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +76 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +116 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +71 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +75 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +117 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +53 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +95 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +63 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +49 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +70 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +63 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +80 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-size.js +199 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +82 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +46 -0
- data/app/assets/javascripts/jquery-ui/focusable.js +89 -0
- data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +83 -0
- data/app/assets/javascripts/jquery-ui/form.js +25 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +76 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +51 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +52 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +52 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +53 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +47 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +64 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +43 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +56 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +40 -0
- data/app/assets/javascripts/jquery-ui/ie.js +20 -0
- data/app/assets/javascripts/jquery-ui/jquery-patch.js +91 -0
- data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
- data/app/assets/javascripts/jquery-ui/keycode.js +51 -0
- data/app/assets/javascripts/jquery-ui/labels.js +71 -0
- data/app/assets/javascripts/jquery-ui/plugin.js +49 -0
- data/app/assets/javascripts/jquery-ui/position.js +107 -111
- data/app/assets/javascripts/jquery-ui/safe-active-element.js +46 -0
- data/app/assets/javascripts/jquery-ui/safe-blur.js +27 -0
- data/app/assets/javascripts/jquery-ui/scroll-parent.js +50 -0
- data/app/assets/javascripts/jquery-ui/tabbable.js +41 -0
- data/app/assets/javascripts/jquery-ui/unique-id.js +54 -0
- data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +722 -0
- data/app/assets/javascripts/jquery-ui/version.js +20 -0
- data/app/assets/javascripts/jquery-ui/widget.js +359 -163
- data/app/assets/javascripts/jquery-ui/{accordion.js → widgets/accordion.js} +200 -163
- data/app/assets/javascripts/jquery-ui/{autocomplete.js → widgets/autocomplete.js} +153 -106
- data/app/assets/javascripts/jquery-ui/widgets/button.js +454 -0
- data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +289 -0
- data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +304 -0
- data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2243 -0
- data/app/assets/javascripts/jquery-ui/{dialog.js → widgets/dialog.js} +267 -181
- data/app/assets/javascripts/jquery-ui/{draggable.js → widgets/draggable.js} +430 -294
- data/app/assets/javascripts/jquery-ui/{droppable.js → widgets/droppable.js} +174 -84
- data/app/assets/javascripts/jquery-ui/{menu.js → widgets/menu.js} +228 -158
- data/app/assets/javascripts/jquery-ui/widgets/mouse.js +241 -0
- data/app/assets/javascripts/jquery-ui/{progressbar.js → widgets/progressbar.js} +63 -41
- data/app/assets/javascripts/jquery-ui/widgets/resizable.js +1225 -0
- data/app/assets/javascripts/jquery-ui/widgets/selectable.js +321 -0
- data/app/assets/javascripts/jquery-ui/{selectmenu.js → widgets/selectmenu.js} +259 -177
- data/app/assets/javascripts/jquery-ui/{slider.js → widgets/slider.js} +199 -160
- data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1623 -0
- data/app/assets/javascripts/jquery-ui/{spinner.js → widgets/spinner.js} +184 -114
- data/app/assets/javascripts/jquery-ui/{tabs.js → widgets/tabs.js} +258 -211
- data/app/assets/javascripts/jquery-ui/{tooltip.js → widgets/tooltip.js} +165 -100
- data/app/assets/javascripts/jquery-ui.js +53 -33
- 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 +12 -8
- 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 +2 -3
- 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 +2 -3
- 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 +121 -92
- data/app/assets/stylesheets/jquery-ui/tooltip.css +1 -4
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +153 -146
- 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/resizable.js +0 -1183
- data/app/assets/javascripts/jquery-ui/selectable.js +0 -291
- data/app/assets/javascripts/jquery-ui/sortable.js +0 -1308
@@ -1,38 +1,53 @@
|
|
1
|
-
//= require jquery-ui/
|
2
|
-
//= require jquery-ui/
|
3
|
-
//= require jquery-ui/menu
|
1
|
+
//= require jquery-ui/widgets/menu
|
2
|
+
//= require jquery-ui/keycode
|
4
3
|
//= require jquery-ui/position
|
4
|
+
//= require jquery-ui/safe-active-element
|
5
|
+
//= require jquery-ui/version
|
6
|
+
//= require jquery-ui/widget
|
5
7
|
|
6
8
|
/*!
|
7
|
-
* jQuery UI Autocomplete 1.
|
9
|
+
* jQuery UI Autocomplete 1.13.0
|
8
10
|
* http://jqueryui.com
|
9
11
|
*
|
10
12
|
* Copyright jQuery Foundation and other contributors
|
11
13
|
* Released under the MIT license.
|
12
14
|
* http://jquery.org/license
|
13
|
-
*
|
14
|
-
* http://api.jqueryui.com/autocomplete/
|
15
15
|
*/
|
16
|
-
|
16
|
+
|
17
|
+
//>>label: Autocomplete
|
18
|
+
//>>group: Widgets
|
19
|
+
//>>description: Lists suggested words as the user is typing.
|
20
|
+
//>>docs: http://api.jqueryui.com/autocomplete/
|
21
|
+
//>>demos: http://jqueryui.com/autocomplete/
|
22
|
+
//>>css.structure: ../../themes/base/core.css
|
23
|
+
//>>css.structure: ../../themes/base/autocomplete.css
|
24
|
+
//>>css.theme: ../../themes/base/theme.css
|
25
|
+
|
26
|
+
( function( factory ) {
|
27
|
+
"use strict";
|
28
|
+
|
17
29
|
if ( typeof define === "function" && define.amd ) {
|
18
30
|
|
19
31
|
// AMD. Register as an anonymous module.
|
20
|
-
define([
|
32
|
+
define( [
|
21
33
|
"jquery",
|
22
|
-
"./
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"
|
34
|
+
"./menu",
|
35
|
+
"../keycode",
|
36
|
+
"../position",
|
37
|
+
"../safe-active-element",
|
38
|
+
"../version",
|
39
|
+
"../widget"
|
26
40
|
], factory );
|
27
41
|
} else {
|
28
42
|
|
29
43
|
// Browser globals
|
30
44
|
factory( jQuery );
|
31
45
|
}
|
32
|
-
}(function( $ ) {
|
46
|
+
} )( function( $ ) {
|
47
|
+
"use strict";
|
33
48
|
|
34
49
|
$.widget( "ui.autocomplete", {
|
35
|
-
version: "1.
|
50
|
+
version: "1.13.0",
|
36
51
|
defaultElement: "<input>",
|
37
52
|
options: {
|
38
53
|
appendTo: null,
|
@@ -46,7 +61,7 @@ $.widget( "ui.autocomplete", {
|
|
46
61
|
},
|
47
62
|
source: null,
|
48
63
|
|
49
|
-
//
|
64
|
+
// Callbacks
|
50
65
|
change: null,
|
51
66
|
close: null,
|
52
67
|
focus: null,
|
@@ -60,6 +75,7 @@ $.widget( "ui.autocomplete", {
|
|
60
75
|
pending: 0,
|
61
76
|
|
62
77
|
_create: function() {
|
78
|
+
|
63
79
|
// Some browsers only repeat keydown events, not keypress events,
|
64
80
|
// so we use the suppressKeyPress flag to determine if we've already
|
65
81
|
// handled the keydown event. #7269
|
@@ -72,21 +88,17 @@ $.widget( "ui.autocomplete", {
|
|
72
88
|
isTextarea = nodeName === "textarea",
|
73
89
|
isInput = nodeName === "input";
|
74
90
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
isInput ? false :
|
81
|
-
// All other element types are determined by whether or not they're contentEditable
|
82
|
-
this.element.prop( "isContentEditable" );
|
91
|
+
// Textareas are always multi-line
|
92
|
+
// Inputs are always single-line, even if inside a contentEditable element
|
93
|
+
// IE also treats inputs as contentEditable
|
94
|
+
// All other element types are determined by whether or not they're contentEditable
|
95
|
+
this.isMultiLine = isTextarea || !isInput && this._isContentEditable( this.element );
|
83
96
|
|
84
97
|
this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ];
|
85
98
|
this.isNewMenu = true;
|
86
99
|
|
87
|
-
this.
|
88
|
-
|
89
|
-
.attr( "autocomplete", "off" );
|
100
|
+
this._addClass( "ui-autocomplete-input" );
|
101
|
+
this.element.attr( "autocomplete", "off" );
|
90
102
|
|
91
103
|
this._on( this.element, {
|
92
104
|
keydown: function( event ) {
|
@@ -119,8 +131,10 @@ $.widget( "ui.autocomplete", {
|
|
119
131
|
this._keyEvent( "next", event );
|
120
132
|
break;
|
121
133
|
case keyCode.ENTER:
|
134
|
+
|
122
135
|
// when menu is open and has focus
|
123
136
|
if ( this.menu.active ) {
|
137
|
+
|
124
138
|
// #6055 - Opera still allows the keypress to occur
|
125
139
|
// which causes forms to submit
|
126
140
|
suppressKeyPress = true;
|
@@ -139,6 +153,7 @@ $.widget( "ui.autocomplete", {
|
|
139
153
|
this._value( this.term );
|
140
154
|
}
|
141
155
|
this.close( event );
|
156
|
+
|
142
157
|
// Different browsers have different default behavior for escape
|
143
158
|
// Single press can mean undo or clear
|
144
159
|
// Double press in IE means clear the whole form
|
@@ -147,6 +162,7 @@ $.widget( "ui.autocomplete", {
|
|
147
162
|
break;
|
148
163
|
default:
|
149
164
|
suppressKeyPressRepeat = true;
|
165
|
+
|
150
166
|
// search timeout should be triggered before the input value is changed
|
151
167
|
this._searchTimeout( event );
|
152
168
|
break;
|
@@ -164,7 +180,7 @@ $.widget( "ui.autocomplete", {
|
|
164
180
|
return;
|
165
181
|
}
|
166
182
|
|
167
|
-
//
|
183
|
+
// Replicate some key handlers to allow them to repeat in Firefox and Opera
|
168
184
|
var keyCode = $.ui.keyCode;
|
169
185
|
switch ( event.keyCode ) {
|
170
186
|
case keyCode.PAGE_UP:
|
@@ -194,60 +210,43 @@ $.widget( "ui.autocomplete", {
|
|
194
210
|
this.previous = this._value();
|
195
211
|
},
|
196
212
|
blur: function( event ) {
|
197
|
-
if ( this.cancelBlur ) {
|
198
|
-
delete this.cancelBlur;
|
199
|
-
return;
|
200
|
-
}
|
201
|
-
|
202
213
|
clearTimeout( this.searching );
|
203
214
|
this.close( event );
|
204
215
|
this._change( event );
|
205
216
|
}
|
206
|
-
});
|
217
|
+
} );
|
207
218
|
|
208
219
|
this._initSource();
|
209
220
|
this.menu = $( "<ul>" )
|
210
|
-
.addClass( "ui-autocomplete ui-front" )
|
211
221
|
.appendTo( this._appendTo() )
|
212
|
-
.menu({
|
222
|
+
.menu( {
|
223
|
+
|
213
224
|
// disable ARIA support, the live region takes care of that
|
214
225
|
role: null
|
215
|
-
})
|
226
|
+
} )
|
216
227
|
.hide()
|
228
|
+
|
229
|
+
// Support: IE 11 only, Edge <= 14
|
230
|
+
// For other browsers, we preventDefault() on the mousedown event
|
231
|
+
// to keep the dropdown from taking focus from the input. This doesn't
|
232
|
+
// work for IE/Edge, causing problems with selection and scrolling (#9638)
|
233
|
+
// Happily, IE and Edge support an "unselectable" attribute that
|
234
|
+
// prevents an element from receiving focus, exactly what we want here.
|
235
|
+
.attr( {
|
236
|
+
"unselectable": "on"
|
237
|
+
} )
|
217
238
|
.menu( "instance" );
|
218
239
|
|
240
|
+
this._addClass( this.menu.element, "ui-autocomplete", "ui-front" );
|
219
241
|
this._on( this.menu.element, {
|
220
242
|
mousedown: function( event ) {
|
221
|
-
// prevent moving focus out of the text field
|
222
|
-
event.preventDefault();
|
223
243
|
|
224
|
-
//
|
225
|
-
|
226
|
-
this.cancelBlur = true;
|
227
|
-
this._delay(function() {
|
228
|
-
delete this.cancelBlur;
|
229
|
-
});
|
230
|
-
|
231
|
-
// clicking on the scrollbar causes focus to shift to the body
|
232
|
-
// but we can't detect a mouseup or a click immediately afterward
|
233
|
-
// so we have to track the next mousedown and close the menu if
|
234
|
-
// the user clicks somewhere outside of the autocomplete
|
235
|
-
var menuElement = this.menu.element[ 0 ];
|
236
|
-
if ( !$( event.target ).closest( ".ui-menu-item" ).length ) {
|
237
|
-
this._delay(function() {
|
238
|
-
var that = this;
|
239
|
-
this.document.one( "mousedown", function( event ) {
|
240
|
-
if ( event.target !== that.element[ 0 ] &&
|
241
|
-
event.target !== menuElement &&
|
242
|
-
!$.contains( menuElement, event.target ) ) {
|
243
|
-
that.close();
|
244
|
-
}
|
245
|
-
});
|
246
|
-
});
|
247
|
-
}
|
244
|
+
// Prevent moving focus out of the text field
|
245
|
+
event.preventDefault();
|
248
246
|
},
|
249
247
|
menufocus: function( event, ui ) {
|
250
248
|
var label, item;
|
249
|
+
|
251
250
|
// support: Firefox
|
252
251
|
// Prevent accidental activation of menu items in Firefox (#7024 #9118)
|
253
252
|
if ( this.isNewMenu ) {
|
@@ -257,7 +256,7 @@ $.widget( "ui.autocomplete", {
|
|
257
256
|
|
258
257
|
this.document.one( "mousemove", function() {
|
259
258
|
$( event.target ).trigger( event.originalEvent );
|
260
|
-
});
|
259
|
+
} );
|
261
260
|
|
262
261
|
return;
|
263
262
|
}
|
@@ -265,6 +264,7 @@ $.widget( "ui.autocomplete", {
|
|
265
264
|
|
266
265
|
item = ui.item.data( "ui-autocomplete-item" );
|
267
266
|
if ( false !== this._trigger( "focus", event, { item: item } ) ) {
|
267
|
+
|
268
268
|
// use value to match what will end up in the input, if it was a key event
|
269
269
|
if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) {
|
270
270
|
this._value( item.value );
|
@@ -273,7 +273,7 @@ $.widget( "ui.autocomplete", {
|
|
273
273
|
|
274
274
|
// Announce the value in the liveRegion
|
275
275
|
label = ui.item.attr( "aria-label" ) || item.value;
|
276
|
-
if ( label &&
|
276
|
+
if ( label && String.prototype.trim.call( label ).length ) {
|
277
277
|
this.liveRegion.children().hide();
|
278
278
|
$( "<div>" ).text( label ).appendTo( this.liveRegion );
|
279
279
|
}
|
@@ -282,22 +282,24 @@ $.widget( "ui.autocomplete", {
|
|
282
282
|
var item = ui.item.data( "ui-autocomplete-item" ),
|
283
283
|
previous = this.previous;
|
284
284
|
|
285
|
-
//
|
286
|
-
if ( this.element[ 0 ] !== this.document[ 0 ]
|
287
|
-
this.element.focus
|
285
|
+
// Only trigger when focus was lost (click on menu)
|
286
|
+
if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) {
|
287
|
+
this.element.trigger( "focus" );
|
288
288
|
this.previous = previous;
|
289
|
+
|
289
290
|
// #6109 - IE triggers two focus events and the second
|
290
291
|
// is asynchronous, so we need to reset the previous
|
291
292
|
// term synchronously and asynchronously :-(
|
292
|
-
this._delay(function() {
|
293
|
+
this._delay( function() {
|
293
294
|
this.previous = previous;
|
294
295
|
this.selectedItem = item;
|
295
|
-
});
|
296
|
+
} );
|
296
297
|
}
|
297
298
|
|
298
299
|
if ( false !== this._trigger( "select", event, { item: item } ) ) {
|
299
300
|
this._value( item.value );
|
300
301
|
}
|
302
|
+
|
301
303
|
// reset the term after the select event
|
302
304
|
// this allows custom select handling to work properly
|
303
305
|
this.term = this._value();
|
@@ -305,31 +307,30 @@ $.widget( "ui.autocomplete", {
|
|
305
307
|
this.close( event );
|
306
308
|
this.selectedItem = item;
|
307
309
|
}
|
308
|
-
});
|
309
|
-
|
310
|
-
this.liveRegion = $( "<
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
.addClass( "ui-helper-hidden-accessible" )
|
310
|
+
} );
|
311
|
+
|
312
|
+
this.liveRegion = $( "<div>", {
|
313
|
+
role: "status",
|
314
|
+
"aria-live": "assertive",
|
315
|
+
"aria-relevant": "additions"
|
316
|
+
} )
|
316
317
|
.appendTo( this.document[ 0 ].body );
|
317
318
|
|
318
|
-
|
319
|
+
this._addClass( this.liveRegion, null, "ui-helper-hidden-accessible" );
|
320
|
+
|
321
|
+
// Turning off autocomplete prevents the browser from remembering the
|
319
322
|
// value when navigating through history, so we re-enable autocomplete
|
320
323
|
// if the page is unloaded before the widget is destroyed. #7790
|
321
324
|
this._on( this.window, {
|
322
325
|
beforeunload: function() {
|
323
326
|
this.element.removeAttr( "autocomplete" );
|
324
327
|
}
|
325
|
-
});
|
328
|
+
} );
|
326
329
|
},
|
327
330
|
|
328
331
|
_destroy: function() {
|
329
332
|
clearTimeout( this.searching );
|
330
|
-
this.element
|
331
|
-
.removeClass( "ui-autocomplete-input" )
|
332
|
-
.removeAttr( "autocomplete" );
|
333
|
+
this.element.removeAttr( "autocomplete" );
|
333
334
|
this.menu.element.remove();
|
334
335
|
this.liveRegion.remove();
|
335
336
|
},
|
@@ -347,6 +348,20 @@ $.widget( "ui.autocomplete", {
|
|
347
348
|
}
|
348
349
|
},
|
349
350
|
|
351
|
+
_isEventTargetInWidget: function( event ) {
|
352
|
+
var menuElement = this.menu.element[ 0 ];
|
353
|
+
|
354
|
+
return event.target === this.element[ 0 ] ||
|
355
|
+
event.target === menuElement ||
|
356
|
+
$.contains( menuElement, event.target );
|
357
|
+
},
|
358
|
+
|
359
|
+
_closeOnClickOutside: function( event ) {
|
360
|
+
if ( !this._isEventTargetInWidget( event ) ) {
|
361
|
+
this.close();
|
362
|
+
}
|
363
|
+
},
|
364
|
+
|
350
365
|
_appendTo: function() {
|
351
366
|
var element = this.options.appendTo;
|
352
367
|
|
@@ -357,7 +372,7 @@ $.widget( "ui.autocomplete", {
|
|
357
372
|
}
|
358
373
|
|
359
374
|
if ( !element || !element[ 0 ] ) {
|
360
|
-
element = this.element.closest( ".ui-front" );
|
375
|
+
element = this.element.closest( ".ui-front, dialog" );
|
361
376
|
}
|
362
377
|
|
363
378
|
if ( !element.length ) {
|
@@ -370,7 +385,7 @@ $.widget( "ui.autocomplete", {
|
|
370
385
|
_initSource: function() {
|
371
386
|
var array, url,
|
372
387
|
that = this;
|
373
|
-
if (
|
388
|
+
if ( Array.isArray( this.options.source ) ) {
|
374
389
|
array = this.options.source;
|
375
390
|
this.source = function( request, response ) {
|
376
391
|
response( $.ui.autocomplete.filter( array, request.term ) );
|
@@ -381,7 +396,7 @@ $.widget( "ui.autocomplete", {
|
|
381
396
|
if ( that.xhr ) {
|
382
397
|
that.xhr.abort();
|
383
398
|
}
|
384
|
-
that.xhr = $.ajax({
|
399
|
+
that.xhr = $.ajax( {
|
385
400
|
url: url,
|
386
401
|
data: request,
|
387
402
|
dataType: "json",
|
@@ -389,9 +404,9 @@ $.widget( "ui.autocomplete", {
|
|
389
404
|
response( data );
|
390
405
|
},
|
391
406
|
error: function() {
|
392
|
-
response([]);
|
407
|
+
response( [] );
|
393
408
|
}
|
394
|
-
});
|
409
|
+
} );
|
395
410
|
};
|
396
411
|
} else {
|
397
412
|
this.source = this.options.source;
|
@@ -400,7 +415,7 @@ $.widget( "ui.autocomplete", {
|
|
400
415
|
|
401
416
|
_searchTimeout: function( event ) {
|
402
417
|
clearTimeout( this.searching );
|
403
|
-
this.searching = this._delay(function() {
|
418
|
+
this.searching = this._delay( function() {
|
404
419
|
|
405
420
|
// Search if the value has changed, or if the user retypes the same value (see #7434)
|
406
421
|
var equalValues = this.term === this._value(),
|
@@ -417,7 +432,7 @@ $.widget( "ui.autocomplete", {
|
|
417
432
|
search: function( value, event ) {
|
418
433
|
value = value != null ? value : this._value();
|
419
434
|
|
420
|
-
//
|
435
|
+
// Always save the actual value, not the one passed as an argument
|
421
436
|
this.term = this._value();
|
422
437
|
|
423
438
|
if ( value.length < this.options.minLength ) {
|
@@ -433,7 +448,7 @@ $.widget( "ui.autocomplete", {
|
|
433
448
|
|
434
449
|
_search: function( value ) {
|
435
450
|
this.pending++;
|
436
|
-
this.
|
451
|
+
this._addClass( "ui-autocomplete-loading" );
|
437
452
|
this.cancelSearch = false;
|
438
453
|
|
439
454
|
this.source( { term: value }, this._response() );
|
@@ -442,16 +457,16 @@ $.widget( "ui.autocomplete", {
|
|
442
457
|
_response: function() {
|
443
458
|
var index = ++this.requestIndex;
|
444
459
|
|
445
|
-
return
|
460
|
+
return function( content ) {
|
446
461
|
if ( index === this.requestIndex ) {
|
447
462
|
this.__response( content );
|
448
463
|
}
|
449
464
|
|
450
465
|
this.pending--;
|
451
466
|
if ( !this.pending ) {
|
452
|
-
this.
|
467
|
+
this._removeClass( "ui-autocomplete-loading" );
|
453
468
|
}
|
454
|
-
}
|
469
|
+
}.bind( this );
|
455
470
|
},
|
456
471
|
|
457
472
|
__response: function( content ) {
|
@@ -463,6 +478,7 @@ $.widget( "ui.autocomplete", {
|
|
463
478
|
this._suggest( content );
|
464
479
|
this._trigger( "open" );
|
465
480
|
} else {
|
481
|
+
|
466
482
|
// use ._close() instead of .close() so we don't cancel future searches
|
467
483
|
this._close();
|
468
484
|
}
|
@@ -474,6 +490,10 @@ $.widget( "ui.autocomplete", {
|
|
474
490
|
},
|
475
491
|
|
476
492
|
_close: function( event ) {
|
493
|
+
|
494
|
+
// Remove the handler that closes the menu on outside clicks
|
495
|
+
this._off( this.document, "mousedown" );
|
496
|
+
|
477
497
|
if ( this.menu.element.is( ":visible" ) ) {
|
478
498
|
this.menu.element.hide();
|
479
499
|
this.menu.blur();
|
@@ -489,6 +509,7 @@ $.widget( "ui.autocomplete", {
|
|
489
509
|
},
|
490
510
|
|
491
511
|
_normalize: function( items ) {
|
512
|
+
|
492
513
|
// assume all items have the right format when the first item is complete
|
493
514
|
if ( items.length && items[ 0 ].label && items[ 0 ].value ) {
|
494
515
|
return items;
|
@@ -503,8 +524,8 @@ $.widget( "ui.autocomplete", {
|
|
503
524
|
return $.extend( {}, item, {
|
504
525
|
label: item.label || item.value,
|
505
526
|
value: item.value || item.label
|
506
|
-
});
|
507
|
-
});
|
527
|
+
} );
|
528
|
+
} );
|
508
529
|
},
|
509
530
|
|
510
531
|
_suggest: function( items ) {
|
@@ -513,21 +534,27 @@ $.widget( "ui.autocomplete", {
|
|
513
534
|
this.isNewMenu = true;
|
514
535
|
this.menu.refresh();
|
515
536
|
|
516
|
-
//
|
537
|
+
// Size and position menu
|
517
538
|
ul.show();
|
518
539
|
this._resizeMenu();
|
519
|
-
ul.position( $.extend({
|
540
|
+
ul.position( $.extend( {
|
520
541
|
of: this.element
|
521
542
|
}, this.options.position ) );
|
522
543
|
|
523
544
|
if ( this.options.autoFocus ) {
|
524
545
|
this.menu.next();
|
525
546
|
}
|
547
|
+
|
548
|
+
// Listen for interactions outside of the widget (#6642)
|
549
|
+
this._on( this.document, {
|
550
|
+
mousedown: "_closeOnClickOutside"
|
551
|
+
} );
|
526
552
|
},
|
527
553
|
|
528
554
|
_resizeMenu: function() {
|
529
555
|
var ul = this.menu.element;
|
530
556
|
ul.outerWidth( Math.max(
|
557
|
+
|
531
558
|
// Firefox wraps long text (possibly a rounding bug)
|
532
559
|
// so we add 1px to avoid the wrapping (#7513)
|
533
560
|
ul.width( "" ).outerWidth() + 1,
|
@@ -539,7 +566,7 @@ $.widget( "ui.autocomplete", {
|
|
539
566
|
var that = this;
|
540
567
|
$.each( items, function( index, item ) {
|
541
568
|
that._renderItemData( ul, item );
|
542
|
-
});
|
569
|
+
} );
|
543
570
|
},
|
544
571
|
|
545
572
|
_renderItemData: function( ul, item ) {
|
@@ -547,7 +574,9 @@ $.widget( "ui.autocomplete", {
|
|
547
574
|
},
|
548
575
|
|
549
576
|
_renderItem: function( ul, item ) {
|
550
|
-
return $( "<li>" )
|
577
|
+
return $( "<li>" )
|
578
|
+
.append( $( "<div>" ).text( item.label ) )
|
579
|
+
.appendTo( ul );
|
551
580
|
},
|
552
581
|
|
553
582
|
_move: function( direction, event ) {
|
@@ -580,11 +609,29 @@ $.widget( "ui.autocomplete", {
|
|
580
609
|
if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {
|
581
610
|
this._move( keyEvent, event );
|
582
611
|
|
583
|
-
//
|
612
|
+
// Prevents moving cursor to beginning/end of the text field in some browsers
|
584
613
|
event.preventDefault();
|
585
614
|
}
|
615
|
+
},
|
616
|
+
|
617
|
+
// Support: Chrome <=50
|
618
|
+
// We should be able to just use this.element.prop( "isContentEditable" )
|
619
|
+
// but hidden elements always report false in Chrome.
|
620
|
+
// https://code.google.com/p/chromium/issues/detail?id=313082
|
621
|
+
_isContentEditable: function( element ) {
|
622
|
+
if ( !element.length ) {
|
623
|
+
return false;
|
624
|
+
}
|
625
|
+
|
626
|
+
var editable = element.prop( "contentEditable" );
|
627
|
+
|
628
|
+
if ( editable === "inherit" ) {
|
629
|
+
return this._isContentEditable( element.parent() );
|
630
|
+
}
|
631
|
+
|
632
|
+
return editable === "true";
|
586
633
|
}
|
587
|
-
});
|
634
|
+
} );
|
588
635
|
|
589
636
|
$.extend( $.ui.autocomplete, {
|
590
637
|
escapeRegex: function( value ) {
|
@@ -594,11 +641,11 @@ $.extend( $.ui.autocomplete, {
|
|
594
641
|
var matcher = new RegExp( $.ui.autocomplete.escapeRegex( term ), "i" );
|
595
642
|
return $.grep( array, function( value ) {
|
596
643
|
return matcher.test( value.label || value.value || value );
|
597
|
-
});
|
644
|
+
} );
|
598
645
|
}
|
599
|
-
});
|
646
|
+
} );
|
600
647
|
|
601
|
-
//
|
648
|
+
// Live region extension, adding a `messages` option
|
602
649
|
// NOTE: This is an experimental API. We are still investigating
|
603
650
|
// a full solution for string manipulation and internationalization.
|
604
651
|
$.widget( "ui.autocomplete", $.ui.autocomplete, {
|
@@ -626,8 +673,8 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, {
|
|
626
673
|
this.liveRegion.children().hide();
|
627
674
|
$( "<div>" ).text( message ).appendTo( this.liveRegion );
|
628
675
|
}
|
629
|
-
});
|
676
|
+
} );
|
630
677
|
|
631
678
|
return $.ui.autocomplete;
|
632
679
|
|
633
|
-
})
|
680
|
+
} );
|