Commit 12316af2 authored by Smari McCarthy's avatar Smari McCarthy
Browse files

nbsp, no default, etc

parent 3646cffc
......@@ -13,13 +13,6 @@ var dollar_multiplier_lookup_table = {
};
function Marka(target) {
console.log(this.currencies_supported());
this.setCurrency("isk");
this.getValueInSetCurrency(200, "usd", function(value){
console.log("Exchanged to: " + value);
});
if (!target) {
this.target = $('body').get();
} else {
......@@ -111,7 +104,7 @@ Marka.prototype.doConversions = function() {
var children = node.children()
self.getValueInSetCurrency(res.number, res.symbol, function(value, converted) {
if (converted) {
node.text(value.toFixed(2) + " " + self.getCurrentCurrency());
node.text(value.toFixed(0) + " " + self.getCurrentCurrency() + " ");
} else {
node.text(node.data("original_value"))
}
......@@ -201,7 +194,6 @@ Marka.prototype.findSymbol = function(text) {
}
}
}
console.log(result);
return result;
}
......
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