Skip to content

Commit

Permalink
Fix for removing empty button container when there is no buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
petertornstrand committed Sep 23, 2011
1 parent fb84823 commit 08c6e65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions guiders-1.1.3.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ var guiders = (function($){
var myCustomHTML = $(myGuider.buttonCustomHTML);
myGuider.elem.find(".guider_buttons").append(myCustomHTML);
}

if (myGuider.buttons.length == 0) {
guiderButtonsContainer.remove();
}
},

_addXButton: function(myGuider) {
Expand Down

0 comments on commit 08c6e65

Please sign in to comment.