diff options
author | Andrew Dolgov <[email protected]> | 2006-03-04 11:35:47 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-03-04 11:35:47 +0100 |
commit | cf1bc085fad8d1cf3133124af990372b932c9436 (patch) | |
tree | e9e63947cde1b0eaab5216c598b4da9821230a80 /functions.js | |
parent | 8ac0c627ebd454e15a7cba686b6fc2a783bb430e (diff) |
prettify debug output
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/functions.js b/functions.js index a0d6ecc1e..14939cdc6 100644 --- a/functions.js +++ b/functions.js @@ -849,4 +849,8 @@ function getURLParam(strParamName){ return strReturn; } - +function leading_zero(p) { + var s = String(p); + if (s.length == 1) s = "0" + s; + return s; +} |