1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

[ajax] fixup for error msg (#2183)

This commit is contained in:
llj
2018-07-31 18:15:44 +08:00
committed by zheng xie
parent 9733d50a1a
commit 151857e92d
93 changed files with 287 additions and 1229 deletions

View File

@@ -83,13 +83,8 @@ define([
_this.remove();
},
error: function(xhr) {
var err_msg;
if (xhr.responseText) {
err_msg = JSON.parse(response.responseText).error_msg;
} else {
err_msg = gettext('Please check the network.');
}
_this.data.$error.html(err_msg).show();
var error_msg = Common.prepareAjaxErrorMsg(xhr);
_this.data.$error.html(error_msg).show();
}
});