diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-08-27 10:28:31 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-09-11 15:45:42 +0100 |
commit | 99d41bec5d04fbdf5d457584cd4d22fef65ece25 (patch) | |
tree | 079ee19291f919a90ad7b1ca2595555050d25b7a /apps/files/js | |
parent | 712addac683110c44527cbb9dfe9133821712241 (diff) | |
download | nextcloud-server-99d41bec5d04fbdf5d457584cd4d22fef65ece25.tar.gz nextcloud-server-99d41bec5d04fbdf5d457584cd4d22fef65ece25.zip |
Show original path information in trashbin and sharing views
Path will only be shown if in subdirectory, not in root.
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 6 |
1 files changed, 6 insertions, 0 deletions
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($('<span></span>').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($('<span></span>').attr({ |