kopia lustrzana https://github.com/botheredbybees/kilnController
fixed refresh bug after forced PUT
rodzic
92e96e2ffb
commit
9dad357bc0
|
@ -87,6 +87,7 @@ def handle_storage():
|
|||
msgdict["resp"]="FAIL"
|
||||
print "sending:" +str(msgdict)
|
||||
wsock.send(json.dumps(msgdict))
|
||||
wsock.send(get_profiles())
|
||||
except WebSocketError:
|
||||
break
|
||||
log.info("websocket (storage) closed")
|
||||
|
|
|
@ -165,7 +165,6 @@ function leaveEditMode() {
|
|||
graph.series[0].options.marker.enabled=false;
|
||||
graph.series[0].options.draggableX=false;
|
||||
graph.series[0].options.draggableY=false;
|
||||
ws_storage.send('GET');
|
||||
graph.render();
|
||||
}
|
||||
|
||||
|
@ -259,7 +258,7 @@ ws_storage.onopen = function()
|
|||
console.log("Sending: " + JSON.stringify(message));
|
||||
ws_storage.send(JSON.stringify(message));
|
||||
} else {
|
||||
ws_storage.send("GET");
|
||||
//do nothing
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
@ -289,6 +288,8 @@ ws_storage.onopen = function()
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
graph.render();
|
||||
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue