show number of cached items in status bar.
This commit is contained in:
parent
295ddddf41
commit
8ef5d6908b
1 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||||
);
|
);
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue