diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-11-15 14:09:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 14:09:55 +0100 |
commit | 790ee0c8a3117cfc9effbb7d0512091cd4c8d770 (patch) | |
tree | 2ddd61d0a8f5bf723cfa9162090a8395dcbb10fe /apps/files/js | |
parent | a4d81ba1641db8136b13d2bb7b7c0176c916ec7e (diff) | |
parent | c09560627fd34bd48887e44b4cbf1db2d8efc0ac (diff) | |
download | nextcloud-server-790ee0c8a3117cfc9effbb7d0512091cd4c8d770.tar.gz nextcloud-server-790ee0c8a3117cfc9effbb7d0512091cd4c8d770.zip |
Merge pull request #12467 from nextcloud/bugfix/11901/show-thumbnail-on-rename
Show thumbnail on rename
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 6 |
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)) |