More adjustments to refresh interval

This commit is contained in:
Mark Crane
2014-06-10 07:06:26 +00:00
parent 85786c7dd0
commit 89d064d65e

View File

@@ -135,7 +135,7 @@ require_once "resources/check_auth.php";
$refresh = $_SESSION['registrations']['refresh']['numeric'];
}
else {
$_SESSION['registrations']['refresh']['numeric'] = 0;
$refresh = 0;
}
echo "<script>\n";
@@ -151,11 +151,9 @@ require_once "resources/check_auth.php";
echo " <input type='button' class='btn' value='".$text['button-back']."' onclick=\"history.back();\" />\n";
echo " </td>\n";
echo " <td style='vertical-align: middle;'>\n";
echo " <input type='button' class='btn' value='".$text['button-refresh']."' onclick=\"Refresh(document.getElementById('Refresh').value);\" />\n";
echo " <input type='button' class='btn' value='".$text['button-refresh']."' onclick=\"Refresh(".$refresh.");\" />\n";
echo " <script>\n";
echo " if (document.getElementById('Refresh').value != '0') {\n";
echo " setTimeout(\"Refresh(".$refresh.")\" , (".$refresh." * 1000));\n";
echo " }\n";
echo " </script>\n";
echo " </td>\n";
echo " </tr>\n";