1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-28 03:10:45 +00:00

[groups] show error msg for 'add new group'

This commit is contained in:
llj 2015-12-03 17:35:13 +08:00
parent 3b23cfd26a
commit bd72a97c85

View File

@ -114,8 +114,14 @@ define([
_this.reset();
}
},
error: function() {
Common.feedback('Error', 'error', Common.ERROR_TIMEOUT);
error: function(collection, response, options) {
var err_msg;
if (response.responseText) {
err_msg = response.responseJSON.error_msg;
} else {
err_msg = gettext('Please check the network.');
}
Common.feedback(err_msg, 'error', Common.ERROR_TIMEOUT);
},
complete: function() {
Common.closeModal();