diff --git a/kfet/templates/kfet/history.html b/kfet/templates/kfet/history.html
index 97a0e413..eacd6e73 100644
--- a/kfet/templates/kfet/history.html
+++ b/kfet/templates/kfet/history.html
@@ -7,6 +7,7 @@
+
@@ -223,6 +224,35 @@ $(document).ready(function() {
});
}
+ // -----
+ // Synchronization
+ // -----
+
+
+ websocket_msg_default = {'opegroups':[],'opes':[]}
+
+ var websocket_protocol = window.location.protocol == 'https:' ? 'wss' : 'ws';
+ var location_host = window.location.host;
+ var location_url = window.location.pathname.startsWith('/gestion/') ? location_host + '/gestion' : location_host;
+ socket = new ReconnectingWebSocket(websocket_protocol+"://" + location_url + "/ws/k-fet/k-psul/");
+ socket.onmessage = function(e) {
+ data = $.extend({}, websocket_msg_default, JSON.parse(e.data));
+
+ for (var i=0; i
+
@@ -162,6 +163,27 @@ $(document).ready(function() {
});
}
+ // -----
+ // Synchronization
+ // -----
+
+
+ websocket_msg_default = {'opes':[]}
+
+ var websocket_protocol = window.location.protocol == 'https:' ? 'wss' : 'ws';
+ var location_host = window.location.host;
+ var location_url = window.location.pathname.startsWith('/gestion/') ? location_host + '/gestion' : location_host;
+ socket = new ReconnectingWebSocket(websocket_protocol+"://" + location_url + "/ws/k-fet/k-psul/");
+ socket.onmessage = function(e) {
+ data = $.extend({}, websocket_msg_default, JSON.parse(e.data));
+
+ for (var i=0; i