fixed refresh bug after forced PUT

MAX31855-EH
Sebastian Steuer 2013-11-25 01:24:20 +01:00
rodzic 92e96e2ffb
commit 9dad357bc0
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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")

Wyświetl plik

@ -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();
}