From c44db2e2a1811aa807990e69bbc812201fd80cc8 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Thu, 2 Jul 2015 20:06:06 +0530 Subject: [PATCH] Variable 'selectionBox' implicitly declared. Signed-off-by: Madhura Jayaratne --- js/server_status_monitor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/server_status_monitor.js b/js/server_status_monitor.js index e1bcad371e..4d017a36cc 100644 --- a/js/server_status_monitor.js +++ b/js/server_status_monitor.js @@ -1238,7 +1238,7 @@ AJAX.registerOnload('server_status_monitor.js', function () { if ($('#selection_box').length) { $('#selection_box').remove(); } - selectionBox = $('
'); + var selectionBox = $('
'); $(document.body).append(selectionBox); selectionStartX = ev.pageX; selectionStartY = ev.pageY; @@ -1289,7 +1289,7 @@ AJAX.registerOnload('server_status_monitor.js', function () { $(document.body).mouseup(function () { if ($('#selection_box').length) { - selectionBox.remove(); + $('#selection_box').remove(); } });