Skip to content

Commit

Permalink
#29 Mute/Unmute button is not resized when text changed
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyrne01 committed Dec 16, 2013
1 parent 7487bbe commit 90a11dd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions war/js/Puzzle.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,15 @@ $(document).ready(function() {



//check for sound toggle
//check for sound toggle
$('#soundClick').on('click', function(e) {
if(sound == "on"){
sound = "off";
$(this).html('Unmute');
$(this).button('option', 'label', 'Unmute');
}
else{
sound = "on";
$(this).html('Mute');

$(this).button('option', 'label', 'Mute');
}
});

Expand Down

0 comments on commit 90a11dd

Please sign in to comment.