Skip to content

Commit

Permalink
Merge pull request #61 from stvno/master
Browse files Browse the repository at this point in the history
fix for the disappearing styles
  • Loading branch information
stvno committed Nov 12, 2013
2 parents 88bd56a + 41d97b6 commit 04e5f47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/scripts/knopwidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ $.widget("cow.KnopWidget", {

element.on('click','.sknop',function() {
if($(this).hasClass('newpoint')){
$('#pointbutton').empty().html($(this).removeClass('sknop'));
$('#pointbutton').empty().html($(this).clone().removeClass('sknop'));
}
else if($(this).hasClass('newline')){
$('#linebutton').empty().html($(this).removeClass('sknop'));
$('#linebutton').empty().html($(this).clone().removeClass('sknop'));
}
else if($(this).hasClass('newpoly')){
$('#polybutton').empty().html($(this).removeClass('sknop'));
$('#polybutton').empty().html($(this).clone().removeClass('sknop'));
}
$('.sideknop').hide('fold');
});
Expand Down

0 comments on commit 04e5f47

Please sign in to comment.