{I" class:ETI"BundledAsset;FI"logical_path;TI"magic/helper.js;FI" pathname;TI"s/Users/austin/.rvm/gems/ruby-2.1.1/gems/magic_stylez-0.0.0.71/vendor/assets/javascripts/magic/helper.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+ú¼ËTI" length;TikI" digest;TI"%d5657d8fa881d26ff629d466ce9d01a1;FI" source;TI"k(function() { this.to_currency = function(number) { if (!isNaN(number)) { return (Math.round(parseFloat(number) * 100) / 100).toFixed(2); } else { return 0..toFixed(2); } }; this.to_euro = function(number) { return (to_currency(number)) + " €"; }; this.to_dollar = function(number) { return "$ " + (to_currency(number)); }; $(function() { return $("body").on("keyup", "input.number_field", function() { if (jQuery(this).val().indexOf(",") !== -1) { return jQuery(this).val(jQuery(this).val().replace(',', '.')); } }); }); }).call(this); ;TI"required_assets_digest;TI"%2eb714e703ade4460870f6020da90087;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F