From ce749810e4b84db4fd3bb5973f95c01b1da46775 Mon Sep 17 00:00:00 2001 From: llj Date: Fri, 30 Jun 2017 14:33:10 +0800 Subject: [PATCH] [dir view] fix for 'dirent share/del' --- static/scripts/app/views/dirent.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/scripts/app/views/dirent.js b/static/scripts/app/views/dirent.js index c812fa2e37..dae60f8637 100644 --- a/static/scripts/app/views/dirent.js +++ b/static/scripts/app/views/dirent.js @@ -350,6 +350,8 @@ define([ 'obj_name': obj_name }; new ShareView(options); + + this._hideMenu(); return false; }, @@ -366,6 +368,8 @@ define([ .replace('%(name)s', dirent_name); Common.feedback(msg, 'success'); + _this._hideMenu(); + if (_this.model.get('is_img')) { _this.dirView.updateMagnificPopupOptions({'op':'delete-item', 'index':index}); }