Skip to content

Commit

Permalink
Global variable solution
Browse files Browse the repository at this point in the history
  • Loading branch information
hroncok committed Oct 4, 2012
1 parent 30a5527 commit 8167a9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions php/index.php
Expand Up @@ -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";
Expand Down
2 changes: 0 additions & 2 deletions 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
Expand Down

0 comments on commit 8167a9f

Please sign in to comment.