1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 19:37:28 +00:00

Merge pull request #1375 from haiwen/mv-fix

[dirent-mvcp] bugfix
This commit is contained in:
Daniel Pan
2016-10-17 10:14:41 +08:00
committed by GitHub

View File

@@ -56,7 +56,7 @@ define([
form_title: title, form_title: title,
op_type: this.op_type, op_type: this.op_type,
obj_type: obj_type, obj_type: obj_type,
obj_name: this.dirent.get('obj_name'), obj_name: obj_name,
show_cur_repo: this.show_cur_repo, show_cur_repo: this.show_cur_repo,
show_other_repos: !dir.encrypted show_other_repos: !dir.encrypted
})); }));
@@ -111,7 +111,7 @@ define([
} else if (data['successful']) { } else if (data['successful']) {
$.modal.close(); $.modal.close();
if (op == 'mv') { if (op == 'mv') {
dirent.remove(); _this.dir.remove(_this.dirent);
} }
Common.feedback(msg, 'success'); Common.feedback(msg, 'success');
} else { // failed or canceled } else { // failed or canceled