fix for when the element is not in the document yet
This commit is contained in:
parent
5a20dce9ab
commit
87a2b0de47
|
|
@ -199,7 +199,7 @@ require_once "resources/header.php";
|
||||||
//refresh controls
|
//refresh controls
|
||||||
function refresh_stop() {
|
function refresh_stop() {
|
||||||
clearInterval(interval_timer_id);
|
clearInterval(interval_timer_id);
|
||||||
document.getElementById('refresh_state').innerHTML = "<img src='resources/images/refresh_paused.png' style='width: 16px; height: 16px; border: none; margin-top: 1px; cursor: pointer;' onclick='refresh_start();' alt=\"<?php echo $text['label-refresh_enable']?>\" title=\"<?php echo $text['label-refresh_enable']?>\">";
|
if (document.getElementById('refresh_state')) { document.getElementById('refresh_state').innerHTML = "<img src='resources/images/refresh_paused.png' style='width: 16px; height: 16px; border: none; margin-top: 1px; cursor: pointer;' onclick='refresh_start();' alt=\"<?php echo $text['label-refresh_enable']?>\" title=\"<?php echo $text['label-refresh_enable']?>\">"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
function refresh_start() {
|
function refresh_start() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue