Thu, 21 May 2020 14:27:56 +0200
Removed ws_global function because dynamic menus don't work.
--- 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({
--- 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); } });
--- 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); } });