1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +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

@@ -274,13 +274,8 @@ define([
}
},
error: function(xhr) {
var error_msg;
if (xhr.responseText) {
error_msg = JSON.parse(xhr.responseText).error_msg;
} else {
error_msg = gettext("Failed. Please check the network.");
}
$error.html(error_msg).removeClass('hide');
var error_msg = Common.prepareAjaxErrorMsg(xhr);
$error.html(error_msg).show();
}
});
}