From 99d41bec5d04fbdf5d457584cd4d22fef65ece25 Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Wed, 27 Aug 2014 10:28:31 +0100 Subject: Show original path information in trashbin and sharing views Path will only be shown if in subdirectory, not in root. --- apps/files/js/filelist.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 522ff627529..7c49c540d85 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -674,6 +674,12 @@ if (extension) { nameSpan.append($('').addClass('extension').text(extension)); } + if (fileData.extraData) { + if (fileData.extraData.charAt(0) === '/') { + fileData.extraData = fileData.extraData.substr(1); + } + nameSpan.addClass('extra-data').attr('title', fileData.extraData); + } // dirs can show the number of uploaded files if (type === 'dir') { linkElem.append($('').attr({ -- cgit v1.2.3