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.227 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.226 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.225 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.224 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.223 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.222 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.221 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.220 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.219 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.218 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.217 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.216 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.215 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.214 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.213 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.212 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.211 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.210 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.209 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.208 app/assets/javascripts/caboose/admin_main.js