1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 09:21:54 +00:00

[misc] fixup

This commit is contained in:
llj
2018-08-18 11:05:08 +08:00
parent 0105e8e8ef
commit 5b8dc61e6f
7 changed files with 19 additions and 15 deletions

View File

@@ -81,9 +81,9 @@ define([
repos.reset(repos.models);
}
},
error: function(xhr, textStatus, errorThrown) {
// TODO: handle error gracefully
Common.feedback('Error', 'error', Common.ERROR_TIMEOUT);
error: function(collection, response, options) {
var error_msg = Common.prepareAjaxErrorMsg(response);
Common.feedback(error_msg, 'error', Common.ERROR_TIMEOUT);
},
complete: function() {
Common.closeModal();