From 2548043adf32b8c8add18079c61b4ba1c47109e9 Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Thu, 20 Sep 2012 01:21:31 +0530 Subject: [PATCH] Fix unwanted error on mouseup --- js/server_status_monitor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/server_status_monitor.js b/js/server_status_monitor.js index 38b0cbd236..4ba5b7dee6 100644 --- a/js/server_status_monitor.js +++ b/js/server_status_monitor.js @@ -1222,7 +1222,9 @@ $(function() { }); $(document.body).mouseup(function() { - selectionBox.remove(); + if($('#selection_box').length) { + selectionBox.remove(); + } }); // Edit, Print icon only in edit mode