diff --git a/web/skins/classic/js/skin.js.php b/web/skins/classic/js/skin.js.php index 87e08310e..2b7980c3a 100644 --- a/web/skins/classic/js/skin.js.php +++ b/web/skins/classic/js/skin.js.php @@ -90,3 +90,18 @@ unset($user_without_password['Password']); echo json_encode($user_without_password); ?>; var running = ; + +var STATE_UNKNOWN = ; +var STATE_IDLE = ; +var STATE_PREALARM = ; +var STATE_ALARM = ; +var STATE_ALERT = ; +var STATE_TAPE = ; + +var stateStrings = new Array(); +stateStrings[STATE_UNKNOWN] = ""; +stateStrings[STATE_IDLE] = ""; +stateStrings[STATE_PREALARM] = ""; +stateStrings[STATE_ALARM] = ""; +stateStrings[STATE_ALERT] = ""; +stateStrings[STATE_TAPE] = ""; diff --git a/web/skins/classic/views/js/montage.js.php b/web/skins/classic/views/js/montage.js.php index 9b6962119..1c1c4130e 100644 --- a/web/skins/classic/views/js/montage.js.php +++ b/web/skins/classic/views/js/montage.js.php @@ -1,18 +1,6 @@ // // Import constants // -var STATE_IDLE = ; -var STATE_PREALARM = ; -var STATE_ALARM = ; -var STATE_ALERT = ; -var STATE_TAPE = ; - -var stateStrings = new Array(); -stateStrings[STATE_IDLE] = ""; -stateStrings[STATE_PREALARM] = ""; -stateStrings[STATE_ALARM] = ""; -stateStrings[STATE_ALERT] = ""; -stateStrings[STATE_TAPE] = ""; var CMD_QUERY = ; diff --git a/web/skins/classic/views/js/watch.js.php b/web/skins/classic/views/js/watch.js.php index 5b4568dfc..74a86100c 100644 --- a/web/skins/classic/views/js/watch.js.php +++ b/web/skins/classic/views/js/watch.js.php @@ -9,18 +9,6 @@ // // Import constants // -var STATE_IDLE = ; -var STATE_PREALARM = ; -var STATE_ALARM = ; -var STATE_ALERT = ; -var STATE_TAPE = ; - -var stateStrings = new Array(); -stateStrings[STATE_IDLE] = ""; -stateStrings[STATE_PREALARM] = ""; -stateStrings[STATE_ALARM] = ""; -stateStrings[STATE_ALERT] = ""; -stateStrings[STATE_TAPE] = ""; var deleteString = ""; diff --git a/web/skins/classic/views/js/zone.js.php b/web/skins/classic/views/js/zone.js.php index 37eb6db82..2ba286d55 100644 --- a/web/skins/classic/views/js/zone.js.php +++ b/web/skins/classic/views/js/zone.js.php @@ -94,20 +94,6 @@ var deleteString = ""; // Imported from watch.js.php and modified for new zone edit view // -var STATE_IDLE = ; -var STATE_PREALARM = ; -var STATE_ALARM = ; -var STATE_ALERT = ; -var STATE_TAPE = ; - -var stateStrings = new Array(); -stateStrings[STATE_IDLE] = ""; -stateStrings[STATE_PREALARM] = ""; -stateStrings[STATE_ALARM] = ""; -stateStrings[STATE_ALERT] = ""; -stateStrings[STATE_TAPE] = ""; - - var CMD_PAUSE = ; var CMD_PLAY = ; var CMD_STOP = ; diff --git a/web/skins/classic/views/js/zones.js.php b/web/skins/classic/views/js/zones.js.php index 338095552..414231d12 100644 --- a/web/skins/classic/views/js/zones.js.php +++ b/web/skins/classic/views/js/zones.js.php @@ -17,25 +17,10 @@ monitorData[monitorData.length] = { } ?> -var STATE_IDLE = ; -var STATE_PREALARM = ; -var STATE_ALARM = ; -var STATE_ALERT = ; -var STATE_TAPE = ; - -var stateStrings = new Array(); -stateStrings[STATE_IDLE] = ""; -stateStrings[STATE_PREALARM] = ""; -stateStrings[STATE_ALARM] = ""; -stateStrings[STATE_ALERT] = ""; -stateStrings[STATE_TAPE] = ""; - - var CMD_PAUSE = ; var CMD_PLAY = ; var CMD_STOP = ; var CMD_QUERY = ; var CMD_QUIT = ; - var statusRefreshTimeout = ;