witten
/
luminotes
Archived
1
0
Fork 0

Fixed a bug in which the storage usage area was trying to be accessed even if it wasn't present.

This commit is contained in:
Dan Helfman 2008-11-17 14:45:10 -08:00
parent 76073a93dd
commit 9dec0ae991
1 changed files with 5 additions and 1 deletions

View File

@ -207,8 +207,12 @@ Wiki.prototype.display_storage_usage = function( storage_bytes ) {
this.storage_usage_high = false;
}
var storage_usage_area = getElement( "storage_usage_area" );
if ( !storage_usage_area )
return;
replaceChildNodes(
"storage_usage_area",
storage_usage_area,
createDOM( "div", { "class": storage_usage_class },
bytes_to_megabytes( storage_bytes ) + " (" + usage_percent + "%) of " + bytes_to_megabytes( quota_bytes ) )
);