forked from 0x2620/oxjs
updates to url controller, filter and form elements
This commit is contained in:
parent
170fd84c80
commit
07c79ed7ac
7 changed files with 162 additions and 79 deletions
|
|
@ -548,6 +548,7 @@ Ox.formatValue = function(num, str, bin) {
|
|||
/*@
|
||||
Ox.formatUnit <f> Formats a number with a unit
|
||||
@*/
|
||||
Ox.formatUnit = function(num, str) {
|
||||
return Ox.formatNumber(num, 3) + ' ' + str;
|
||||
Ox.formatUnit = function(num, str, dec) {
|
||||
dec = Ox.isUndefined(dec) ? 3 : dec;
|
||||
return Ox.formatNumber(num, dec) + (str == '%' ? '' : ' ') + str;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue