summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-11-15 12:14:15 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-11-15 12:14:15 +0100
commit61f7eecc0b6ccc8ef29bee8e5aa3384e2363722a (patch)
tree8a1bc47b0eda228eb660b539f4172cb3a24b6c50 /apps/files/js
parent10c9b37461a1d4cf3fae12038d3125555a3d8b6e (diff)
downloadnextcloud-server-61f7eecc0b6ccc8ef29bee8e5aa3384e2363722a.tar.gz
nextcloud-server-61f7eecc0b6ccc8ef29bee8e5aa3384e2363722a.zip
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 <hey@morrisjobke.de>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js6
1 files changed, 3 insertions, 3 deletions
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 = $('<input type="text" class="filename"/>').val(oldName);
form = $('<form></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))