mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-19 05:50:23 +00:00
added bug fix for hide-before-show bug
this commit fixes a bug where .modal('hide') is called on a modal object before
.modal('show'). this can be viewed here:
http://jsfiddle.net/aaronj1335/7hH89/8/
(notice the JS exception that is thrown)
This commit is contained in:
parent
68605bdd51
commit
d541eceb51
1 changed files with 3 additions and 1 deletions
4
js/bootstrap-modal.js
vendored
4
js/bootstrap-modal.js
vendored
|
|
@ -100,6 +100,8 @@
|
|||
, hide: function (e) {
|
||||
e && e.preventDefault()
|
||||
|
||||
if (! this.isShown) return
|
||||
|
||||
var that = this
|
||||
this.isShown = false
|
||||
|
||||
|
|
@ -235,4 +237,4 @@
|
|||
})
|
||||
})
|
||||
|
||||
}( window.jQuery || window.ender );
|
||||
}( window.jQuery || window.ender );
|
||||
|
|
|
|||
Loading…
Reference in a new issue