Add error message in add_message function + NSFW error message for 9gag
This commit is contained in:
@@ -530,12 +530,14 @@ function add_message(e)
|
||||
(
|
||||
'add_message',
|
||||
databap.getMainElem('#chat_form'),
|
||||
function(id)
|
||||
function(oData)
|
||||
{
|
||||
databap.tmp('sending_msg', false);
|
||||
refresh_chat();
|
||||
if(oData.result==databap.consts.error) databap.feedback('error', oData.desc);
|
||||
else refresh_chat();
|
||||
},
|
||||
true
|
||||
true,
|
||||
'json'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user