vendor/assets/elfinder_OLD/js/elfinder.full.js
function(s) {
		var n = 1, u = 'b';
		
		if (s == 'unknown') {
			return this.i18n('unknown');
		}
		
		if (s > 1073741824) {
			n = 1073741824;
			u = 'GB';
		} else if (s > 1048576) {
			n = 1048576;
			u = 'MB';
		} else if (s > 1024) {
			n = 1024;
			u = 'KB';
		}
		s = s/n;
		return (s > 0 ? n >= 1048576 ? s.toFixed(2) : Math.round(s) : 0) +' '+u;
	}
function(s) {
		var n = 1, u = 'b';
		
		if (s == 'unknown') {
			return this.i18n('unknown');
		}
		
		if (s > 1073741824) {
			n = 1073741824;
			u = 'GB';
		} else if (s > 1048576) {
			n = 1048576;
			u = 'MB';
		} else if (s > 1024) {
			n = 1024;
			u = 'KB';
		}
		s = s/n;
		return (s > 0 ? n >= 1048576 ? s.toFixed(2) : Math.round(s) : 0) +' '+u;
	}
function ( s ) { var n = 1 , u = 'b' ; if ( s == 'unknown' ) { return this . i18n ( 'unknown' ) ; } if ( s > 1073741824 ) { n = 1073741824 ; u = 'GB' ; } else if ( s > 1048576 ) { n = 1048576 ; u = 'MB' ; } else if ( s > 1024 ) { n = 1024 ; u = 'KB' ; } s = s / n ; return ( s > 0 ? n >= 1048576 ? s . toFixed ( 2 ) : Math . round ( s ) : 0 ) + ' ' + u ; }
Return formated file size

@param  Number  file size
@return String
Return formated file size