Skip to content
Browse files

Global variable solution

  • Loading branch information...
1 parent 30a5527 commit 8167a9f8643caf08159e59515bff91ceb8e5a240 @hroncok hroncok committed Oct 4, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −0 php/index.php
  2. +0 −2 php/js.js
View
1 php/index.php
@@ -81,6 +81,7 @@ function putForm() {
echo ' <pre id="terminal">$ skeinforge '.$basename.' '.$extension.'</pre>'."\n";
echo ' <script type="text/javascript">'."\n";
echo ' <!--'."\n";
+ echo ' var ended = 0;'."\n";
echo ' dwnInterval = setInterval(function(){dwnLink("'.$basename.'")},3000);'."\n";
echo ' loadLog("'.$basename.'","'.$extension.'");'."\n";
echo ' refreshInterval = setInterval(function(){loadLog("'.$basename.'","'.$extension.'")},3000);'."\n";
View
2 php/js.js
@@ -1,5 +1,3 @@
-ended = 0;
-
function loadLog(job,ext) {
var textfile;
if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari

0 comments on commit 8167a9f

Please sign in to comment.
Something went wrong with that request. Please try again.