From c880618d5f60674b5306cd5e8c299969cfe4a4b6 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 16 Apr 2021 10:24:48 -0400 Subject: [PATCH] If no button is associated with the event, assume it is a mouseup --- web/skins/classic/views/js/watch.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index 6dec23151..ed897ed00 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -672,7 +672,8 @@ if ( monitorType != 'WebSite' ) { } var controlReq = new Request.JSON( { url: monitorUrl, - method: 'post', + method: 'get', + //method: 'post', timeout: AJAX_TIMEOUT, link: 'cancel', onSuccess: getControlResponse @@ -691,12 +692,17 @@ function getControlResponse(respObj, respText) { function controlCmd(event) { button = event.target; - control = button.getAttribute('value'); + if (event.buttons) { + control = button.getAttribute('value'); + } else { + console.log('stop'); + control = 'moveStop'; + } xtell = button.getAttribute('data-xtell'); ytell = button.getAttribute('data-ytell'); var locParms = ''; - if ( event && (xtell || ytell) ) { + if (xtell || ytell) { var target = event.target; var coords = $(target).getCoordinates();