Commit 212cb6e4 authored by Jean-Philippe Levy's avatar Jean-Philippe Levy
Browse files

Update bootstrap-select 1.12.4

parent c1f83f12
......@@ -22,7 +22,7 @@
"highcharts": "^5.0.12",
"jquery-ui": "^1.12.1",
"bootstrap-daterangepicker": "^2.1.25",
"bootstrap-select": "^1.12.3"
"bootstrap-select": "^1.12.4"
},
"resolutions": {
"font-awesome": "^4.7.0"
......
......@@ -29,14 +29,14 @@
"test.html",
"docs"
],
"version": "1.12.3",
"_release": "1.12.3",
"version": "1.12.4",
"_release": "1.12.4",
"_resolution": {
"type": "version",
"tag": "v1.12.3",
"commit": "b58fe717acbbc10aa7da1b66df988dab9a248279"
"tag": "v1.12.4",
"commit": "e1a7743e82eb16bce825ec58a8c95b2aceae6942"
},
"_source": "https://github.com/silviomoreto/bootstrap-select.git",
"_target": "^1.12.3",
"_target": "^1.12.4",
"_originalSource": "bootstrap-select"
}
\ No newline at end of file
### v1.12.3 (2017-07-06)
# v1.12.4 (2017-07-19)
## Bug Fixes
- #1529: add selectAllText and deselectAllText to translation files (used Google Translate)
- #1604: Keydown improvements
- #1630: htmlEscape inline style
- #1631: Livesearch performance
### Bug Fixes
- [#1286]: Event creation throws illegal constructor error on stock Android Browser < 5.0
- [#1764]: Bootstrap-select steals focus on form.checkValidity
## New Features
[#1286]: https://github.com/silviomoreto/bootstrap-select/issues/1286
[#1764]: https://github.com/silviomoreto/bootstrap-select/issues/1764
-------------------
# v1.12.3 (2017-07-06)
### Bug Fixes
- [#1529]: add selectAllText and deselectAllText to translation files (used Google Translate)
- [#1604]: Keydown improvements
- [#1630]: htmlEscape inline style
- [#1631]: Livesearch performance
### New Features
- Add/update various translations
[#1529]: https://github.com/silviomoreto/bootstrap-select/issues/1529
......@@ -15,9 +26,10 @@
[#1631]: https://github.com/silviomoreto/bootstrap-select/pull/1631
-------------------
### v1.12.2 (2017-01-30)
## Bug Fixes
# v1.12.2 (2017-01-30)
### Bug Fixes
* [#1563]: key word searching broken in [#1516].
* [#1570]: properly adjust size when inside form-group-sm or form-group-lg
* [#1590]: menu height calculated improperly when using liveSearch and input has custom height
......@@ -28,9 +40,9 @@
-------------------
### v1.12.1 (2016-11-22)
# v1.12.1 (2016-11-22)
## Bug Fixes
### Bug Fixes
* [#1167], [#1366]: using a method before initializing bootstrap-select throws an error
[#1167]: https://github.com/silviomoreto/bootstrap-select/issues/1167
......@@ -38,9 +50,9 @@
-------------------
### v1.12.0 (2016-11-18)
# v1.12.0 (2016-11-18)
## Bug Fixes
### Bug Fixes
* [#1220]: unescape button title
* [#1348]: escape HTML for optgroup label
* [#1506]: Fix bs-placeholder usage for jQuery>=3.0
......@@ -52,7 +64,7 @@
* [#1531]: add Spanish (Spain) translations
* [#1553]: don't use replace in normalizeToBase if text is undefined (throws error otherwise)
## New Features
### New Features
* [#1503]: Add windowPadding option (either a number or an array of numbers - [top, right, bottom, left])
* [#1516]: Improve liveSearch performance (addresses [#1275])
* [#1440]: allow HTML in placeholder title for non-multiple selects
......@@ -75,16 +87,16 @@
-------------------
### v1.11.2 (2016-09-09)
# v1.11.2 (2016-09-09)
#### Bug Fixes
### Bug Fixes
* fix sourceMappingURL in bootstrap-select.min.js
-------------------
### v1.11.1 (2016-09-09)
# v1.11.1 (2016-09-09)
#### Bug Fixes
### Bug Fixes
* [#1475]: fix Cannot read property 'apply' of null error
* [#1484]: Change events fire twice on IE8
* [#1489]: hide.bs.select and hidden.bs.select events not fired when "Esc" key pressed with live search enabled
......@@ -95,9 +107,9 @@
-------------------
### v1.11.0 (2016-08-16)
# v1.11.0 (2016-08-16)
#### Bug Fixes
### Bug Fixes
* [#1291]: don't trigger change event if selecting an option that passes the limit
* [#1284]: check if all options are already selected/deselected before triggering changed/changed.bs.select
* [#1245], [#1310]: With livesearch, when keypress, focus to search field isn't working with some characters
......@@ -111,7 +123,7 @@
* [#1465]: changed.bs.select not firing for native mobile menu
* [#1459]: jQuery 3 support - $.expr[':'] -> $.expr.pseudos
#### New Features
### New Features
* [#1139]: add placeholder styling via `bs-placeholder` class
* [#1290]: auto close the menu if maxOptions is set to 1 (instead of leaving open)
* [#1127], [#1016], [#1160], [#1269]: add 'auto' option for dropdownAlignRight
......@@ -142,14 +154,14 @@
-------------------
### v1.10.0 (2016-02-17)
# v1.10.0 (2016-02-17)
#### Bug Fixes
### Bug Fixes
* [#1268]: performance bug in clickListener
* [#1273]: html5 validation message disappears in Chrome 47+
* [#1295]: hide select by default (so there is no flash of unstyled content)
#### New Features
### New Features
* [#950]: add `.selectpicker('toggle')` method to allow menu to be open/closed programmatically
* [#1272]: add showTick option
* [#1284]: selectAll and deselectAll now trigger the `changed.bs.select` event
......@@ -165,9 +177,9 @@ Add Lithuanian translations.
-------------------
### v1.9.4 (2016-01-18)
# v1.9.4 (2016-01-18)
#### Bug fixes
### Bug fixes
* [#1250]: don't destroy original select when using `destroy` method
* [#1230]: Optgroup label missing when first option is disabled and `hideDisabled` is true
......@@ -178,9 +190,9 @@ Add new translations.
-------------------
### v1.9.3 (2015-12-16)
# v1.9.3 (2015-12-16)
#### Bug fixes
### Bug fixes
* Fix [#1235] - issue with selects that had `form-control` class
[#1235]: https://github.com/silviomoreto/bootstrap-select/issues/1235
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......@@ -164,12 +164,22 @@
};
var changed_arguments = null;
var EventIsSupported = (function() {
try {
new Event('change');
return true;
} catch (e) {
return false;
}
})();
$.fn.triggerNative = function (eventName) {
var el = this[0],
event;
if (el.dispatchEvent) { // for modern browsers & IE9+
if (typeof Event === 'function') {
if (EventIsSupported) {
// For modern browsers
event = new Event(eventName, {
bubbles: true
......@@ -327,7 +337,7 @@
this.init();
};
Selectpicker.VERSION = '1.12.3';
Selectpicker.VERSION = '1.12.4';
// part of this is duplicated in i18n/defaults-en_US.js. Make sure to update both.
Selectpicker.DEFAULTS = {
......@@ -444,9 +454,7 @@
if (that.$element[0].hasAttribute('required')) {
this.$element.on('invalid', function () {
that.$button
.addClass('bs-invalid')
.focus();
that.$button.addClass('bs-invalid');
that.$element.on({
'focus.bs.select': function () {
......@@ -464,6 +472,11 @@
that.$element.off('rendered.bs.select');
}
});
that.$button.on('blur.bs.select', function() {
that.$element.focus().blur();
that.$button.off('blur.bs.select');
});
});
}
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
/*!
* Bootstrap-select v1.12.3 (http://silviomoreto.github.io/bootstrap-select)
* Bootstrap-select v1.12.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2017 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment