Skip to content

Commit

Permalink
Merge pull request twbs#1 from kbond/dropdown-btn-disabled
Browse files Browse the repository at this point in the history
Disabled dropdown button
  • Loading branch information
kasperp committed Oct 3, 2011
2 parents a0df073 + d9cedf3 commit f115d94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/bootstrap-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
$.fn.dropdown = function ( selector ) {
return this.each(function () {
$(this).delegate(selector || d, 'click', function (e) {
if ($(this).hasClass('disabled')) {
return false;
}
var p = $(this).parent('li,.dropdown')
, isActive = p.hasClass('open')

Expand Down

0 comments on commit f115d94

Please sign in to comment.