Upgraded phpmyadmin to 4.0.4 (All Languages) - No modifications yet
[openemr.git] / phpmyadmin / js / jqplot / plugins / jqplot.byteFormatter.js
blob9525bd1da6aeeabd5432a50f529d06a39ef7774a
1 (function(b){var a=function(f,d){var c=[PMA_messages.strB,PMA_messages.strKiB,PMA_messages.strMiB,PMA_messages.strGiB,PMA_messages.strTiB,PMA_messages.strPiB,PMA_messages.strEiB];while(f>=1024&&d<=6){f/=1024;d++}var e="%.1f";if(Math.floor(f)===f){e="%.0f"}return b.jqplot.sprintf(e+" "+c[d],f)};b.jqplot.byteFormatter=function(c){c=c||0;return function(d,e){if(typeof e==="number"){e=parseFloat(e)||0;return a(e,c)}else{return String(e)}}}})(jQuery);