diff --git a/static/js/pad_editbar.js b/static/js/pad_editbar.js index ae15bc2d..2095ab9a 100644 --- a/static/js/pad_editbar.js +++ b/static/js/pad_editbar.js @@ -14,7 +14,6 @@ * limitations under the License. */ - var padeditbar = (function() { @@ -84,14 +83,15 @@ var padeditbar = (function() }, isEnabled: function() { - return !$("#editbar").hasClass('disabledtoolbar'); +// return !$("#editbar").hasClass('disabledtoolbar'); + return true; }, disable: function() { $("#editbar").addClass('disabledtoolbar').removeClass("enabledtoolbar"); }, toolbarClick: function(cmd) - { + { if (self.isEnabled()) { if(cmd == "showusers") @@ -99,7 +99,7 @@ var padeditbar = (function() self.toogleDropDown("users"); } else if (cmd == 'embed') - { + { var padurl = document.location; $('#embedinput').val("