# HG changeset patch # User Michiel Broek # Date 1590064076 -7200 # Node ID a4fcdf24b5e72c68526caeb0a7a1330c8a5f0e79 # Parent ccb9f24d0fe9b35b63b9e126845843599ed8b4a0 Removed ws_global function because dynamic menus don't work. diff -r ccb9f24d0fe9 -r a4fcdf24b5e7 www/js/global.js --- a/www/js/global.js Wed May 20 21:49:09 2020 +0200 +++ b/www/js/global.js Thu May 21 14:27:56 2020 +0200 @@ -769,12 +769,6 @@ $('#wsstatus').html('WebSocket error: ' + event.data); } -/* Handle global menu manipulation called by the user script. */ -function ws_global(msg) { - console.log('ws_global(' + msg + ')'); -} - - $(document).ready(function() { $('#jqxMenu').jqxMenu({ diff -r ccb9f24d0fe9 -r a4fcdf24b5e7 www/js/mon_co2meter.js --- a/www/js/mon_co2meter.js Wed May 20 21:49:09 2020 +0200 +++ b/www/js/mon_co2meter.js Thu May 21 14:27:56 2020 +0200 @@ -217,6 +217,5 @@ } updateScreen(); } - ws_global(msg); } }); diff -r ccb9f24d0fe9 -r a4fcdf24b5e7 www/js/mon_fermenter.js --- a/www/js/mon_fermenter.js Wed May 20 21:49:09 2020 +0200 +++ b/www/js/mon_fermenter.js Thu May 21 14:27:56 2020 +0200 @@ -612,7 +612,7 @@ var obj = JSON.parse(msg); if (obj.device == "fermenters" && obj.node == record.node && obj.unit == record.alias) { - console.log('ws got this device ' + msg); +// console.log('ws got this device ' + msg); record.online = obj.online; if (obj.online) { record.beeruuid = obj.beeruuid; @@ -661,6 +661,5 @@ } updateScreen(); } - ws_global(msg); } }); diff -r ccb9f24d0fe9 -r a4fcdf24b5e7 www/js/mon_ispindel.js --- a/www/js/mon_ispindel.js Wed May 20 21:49:09 2020 +0200 +++ b/www/js/mon_ispindel.js Thu May 21 14:27:56 2020 +0200 @@ -270,6 +270,5 @@ } updateScreen(); } - ws_global(msg); } });