diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index 487467118..f065eb0d9 100644 --- a/admin/javascript/LeftAndMain.js +++ b/admin/javascript/LeftAndMain.js @@ -1081,7 +1081,7 @@ jQuery.noConflict(); this._super(); }, onremove: function() { - if(this.data('button')) this.button('destroy'); + if(!this.data('button')) this.button('destroy'); this._super(); } });