aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-11 16:52:56 +0100
committerVincent Petry <pvince81@owncloud.com>2014-04-28 14:49:39 +0200
commit9f62059efa869ff677130f06bf1b46be49950515 (patch)
tree260c955913a6a8746645d816feffc933b436b343 /core/js/js.js
parentefdf0c4df0012fe03fb3de136ff596af1bb38677 (diff)
downloadnextcloud-server-9f62059efa869ff677130f06bf1b46be49950515.tar.gz
nextcloud-server-9f62059efa869ff677130f06bf1b46be49950515.zip
Fix file summary to use the whole file list
- moved the summary code into a new class FileSummary - FileSummary is calculated only once, then updated with add/remove - added new OC.Util namespace for JS utility functions
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 0aa8d12b3d6..325be6cdc53 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1253,6 +1253,9 @@ function relative_modified_date(timestamp) {
* @todo Write documentation
*/
OC.Util = {
+ // TODO: remove original functions from global namespace
+ humanFileSize: humanFileSize,
+ formatDate: formatDate,
/**
* Returns whether the browser supports SVG
* @return {boolean} true if the browser supports SVG, false otherwise