diff options
-rw-r--r-- | askbot/skins/common/media/js/post.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/askbot/skins/common/media/js/post.js b/askbot/skins/common/media/js/post.js index 0f349fd8..294c5f41 100644 --- a/askbot/skins/common/media/js/post.js +++ b/askbot/skins/common/media/js/post.js @@ -1215,6 +1215,7 @@ EditCommentForm.prototype.attachTo = function(comment, mode){ this._submit_btn.html(gettext('save comment')); } this.getElement().show(); + this.enableButtons(); this.focus(); putCursorAtEnd(this._textarea); }; @@ -1342,13 +1343,13 @@ EditCommentForm.prototype.createDom = function(){ }; EditCommentForm.prototype.enableButtons = function(){ - this._submit_btn.attr('disabled', ''); - this._cancel_btn.attr('disabled', ''); + this._submit_btn.attr('disabled', false); + this._cancel_btn.attr('disabled', false); }; EditCommentForm.prototype.disableButtons = function(){ - this._submit_btn.attr('disabled', 'disabled'); - this._cancel_btn.attr('disabled', 'disabled'); + this._submit_btn.attr('disabled', true); + this._cancel_btn.attr('disabled', true); }; EditCommentForm.prototype.reset = function(){ |