Sha256: fa11793d4ee492908815d6212b05374b2f2a7d6f51f80c59429d00c6df2f40ae

Contents?: true

Size: 304 Bytes

Versions: 197

Compression:

Stored size: 304 Bytes

Contents

function curr(x)
{
  if (!x) return '0.00'
  var t = typeof x;
  if (t == 'boolean') return '0.00';
  if (t == 'number')  return x.toFixed(2);
  if (t == 'string')  return parseFloat(x).toFixed(2);
  console.log("curr doesn't know what this is:");
  console.log(x);
  console.log(t);
  return 'STAHP'
}

Version data entries

197 entries across 197 versions & 1 rubygems

Version Path
caboose-cms-0.6.29 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.28 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.27 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.26 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.25 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.24 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.23 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.22 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.21 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.20 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.19 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.18 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.17 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.16 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.15 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.14 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.13 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.12 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.11 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.6.10 app/assets/javascripts/caboose/admin_main.js