Inline control structures are discouraged

This commit is contained in:
Madhura Jayaratne 2012-09-22 23:54:46 +05:30
parent 150a47f4b7
commit d1b1ad830a

View File

@ -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')