issue 675: display line feeds in ajax alert messages.

plus, make unknown error message more detail.


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9921 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-12-08 08:25:22 +00:00
parent 77d1efccba
commit 27a62f1a36
3 changed files with 10 additions and 8 deletions

View file

@ -265,7 +265,8 @@ $.exec_xml = window.exec_xml = function(module, act, params, callback_func, resp
return $.exec_xml.onerror(module, act, ret, callback_func, response_tags, callback_func_arg, fo_obj);
}
alert(ret['message'] || 'error!');
alert( (ret['message']||'An unknown error occured while loading ['+module+'.'+act+']').replace(/\\n/g, '\n') );
return null;
}