summaryrefslogtreecommitdiffstats
path: root/askbot/media/js/post.js
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/media/js/post.js')
-rw-r--r--askbot/media/js/post.js8
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');