From bb6c045a18734d561732f9bd9cb8fd9e791b70c1 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 11 May 2021 17:25:04 -0400 Subject: [PATCH] Fix query params when including auth_relay. Fixes #2261 --- web/skins/classic/views/js/watch.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index 6dec23151..b0e60e2c5 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -458,22 +458,22 @@ function getAlarmCmdResponse(respObj, respText) { } function cmdDisableAlarms() { - alarmCmdReq.send(alarmCmdParms+auth_relay+"&command=disableAlarms"); + alarmCmdReq.send(alarmCmdParms+'&'+auth_relay+"&command=disableAlarms"); } function cmdEnableAlarms() { - alarmCmdReq.send(alarmCmdParms+auth_relay+"&command=enableAlarms"); + alarmCmdReq.send(alarmCmdParms+'&'+auth_relay+"&command=enableAlarms"); } function cmdForceAlarm() { - alarmCmdReq.send(alarmCmdParms+auth_relay+"&command=forceAlarm"); + alarmCmdReq.send(alarmCmdParms+'&'+auth_relay+"&command=forceAlarm"); if ( window.event ) { window.event.preventDefault(); } } function cmdCancelForcedAlarm() { - alarmCmdReq.send(alarmCmdParms+auth_relay+"&command=cancelForcedAlarm"); + alarmCmdReq.send(alarmCmdParms+'&'+auth_relay+"&command=cancelForcedAlarm"); if ( window.event ) { window.event.preventDefault(); }