Skip to content

Commit

Permalink
try to fix issue mdbootstrap#14
Browse files Browse the repository at this point in the history
  • Loading branch information
nostalgiaz committed Sep 19, 2012
1 parent e519ff5 commit 33a283d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions static/js/jquery.toggle.buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@
e.preventDefault();
e.stopImmediatePropagation();

if (!$(this).closest('.toggle-button').is('.deactivate')) {

if ($(this).closest('.toggle-button').is('.deactivate'))
$(this).unbind('click');
else {
$(this).on('mousemove', function (e) {
var $element = $(this).closest('.toggle-button')
, relativeX = e.pageX - $element.offset().left
Expand Down

0 comments on commit 33a283d

Please sign in to comment.