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.5.187 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.186 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.185 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.184 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.183 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.182 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.181 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.180 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.179 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.178 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.177 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.176 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.175 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.174 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.173 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.172 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.171 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.170 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.169 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.168 app/assets/javascripts/caboose/admin_main.js