1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-18 06:57:52 +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(); _this.reset();
} }
}, },
error: function() { error: function(collection, response, options) {
Common.feedback('Error', 'error', Common.ERROR_TIMEOUT); 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() { complete: function() {
Common.closeModal(); Common.closeModal();