Commit 4021045e authored by Ad Schellevis's avatar Ad Schellevis

(mvc) wrong default setter

parent e5d57a43
......@@ -35,8 +35,11 @@
* @param decimals decimal places
* @return string
*/
function byteFormat(bytes, decimals=0)
function byteFormat(bytes, decimals)
{
if (decimals == undefined) {
decimals = 0;
}
var kb = 1024;
var ndx = Math.floor( Math.log(bytes) / Math.log(kb) );
var fileSizeTypes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment