mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 23:29:49 +00:00
add ENABLE_GUEST_INVITATION setting
This commit is contained in:
@@ -73,7 +73,7 @@ define([
|
||||
error: function(collection, response, options) {
|
||||
var err_msg;
|
||||
if (response.responseText) {
|
||||
err_msg = response.responseJSON.error_msg;
|
||||
err_msg = response.responseJSON.error_msg||response.responseJSON.detail;
|
||||
} else {
|
||||
err_msg = gettext('Please check the network.');
|
||||
}
|
||||
|
@@ -349,7 +349,7 @@ define([
|
||||
ajaxErrorHandler: function(xhr, textStatus, errorThrown) {
|
||||
if (xhr.responseText) {
|
||||
var parsed_resp = $.parseJSON(xhr.responseText);
|
||||
this.feedback(parsed_resp.error||parsed_resp.error_msg, 'error');
|
||||
this.feedback(parsed_resp.error||parsed_resp.error_msg||parsed_resp.detail, 'error');
|
||||
} else {
|
||||
this.feedback(gettext("Failed. Please check the network."), 'error');
|
||||
}
|
||||
|
Reference in New Issue
Block a user