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

show err msg detail when share dir to user/group

This commit is contained in:
lian
2015-09-15 12:00:29 +08:00
parent 1155777cf8
commit 8aee7bc8de

View File

@@ -610,7 +610,8 @@ define([
error: function(xhr) {
var err_msg;
if (xhr.responseText) {
err_msg = gettext("Share failed");
var parsed_resp = $.parseJSON(xhr.responseText);
err_msg = parsed_resp.error||parsed_resp.error_msg;
} else {
err_msg = gettext("Failed. Please check the network.")
}
@@ -668,7 +669,8 @@ define([
error: function(xhr) {
var err_msg;
if (xhr.responseText) {
err_msg = gettext("Share failed");
var parsed_resp = $.parseJSON(xhr.responseText);
err_msg = parsed_resp.error||parsed_resp.error_msg;
} else {
err_msg = gettext("Failed. Please check the network.")
}