Skip to content

Commit

Permalink
Upgrade to Bootstrap 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Mar 14, 2012
1 parent 250d6b0 commit d7190a1
Show file tree
Hide file tree
Showing 5 changed files with 1,374 additions and 625 deletions.
13 changes: 8 additions & 5 deletions app/assets/javascripts/bootstrap-alert.js
@@ -1,5 +1,5 @@
/* ==========================================================
* bootstrap-alert.js v2.0.0
* bootstrap-alert.js v2.0.2
* http://twitter.github.com/bootstrap/javascript.html#alerts
* ==========================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -51,11 +51,14 @@

$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())

$parent.removeClass('in')
$parent
.trigger('close')
.removeClass('in')

function removeElement() {
$parent.remove()
$parent.trigger('closed')
$parent
.trigger('closed')
.remove()
}

$.support.transition && $parent.hasClass('fade') ?
Expand Down Expand Up @@ -88,4 +91,4 @@
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
})

}( window.jQuery )
}( window.jQuery );
8 changes: 5 additions & 3 deletions app/assets/javascripts/bootstrap-collapse.js
@@ -1,5 +1,5 @@
/* =============================================================
* bootstrap-collapse.js v2.0.0
* bootstrap-collapse.js v2.0.2
* http://twitter.github.com/bootstrap/javascript.html#collapse
* =============================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -74,7 +74,9 @@
[dimension](size || 'auto')
[0].offsetWidth

this.$element.addClass('collapse')
this.$element[size ? 'addClass' : 'removeClass']('collapse')

return this
}

, transition: function ( method, startEvent, completeEvent ) {
Expand Down Expand Up @@ -133,4 +135,4 @@
})
})

}( window.jQuery )
}( window.jQuery );

0 comments on commit d7190a1

Please sign in to comment.