summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js6
-rw-r--r--apps/files/lib/helper.php3
2 files changed, 9 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({
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index 50b4e8338a8..a0c0aa4952e 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -138,6 +138,9 @@ class Helper
}
$entry['mountType'] = $mountType;
}
+ if (isset($i['extraData'])) {
+ $entry['extraData'] = $i['extraData'];
+ }
return $entry;
}