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.167 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.166 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.165 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.164 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.163 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.162 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.161 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.160 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.159 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.158 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.156 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.155 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.154 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.153 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.152 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.151 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.150 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.149 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.148 app/assets/javascripts/caboose/admin_main.js
caboose-cms-0.5.147 app/assets/javascripts/caboose/admin_main.js