Permalink
Browse files

removed errors

  • Loading branch information...
1 parent 278e8b1 commit 3228048450193af3331392afaa2ce9be56be2daf @Raigen committed Sep 16, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 numberFormat.js
  2. +1 −1 test/index.html
View
2 numberFormat.js
@@ -23,6 +23,6 @@ function formatNumber(input, format, thousand, num) {
alert(firstNumber + '.' + secondNumber);
//parsing format
- result = String(format).replace('$1', first).replace('$2', second);
+ result = String(format).replace('$1', firstNumber).replace('$2', secondNumber);
return result;
}
View
2 test/index.html
@@ -7,7 +7,7 @@
<script>
function format() {
var value = document.getElementById("number").value;
- document.getElementById("result").innerHtml(formatNumber(value,"$1,$2 &euro;", '.', 2));
+ document.getElementById("result").innerHTML = formatNumber(value,"$1,$2 &euro;", '.', 2);
}
</script>
</head>

0 comments on commit 3228048

Please sign in to comment.