diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-10 13:02:26 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-05-10 13:02:26 -0400 |
commit | 25f89f0d8d3c013aca95354b5198fa058d0b247e (patch) | |
tree | eff89800f1122eb9a83db9ef1f9337a7f95de4a3 | |
parent | 6f853b5c6398a4f8458b90ceddf65cb96c89646d (diff) | |
download | askbot-25f89f0d8d3c013aca95354b5198fa058d0b247e.tar.gz askbot-25f89f0d8d3c013aca95354b5198fa058d0b247e.tar.bz2 askbot-25f89f0d8d3c013aca95354b5198fa058d0b247e.zip |
fixed save/cancel buttons for comment edits immediately after making the post
-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(){ |