Removed ws_global function because dynamic menus don't work.

Thu, 21 May 2020 14:27:56 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 21 May 2020 14:27:56 +0200
changeset 685
a4fcdf24b5e7
parent 684
ccb9f24d0fe9
child 686
ca1fbb3bd3db

Removed ws_global function because dynamic menus don't work.

www/js/global.js file | annotate | diff | comparison | revisions
www/js/mon_co2meter.js file | annotate | diff | comparison | revisions
www/js/mon_fermenter.js file | annotate | diff | comparison | revisions
www/js/mon_ispindel.js file | annotate | diff | comparison | revisions
--- 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);
  }
 });
--- 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);
  }
 });

mercurial