1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-10-03 16:51:54 +02:00

add selector option to alerts, update modal settings strategy

This commit is contained in:
Jacob Thornton
2011-10-04 21:24:59 -07:00
parent 7e01ff8a15
commit d7e3bf722d
4 changed files with 34 additions and 10 deletions

View File

@@ -53,12 +53,10 @@
* ============================= */
var Modal = function ( content, options ) {
this.settings = $.extend({}, $.fn.modal.defaults)
this.settings = $.extend({}, $.fn.modal.defaults, options)
this.$element = $(content)
.delegate('.close', 'click.modal', $.proxy(this.hide, this))
$.extend( this.settings, options )
if ( this.settings.show ) {
this.show()
}