From 61f7eecc0b6ccc8ef29bee8e5aa3384e2363722a Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 15 Nov 2018 12:14:15 +0100 Subject: Show thumbnail on rename * does not hide thumbnail when rename is shown * fixes layout for grid and list view * fixes #11901 Signed-off-by: Morris Jobke --- apps/files/js/filelist.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 648a4f02641..83510762c1a 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2390,7 +2390,7 @@ input = $('').val(oldName); form = $('
'); form.append(input); - td.children('a.name').hide(); + td.children('a.name').children(':not(.thumbnail-wrapper)').hide(); td.append(form); input.focus(); //preselect input @@ -2418,7 +2418,7 @@ input.tooltip('hide'); tr.data('renaming',false); form.remove(); - td.children('a.name').show(); + td.children('a.name').children(':not(.thumbnail-wrapper)').show(); } function updateInList(fileInfo) { @@ -2449,7 +2449,7 @@ basename = newName.substr(0, newName.lastIndexOf('.')); } td.find('a.name span.nametext').text(basename); - td.children('a.name').show(); + td.children('a.name').children(':not(.thumbnail-wrapper)').show(); var path = tr.attr('data-path') || self.getCurrentDirectory(); self.filesClient.move(OC.joinPaths(path, oldName), OC.joinPaths(path, newName)) -- cgit v1.2.3