1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-09 07:06:36 +02:00
This commit is contained in:
Heinrich Fenkart
2014-10-22 21:04:18 +02:00
parent e1d40f7633
commit 2bc5277b44
11 changed files with 15 additions and 9 deletions

View File

@@ -223,6 +223,8 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
else $parent.find('.active').removeClass('active')
}
if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change')
} else {
this.$element.attr('aria-pressed', !this.$element.hasClass('active'))
}
if (changed) this.$element.toggleClass('active')

File diff suppressed because one or more lines are too long