Bug 597304. Change wording for manual cache size override. r=gavin a=beta7

This commit is contained in:
Jason Duell
2010-09-22 14:33:54 -07:00
parent 2320577403
commit 28a7ba816b
3 changed files with 18 additions and 14 deletions

View File

@@ -191,8 +191,7 @@ var gAdvancedPane = {
*
* browser.cache.disk.capacity
* - the size of the browser cache in KB
* browser.cache.disk.smart_size.enabled
* - If disabled, disk.capacity is used
* - Only used if browser.cache.disk.smart_size.enabled is disabled
*/
/**
@@ -243,8 +242,10 @@ var gAdvancedPane = {
readSmartSizeEnabled: function ()
{
var enabled = document.getElementById("browser.cache.disk.smart_size.enabled").value;
this.updateCacheSizeUI(enabled);
// The smart_size.enabled preference element is inverted="true", so its
// value is the opposite of the actual pref value
var disabled = document.getElementById("browser.cache.disk.smart_size.enabled").value;
this.updateCacheSizeUI(!disabled);
},
/**