diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-05-06 20:54:07 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-05-06 20:54:07 -0400 |
commit | a26bca9638a5fe77f5e833738386e6805a177744 (patch) | |
tree | 442ef27cfe9c4deadc29295e069e2bcac3c7e6de /askbot/media | |
parent | cf3605b7c0a86e799077f440e97645b22a69b8a0 (diff) | |
download | askbot-a26bca9638a5fe77f5e833738386e6805a177744.tar.gz askbot-a26bca9638a5fe77f5e833738386e6805a177744.tar.bz2 askbot-a26bca9638a5fe77f5e833738386e6805a177744.zip |
restricted comment edits only to post owners and mods/admins
Diffstat (limited to 'askbot/media')
-rw-r--r-- | askbot/media/js/post.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/askbot/media/js/post.js b/askbot/media/js/post.js index 4a2fb0d6..7f9e3d42 100644 --- a/askbot/media/js/post.js +++ b/askbot/media/js/post.js @@ -2225,8 +2225,12 @@ Comment.prototype.loadText = function(on_load_handler){ url: askbot['urls']['getComment'], data: {id: this._data['id']}, success: function(json){ - me._data['text'] = json['text']; - on_load_handler() + if (json['success']) { + me._data['text'] = json['text']; + on_load_handler() + } else { + showMessage(me.getElement(), json['message'], 'after'); + } }, error: function(xhr, textStatus, exception) { showMessage(me.getElement(), xhr.responseText, 'after'); |