1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

[del-dirents] update perm check

This commit is contained in:
lian
2015-05-15 17:19:08 +08:00
parent 595d0cd82f
commit 0528bfe85c
2 changed files with 8 additions and 9 deletions

View File

@@ -550,7 +550,7 @@ define([
_this.$('#multi-dirents-op').hide();
} else {
$(selected_dirents).each(function() {
if (this.get('obj_name') in data['deleted']) {
if (data['deleted'].indexOf(this.get('obj_name')) != -1) {
dirents.remove(this);
}
});
@@ -567,11 +567,11 @@ define([
}
if (not_del_len > 0) {
if (not_del_len == 1) {
msg_f = gettext("Internal error. Failed to delete %(name)s.");
msg_f = gettext("Failed to delete %(name)s.");
} else if (not_del_len == 2) {
msg_f = gettext("Internal error. Failed to delete %(name)s and 1 other item.");
msg_f = gettext("Failed to delete %(name)s and 1 other item.");
} else {
msg_f = gettext("Internal error. Failed to delete %(name)s and %(amount)s other items.");
msg_f = gettext("Failed to delete %(name)s and %(amount)s other items.");
}
msg_f = msg_f.replace('%(name)s', Common.HTMLescape(data['undeleted'][0])).replace('%(amount)s', not_del_len - 1);
Common.feedback(msg_f, 'error');