Stop support ticket refresh on send, if there is a server message

This commit is contained in:
Anand Doshi 2012-02-10 15:46:54 +05:30
parent 701e0559e9
commit ba746dfb2f

View File

@ -84,7 +84,7 @@ $.extend(cur_frm.cscript, {
Send: function(doc, dt, dn) {
$c_obj([doc], 'send_response', '', function(r,rt) {
locals[dt][dn].new_response = '';
if(!r.exc) {
if(!(r.exc || r.server_messages)) {
cur_frm.refresh();
}
});