updates for grid-print / finder

This commit is contained in:
Stewart Allen 2017-10-15 19:43:51 -04:00
commit 4e4f4d0fec
3 changed files with 13 additions and 5 deletions

View file

@ -1027,7 +1027,14 @@ self.kiri.license = exports.LICENSE;
setProgress(Math.ceil(evt.loaded/evt.total), "sending");
});
filename = $('print-filename').value;
xhtr.open("POST", host+"/api/print?filename="+filename+"&target="+target+"&key="+apik);
xhtr.open("POST",
host + "/api/print?" +
"filename=" + filename +
"&target=" + target +
"&key=" + apik +
"&time=" + Math.round(currentPrint.time) +
"&length=" + Math.round(currentPrint.distance)
);
xhtr.setRequestHeader("Content-Type", "text/plain");
xhtr.send(gcode);
hideModal();