Skip to content

Commit

Permalink
bug fix & efficiency upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
GM-Script-Writer-62850 committed Jul 11, 2013
1 parent 785cefd commit 1d1e725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/main.js
Expand Up @@ -190,7 +190,7 @@ function encodeHTML(string){// http://stackoverflow.com/questions/24816/escaping
return String(string).replace(/[&<>"'\/]/g,function(s){return entityMap[s];});
}
function checkScanners(){
if(typeof(XMLHttpRequest=='undefined')||typeof(JSON)!='object'){
if(typeof(XMLHttpRequest)=='undefined'||typeof(JSON)!='object'){
return printMsg('Sorry',supportErrorA+"XMLHttpRequest and the JSON object so this page can not check if the scanner is in-use or not in real time."+supportErrorB,'center',0);
}
var httpRequest = new XMLHttpRequest();
Expand Down
2 changes: 1 addition & 1 deletion inc/scan.php
Expand Up @@ -31,7 +31,7 @@
}
$defSource=explode('|',$CANNERS[$SEL]->{"SOURCE"})[0];
?></select></p></div><!-- AJAX in scanner data -->
<script type="text/javascript">scanners=parseJSON('<?php echo json_encode($CANNERS); ?>');setTimeout("checkScanners()",5000);</script>
<script type="text/javascript">scanners=<?php echo json_encode($CANNERS); ?>;setTimeout("checkScanners()",5000);</script>

</div>

Expand Down

0 comments on commit 1d1e725

Please sign in to comment.