Daniele Bonini (皮夕): WebDev, DevOps and homomm.org by lots of Simplicity bits пре 3 година
родитељ
комит
f6f6af7b00
1 измењених фајлова са 2 додато и 4 уклоњено
  1. 2 4
      Private/scripts/home.php

+ 2 - 4
Private/scripts/home.php

@@ -919,10 +919,8 @@ function updateHistory(&$update, $maxItems) {
 		 <?php if($password===PHP_STR):?>
 		    $("#Password").addClass("emptyfield");
 		 <?php endif; ?>
-     maxY = document.getElementById("Console").scrollHeight;
-     //alert(maxY);
+     readyToType();
      document.getElementById("MessageLine").focus();
-     document.getElementById("Console").scrollTop=maxY;
 	 }, true);
 
   function hideTitle() {
@@ -1223,7 +1221,7 @@ window.addEventListener("load", function() {
   <?php endif; ?>
   
   <?php if ($password != PHP_STR): ?>
-  setInterval("checkServer()", 25000);
+  setInterval("checkServer()", <?php echo(APP_PUSH_INTERVAL);?>);
   <?PHP endif; ?>
 }, true);