projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix doc menu
[roojs1]
/
roojs-core-debug.js
diff --git
a/roojs-core-debug.js
b/roojs-core-debug.js
index
02fc5b2
..
cb3923e
100644
(file)
--- a/
roojs-core-debug.js
+++ b/
roojs-core-debug.js
@@
-13991,6
+13991,7
@@
Roo.util.Format = function(){
stripTags : function(v){
return !v ? v : String(v).replace(this.stripTagsRE, "");
},
stripTags : function(v){
return !v ? v : String(v).replace(this.stripTagsRE, "");
},
+
/**
* Size in Mb,Gb etc.
* @param {Number} value The number to be formated
/**
* Size in Mb,Gb etc.
* @param {Number} value The number to be formated
@@
-14000,11
+14001,11
@@
Roo.util.Format = function(){
size : function(value, decimals)
{
var sizes = ['b', 'k', 'M', 'G', 'T'];
size : function(value, decimals)
{
var sizes = ['b', 'k', 'M', 'G', 'T'];
- if (v == 0) {
+ if (v
alue
== 0) {
return 0;
}
return 0;
}
- var i = parseInt(Math.floor(Math.log(v) / Math.log(1024)));
- return
this.number(v / Math.pow(1024, i) ,decimals) + ' '
+ sizes[i];
+ var i = parseInt(Math.floor(Math.log(v
alue
) / Math.log(1024)));
+ return
Roo.util.Format.number(value/ Math.pow(1024, i) ,decimals)
+ sizes[i];
}
}