From 1963cbe77ec15a22377b13b95b48edceeb47a3f3 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Mon, 27 Apr 2015 13:11:26 +0200 Subject: Add radix parameter to parseInt In js, parseInt without a radix parameter behaves in unpredictable ways depending on the user input, that's why jshint/jslint recommends to always specify it. Change-Id: Ib106ae0124ba1e6b2877f0e24e7696581b3abbd8 --- .../infrastructure/static/infrastructure/js/horizon.d3singlebarchart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuskar_ui/infrastructure/static/infrastructure/js/horizon.d3singlebarchart.js b/tuskar_ui/infrastructure/static/infrastructure/js/horizon.d3singlebarchart.js index 20e8f47f..2c681f28 100644 --- a/tuskar_ui/infrastructure/static/infrastructure/js/horizon.d3singlebarchart.js +++ b/tuskar_ui/infrastructure/static/infrastructure/js/horizon.d3singlebarchart.js @@ -135,7 +135,7 @@ horizon.d3_single_bar_chart = { self.auto_scale = function () { var max_scale = 0; $(self.auto_scale_selector()).each(function() { - var scale = parseInt($(this).data('single-bar-used')); + var scale = parseInt($(this).data('single-bar-used'), 10); if (scale > max_scale) max_scale = scale; }); -- cgit v1.2.1