diff --git a/static/js/cacheDialog.js b/static/js/cacheDialog.js index 3ec3d6ec6..ad651548d 100644 --- a/static/js/cacheDialog.js +++ b/static/js/cacheDialog.js @@ -332,13 +332,15 @@ pandora.ui.cacheDialog = function() { $list.value(file.id, 'size', file.size); } }); - updateStatus(); + updateStatus(files.length); }); } - function updateStatus() { + function updateStatus(items) { navigator.webkitPersistentStorage.queryUsageAndQuota(function(usage, quota) { $status.html( - Ox.formatValue(usage, 'B', true) + ' of ' + Ox.formatValue(quota, 'B', true) + Ox.formatNumber(items) + ' Items - ' + + Ox.formatValue(usage, 'B', true) + + ' of ' + Ox.formatValue(quota, 'B', true) ); })