show number of cached items in status bar.

This commit is contained in:
j 2015-04-11 23:29:30 +02:00
parent 295ddddf41
commit 8ef5d6908b

View file

@ -332,13 +332,15 @@ pandora.ui.cacheDialog = function() {
$list.value(file.id, 'size', file.size); $list.value(file.id, 'size', file.size);
} }
}); });
updateStatus(); updateStatus(files.length);
}); });
} }
function updateStatus() { function updateStatus(items) {
navigator.webkitPersistentStorage.queryUsageAndQuota(function(usage, quota) { navigator.webkitPersistentStorage.queryUsageAndQuota(function(usage, quota) {
$status.html( $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)
); );
}) })