mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
fixes #2941 + whitespace in collapse
This commit is contained in:
parent
13e4d1d5ac
commit
0b8042656f
4 changed files with 6 additions and 4 deletions
4
docs/assets/js/bootstrap-alert.js
vendored
4
docs/assets/js/bootstrap-alert.js
vendored
|
@ -27,7 +27,7 @@
|
||||||
* ====================== */
|
* ====================== */
|
||||||
|
|
||||||
var dismiss = '[data-dismiss="alert"]'
|
var dismiss = '[data-dismiss="alert"]'
|
||||||
, Alert = function ( el ) {
|
, Alert = function (el) {
|
||||||
$(el).on('click', dismiss, this.close)
|
$(el).on('click', dismiss, this.close)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
/* ALERT PLUGIN DEFINITION
|
/* ALERT PLUGIN DEFINITION
|
||||||
* ======================= */
|
* ======================= */
|
||||||
|
|
||||||
$.fn.alert = function ( option ) {
|
$.fn.alert = function (option) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
, data = $this.data('alert')
|
, data = $this.data('alert')
|
||||||
|
|
1
docs/assets/js/bootstrap-collapse.js
vendored
1
docs/assets/js/bootstrap-collapse.js
vendored
|
@ -60,6 +60,7 @@
|
||||||
|
|
||||||
if (actives && actives.length) {
|
if (actives && actives.length) {
|
||||||
hasData = actives.data('collapse')
|
hasData = actives.data('collapse')
|
||||||
|
if (hasData && hasData.transitioning) return
|
||||||
actives.collapse('hide')
|
actives.collapse('hide')
|
||||||
hasData || actives.data('collapse', null)
|
hasData || actives.data('collapse', null)
|
||||||
}
|
}
|
||||||
|
|
4
js/bootstrap-alert.js
vendored
4
js/bootstrap-alert.js
vendored
|
@ -27,7 +27,7 @@
|
||||||
* ====================== */
|
* ====================== */
|
||||||
|
|
||||||
var dismiss = '[data-dismiss="alert"]'
|
var dismiss = '[data-dismiss="alert"]'
|
||||||
, Alert = function ( el ) {
|
, Alert = function (el) {
|
||||||
$(el).on('click', dismiss, this.close)
|
$(el).on('click', dismiss, this.close)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
/* ALERT PLUGIN DEFINITION
|
/* ALERT PLUGIN DEFINITION
|
||||||
* ======================= */
|
* ======================= */
|
||||||
|
|
||||||
$.fn.alert = function ( option ) {
|
$.fn.alert = function (option) {
|
||||||
return this.each(function () {
|
return this.each(function () {
|
||||||
var $this = $(this)
|
var $this = $(this)
|
||||||
, data = $this.data('alert')
|
, data = $this.data('alert')
|
||||||
|
|
1
js/bootstrap-collapse.js
vendored
1
js/bootstrap-collapse.js
vendored
|
@ -60,6 +60,7 @@
|
||||||
|
|
||||||
if (actives && actives.length) {
|
if (actives && actives.length) {
|
||||||
hasData = actives.data('collapse')
|
hasData = actives.data('collapse')
|
||||||
|
if (hasData && hasData.transitioning) return
|
||||||
actives.collapse('hide')
|
actives.collapse('hide')
|
||||||
hasData || actives.data('collapse', null)
|
hasData || actives.data('collapse', null)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue