mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
add some more events to alerts and modal and update docs
This commit is contained in:
Vendored
+5
-4
@@ -34,10 +34,11 @@
|
||||
var Alert = function ( content ) {
|
||||
var that = this
|
||||
this.$element = $(content)
|
||||
this.$element.delegate('.close', 'click', function (e) {
|
||||
e.preventDefault()
|
||||
that.close()
|
||||
})
|
||||
.bind('alert:hide', $.proxy(this.close, this))
|
||||
.delegate('.close', 'click', function (e) {
|
||||
e.preventDefault()
|
||||
that.close()
|
||||
})
|
||||
}
|
||||
|
||||
Alert.prototype = {
|
||||
|
||||
Reference in New Issue
Block a user