mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 01:12:03 +00:00
fix smart-link
This commit is contained in:
@@ -427,12 +427,14 @@ define([
|
|||||||
|
|
||||||
var $name = this.$('.dirent-name'),
|
var $name = this.$('.dirent-name'),
|
||||||
$op = this.$('.dirent-op'),
|
$op = this.$('.dirent-op'),
|
||||||
$td = $name.closest('td');
|
$td = $name.closest('td'),
|
||||||
|
$smart_link = this.$('.dirent-smart-link');
|
||||||
$td.attr('colspan', 2).css({
|
$td.attr('colspan', 2).css({
|
||||||
'width': $name.width() + $op.outerWidth(),
|
'width': $name.width() + $op.outerWidth(),
|
||||||
'height': $name.height()
|
'height': $name.height()
|
||||||
}).append(form);
|
}).append(form);
|
||||||
$op.hide();
|
$op.hide();
|
||||||
|
$smart_link.hide();
|
||||||
$name.hide();
|
$name.hide();
|
||||||
|
|
||||||
this.$el.attr('draggable', false);
|
this.$el.attr('draggable', false);
|
||||||
@@ -474,6 +476,7 @@ define([
|
|||||||
form.remove();
|
form.remove();
|
||||||
$op.show();
|
$op.show();
|
||||||
$name.show();
|
$name.show();
|
||||||
|
$smart_link.removeAttr('style');
|
||||||
$td.attr('colspan', 1).css({
|
$td.attr('colspan', 1).css({
|
||||||
'width': $name.width()
|
'width': $name.width()
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user