From be418be6d223c3eb2d392c6933c9b34604309e9e Mon Sep 17 00:00:00 2001 From: Valera Rozuvan Date: Wed, 19 Dec 2012 18:29:57 +0200 Subject: [PATCH] Added default number of points to be width / 5. --- .../xmodule/xmodule/js/src/graphical_slider_tool/graph.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js b/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js index 39bc1bd9bf..49e5789025 100644 --- a/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js +++ b/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js @@ -303,10 +303,12 @@ define('Graph', ['logme'], function (logme) { tempNum = parseInt(config.plot.num_points, 10); if (isFinite(tempNum) === false) { - logme('ERROR: Expected config.plot.num_points to be a a valid integer. It is not.'); - logme('config.plot.num_points = ', config.plot.num_points); + // logme('ERROR: Expected config.plot.num_points to be a a valid integer. It is not.'); + // logme('config.plot.num_points = ', config.plot.num_points); - return false; + // return false; + + tempNum = plotDiv.width() / 5.0; } if (