Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/jqplot
diff options
context:
space:
mode:
authorRouslan Placella <rouslan@placella.com>2012-12-09 04:30:30 +0400
committerRouslan Placella <rouslan@placella.com>2012-12-14 23:05:04 +0400
commitf7f15663e2b0e5221852a2e50ef5723071e440bc (patch)
treebef8d0bb97679ba6758a6f657d5d4d9db6e511ef /js/jqplot
parent0f317d4b56d560d3e77cb906fc087fca0068e223 (diff)
There is no radix parameter in parseFloat
Diffstat (limited to 'js/jqplot')
-rw-r--r--js/jqplot/plugins/jqplot.byteFormatter.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/jqplot/plugins/jqplot.byteFormatter.js b/js/jqplot/plugins/jqplot.byteFormatter.js
index 75c7a194be..68d2d8625b 100644
--- a/js/jqplot/plugins/jqplot.byteFormatter.js
+++ b/js/jqplot/plugins/jqplot.byteFormatter.js
@@ -23,11 +23,15 @@
format + ' ' + units[index], val
);
};
+ /**
+ * The index indicates what unit the incoming data will be in.
+ * 0 for bytes, 1 for kilobytes and so on...
+ */
$.jqplot.byteFormatter = function (index) {
index = index || 0;
return function (format, val) {
if (typeof val === 'number') {
- val = parseFloat(val, 10) || 0;
+ val = parseFloat(val) || 0;
return formatByte(val, index);
} else {
return String(val);