Sha256: 6b58f4b4c1ae70c7dca651a80a20798d68fbba4f5eab59b549155c0bd3d693d5

Contents?: true

Size: 1.08 KB

Versions: 108

Compression:

Stored size: 1.08 KB

Contents

{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

Version data entries

108 entries across 54 versions & 1 rubygems

Version Path
magic_addresses-0.0.44 spec/dummy/tmp/cache/assets/development/sprockets/72f733e6c34e66fc69962512d1b86d98
magic_addresses-0.0.44 spec/dummy/tmp/cache/assets/development/sprockets/7a549dfd57070889cc5459d83d1dbafc
magic_addresses-0.0.43 spec/dummy/tmp/cache/assets/development/sprockets/7a549dfd57070889cc5459d83d1dbafc
magic_addresses-0.0.43 spec/dummy/tmp/cache/assets/development/sprockets/72f733e6c34e66fc69962512d1b86d98
magic_addresses-0.0.42 spec/dummy/tmp/cache/assets/development/sprockets/72f733e6c34e66fc69962512d1b86d98
magic_addresses-0.0.42 spec/dummy/tmp/cache/assets/development/sprockets/7a549dfd57070889cc5459d83d1dbafc
magic_addresses-0.0.41 spec/dummy/tmp/cache/assets/development/sprockets/7a549dfd57070889cc5459d83d1dbafc
magic_addresses-0.0.41 spec/dummy/tmp/cache/assets/development/sprockets/72f733e6c34e66fc69962512d1b86d98
magic_addresses-0.0.40 spec/dummy/tmp/cache/assets/development/sprockets/7a549dfd57070889cc5459d83d1dbafc
magic_addresses-0.0.40 spec/dummy/tmp/cache/assets/development/sprockets/72f733e6c34e66fc69962512d1b86d98
magic_addresses-0.0.39 spec/dummy/tmp/cache/assets/development/sprockets/72f733e6c34e66fc69962512d1b86d98
magic_addresses-0.0.39 spec/dummy/tmp/cache/assets/development/sprockets/7a549dfd57070889cc5459d83d1dbafc
magic_addresses-0.0.39.rc8 spec/dummy/tmp/cache/assets/development/sprockets/72f733e6c34e66fc69962512d1b86d98
magic_addresses-0.0.39.rc8 spec/dummy/tmp/cache/assets/development/sprockets/7a549dfd57070889cc5459d83d1dbafc
magic_addresses-0.0.39.rc7 spec/dummy/tmp/cache/assets/development/sprockets/72f733e6c34e66fc69962512d1b86d98
magic_addresses-0.0.39.rc7 spec/dummy/tmp/cache/assets/development/sprockets/7a549dfd57070889cc5459d83d1dbafc
magic_addresses-0.0.39.rc6 spec/dummy/tmp/cache/assets/development/sprockets/7a549dfd57070889cc5459d83d1dbafc
magic_addresses-0.0.39.rc6 spec/dummy/tmp/cache/assets/development/sprockets/72f733e6c34e66fc69962512d1b86d98
magic_addresses-0.0.39.rc5 spec/dummy/tmp/cache/assets/development/sprockets/72f733e6c34e66fc69962512d1b86d98
magic_addresses-0.0.39.rc5 spec/dummy/tmp/cache/assets/development/sprockets/7a549dfd57070889cc5459d83d1dbafc