SVGHMI: removed debug code forgotten here and there. svghmi
authorEdouard Tisserant
Mon, 24 Aug 2020 09:48:35 +0200
branchsvghmi
changeset 3035 d1fc8c55c1d3
parent 3034 793ce2117258
child 3036 4930455428df
SVGHMI: removed debug code forgotten here and there.
svghmi/svghmi.js
svghmi/widget_display.ysl2
svghmi/widget_dropdown.ysl2
svghmi/widget_jsontable.ysl2
--- a/svghmi/svghmi.js	Fri Aug 21 14:29:03 2020 +0200
+++ b/svghmi/svghmi.js	Mon Aug 24 09:48:35 2020 +0200
@@ -240,7 +240,6 @@
 
 function send_hmi_value(index, value) {
     if(index > last_remote_index){
-        console.log("updated local variable ",index,value);
         updates[index] = value;
         requestHMIAnimation();
         return;
@@ -416,7 +415,6 @@
 function edit_value(path, valuetype, callback, initial, size) {
 
     let [keypadid, xcoord, ycoord] = keypads[valuetype];
-    console.log('XXX TODO : Edit value', path, valuetype, callback, initial, keypadid);
     edit_callback = callback;
     let widget = hmi_widgets[keypadid];
     widget.start_edit(path, valuetype, callback, initial, size);
@@ -461,7 +459,6 @@
     eltsub.inactive.setAttribute("style", "display:none");
     if(eltsub.active_style !== undefined)
             eltsub.active.setAttribute("style", eltsub.active_style);
-    console.log("active", eltsub);
 };
 function widget_inactive_activable(eltsub) {
     if(eltsub.active_style === undefined)
@@ -469,5 +466,4 @@
     eltsub.active.setAttribute("style", "display:none");
     if(eltsub.inactive_style !== undefined)
             eltsub.inactive.setAttribute("style", eltsub.inactive_style);
-    console.log("inactive", eltsub);
-};
+};
--- a/svghmi/widget_display.ysl2	Fri Aug 21 14:29:03 2020 +0200
+++ b/svghmi/widget_display.ysl2	Mon Aug 24 09:48:35 2020 +0200
@@ -7,7 +7,6 @@
         frequency = 5;
         dispatch(value, oldval, index) {
             this.fields[index] = value;    
-            console.log(value, index);
             this.element.textContent = this.args.length == 1 ? vsprintf(this.args[0],this.fields) : this.fields.join(' ');
         }
     }
--- a/svghmi/widget_dropdown.ysl2	Fri Aug 21 14:29:03 2020 +0200
+++ b/svghmi/widget_dropdown.ysl2	Mon Aug 24 09:48:35 2020 +0200
@@ -158,7 +158,6 @@
                 0, 
                 this.menu_offset - spanslength);
         }
-        console.log(this.menu_offset);
         this.set_partial_text();
     },
     // Setup partial view text content
--- a/svghmi/widget_jsontable.ysl2	Fri Aug 21 14:29:03 2020 +0200
+++ b/svghmi/widget_jsontable.ysl2	Mon Aug 24 09:48:35 2020 +0200
@@ -22,7 +22,6 @@
 
         }
         dispatch(value, oldval, index) {
-            console.log("mhooo", index);
             this.cache[index] = value;
             this.do_http_request();
         }