From 1cf9becf2cd804c2173ad4b13cd0c357d906e58c Mon Sep 17 00:00:00 2001 From: cainiao222 <1325442034@qq.com> Date: Tue, 17 Jul 2018 18:51:19 +0800 Subject: [PATCH] fix smart-link --- static/scripts/app/views/dirent.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/scripts/app/views/dirent.js b/static/scripts/app/views/dirent.js index a8d525a247..36229bef4f 100644 --- a/static/scripts/app/views/dirent.js +++ b/static/scripts/app/views/dirent.js @@ -427,12 +427,14 @@ define([ var $name = this.$('.dirent-name'), $op = this.$('.dirent-op'), - $td = $name.closest('td'); + $td = $name.closest('td'), + $smart_link = this.$('.dirent-smart-link'); $td.attr('colspan', 2).css({ 'width': $name.width() + $op.outerWidth(), 'height': $name.height() }).append(form); $op.hide(); + $smart_link.hide(); $name.hide(); this.$el.attr('draggable', false); @@ -474,6 +476,7 @@ define([ form.remove(); $op.show(); $name.show(); + $smart_link.removeAttr('style'); $td.attr('colspan', 1).css({ 'width': $name.width() });