Verified Commit 456d9127 authored by Štěpán Henek's avatar Štěpán Henek 🌩

WS api changed

parent 8b513748
......@@ -20,7 +20,9 @@ Foris.update_data = function(newItem) {
}
});
};
Foris.WS["netmetr"] = function(msg) {
Foris.addWsHanlder("netmetr", (msg) => {
if (msg.data.async_id != Foris.watched_process) {
return;
}
......@@ -48,7 +50,7 @@ Foris.WS["netmetr"] = function(msg) {
document.getElementById('netmetr-control-status').firstChild.data = '{% trans %}Testing... {% endtrans %}' + msg.data.msg;
break;
}
};
});
$(document).ready(function() {
$("#redownload-trigger").click(function(e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment