summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filesummary.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-08 09:42:20 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-01-07 12:56:32 +0100
commitbfdf0db7c069f3a456c48b185f6222c1dcef2bbe (patch)
tree5c1d0a19192d84bbad9c49a44475e27c6024b0dd /apps/files/js/filesummary.js
parent622c4cf77903470bc7ddc1df5b74d5e17a0e70c7 (diff)
downloadnextcloud-server-bfdf0db7c069f3a456c48b185f6222c1dcef2bbe.tar.gz
nextcloud-server-bfdf0db7c069f3a456c48b185f6222c1dcef2bbe.zip
Autoescape of placeholders in t() and p() - for JS
* add disableEscape parameter to disable this functionality * drop usage of escapeHTML() that is now done inside t() * add unit test for escaped and not escaped placeholder * proper JSDoc
Diffstat (limited to 'apps/files/js/filesummary.js')
-rw-r--r--apps/files/js/filesummary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filesummary.js b/apps/files/js/filesummary.js
index f83eb54678b..d3afc0239d1 100644
--- a/apps/files/js/filesummary.js
+++ b/apps/files/js/filesummary.js
@@ -180,7 +180,7 @@
fileSize = '<td class="filesize">' + OC.Util.humanFileSize(summary.totalSize) + '</td>';
}
- var info = t('files', '{dirs} and {files}', infoVars);
+ var info = t('files', '{dirs} and {files}', infoVars, null, {'escape': false});
var $summary = $('<td><span class="info">'+info+'</span></td>'+fileSize+'<td class="date"></td>');