From 90ab3746b3107c98f7c89af6d4b3f2b6fef35578 Mon Sep 17 00:00:00 2001 From: llj Date: Fri, 14 Oct 2016 16:16:33 +0800 Subject: [PATCH] [dirent-mvcp] bugfix --- static/scripts/app/views/dialogs/dirent-mvcp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/scripts/app/views/dialogs/dirent-mvcp.js b/static/scripts/app/views/dialogs/dirent-mvcp.js index 3ed56449b6..7b7f653140 100644 --- a/static/scripts/app/views/dialogs/dirent-mvcp.js +++ b/static/scripts/app/views/dialogs/dirent-mvcp.js @@ -56,7 +56,7 @@ define([ form_title: title, op_type: this.op_type, obj_type: obj_type, - obj_name: this.dirent.get('obj_name'), + obj_name: obj_name, show_cur_repo: this.show_cur_repo, show_other_repos: !dir.encrypted })); @@ -111,7 +111,7 @@ define([ } else if (data['successful']) { $.modal.close(); if (op == 'mv') { - dirent.remove(); + _this.dir.remove(_this.dirent); } Common.feedback(msg, 'success'); } else { // failed or canceled