1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-09 07:06:36 +02:00
This commit is contained in:
Johann-S
2017-05-16 09:59:44 +02:00
parent 183205afb8
commit 3719ed4cb6
34 changed files with 1580 additions and 621 deletions

3
js/dist/button.js vendored
View File

@@ -82,6 +82,9 @@ var Button = function ($) {
}
if (triggerChangeEvent) {
if (input.hasAttribute('disabled') || rootElement.hasAttribute('disabled') || input.classList.contains('disabled') || rootElement.classList.contains('disabled')) {
return;
}
input.checked = !$(this._element).hasClass(ClassName.ACTIVE);
$(input).trigger('change');
}