mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 19:01:42 +00:00
[ajax] fixup for error msg (#2183)
This commit is contained in:
@@ -100,12 +100,7 @@ define([
|
||||
Common.feedback(gettext("Successfully transferred the group."), 'success');
|
||||
},
|
||||
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.");
|
||||
}
|
||||
var error_msg = Common.prepareAjaxErrorMsg(xhr);
|
||||
$('.error', $form).html(error_msg).show();
|
||||
Common.enableButton($submitBtn);
|
||||
}
|
||||
|
Reference in New Issue
Block a user