Permalink
Browse files

Debug

  • Loading branch information...
1 parent 38cbea0 commit 8ec0e0612731134cda95a1946b93da42e72cb8ab @hroncok hroncok committed Oct 4, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 php/js.js
View
@@ -44,16 +44,19 @@ function dwnLink(job) {
textfile.onreadystatechange=function() {
if (textfile.readyState==4 && textfile.status == 200){
var linkHTML = "<strong>Download:</strong> <a href=\"files/"+job+"_export.gcode\">"+job+"_export.gcode</a> &mdash; Your files will be deleted in 24 hours.";
+ document.getElementById("topDwnLink").innerHTML=linkHTML;
+ document.getElementById("bottomDwnLink").innerHTML=linkHTML;
clearInterval(dwnInterval);
clearInterval(refreshInterval);
- } else {
+ } /*else {
linkHTML = "<strong>Error:</strong> The procces ended without gcode, see the log";
}
if (linkHTML!="") {
document.getElementById("topDwnLink").innerHTML=linkHTML;
document.getElementById("bottomDwnLink").innerHTML=linkHTML;
-
- }
+ clearInterval(dwnInterval);
+ clearInterval(refreshInterval);
+ }*/
}
textfile.open("GET","files/"+job+"_export.gcode",true);
textfile.send();

0 comments on commit 8ec0e06

Please sign in to comment.