From d1b1ad830a57c37b998b74f9681205808983dcd9 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sat, 22 Sep 2012 23:54:46 +0530 Subject: [PATCH] Inline control structures are discouraged --- js/server_status_monitor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/server_status_monitor.js b/js/server_status_monitor.js index 1e9313c066..9dabf0b77d 100644 --- a/js/server_status_monitor.js +++ b/js/server_status_monitor.js @@ -1119,8 +1119,9 @@ $(function() { }); $('#gridchart' + runtime.chartAI).bind('jqplotMouseUp', function(ev, gridpos, datapos, neighbor, plot) { - if(! drawTimeSpan) + if(! drawTimeSpan) { return; + } selectionTimeDiff.push(datapos.xaxis); @@ -1164,8 +1165,9 @@ $(function() { $('#tooltip_box').html(s); } - if(! drawTimeSpan) + if(! drawTimeSpan) { return; + } if (selectionStartX != undefined) { $('#selection_box')