diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index 9b02b2c31f..9c1524aabf 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -375,15 +375,22 @@ config_check(); + refr_time = parseInt(""); + if (isNaN(refr_time)) { + refr_time = 0; + } + t = new Date(); - t.setTime (t.getTime () + ); + t.setTime (t.getTime () + + parseInt()); $("#refrcounter").countdown ({until: t, layout: '%M%nn%M:%S%nn%S', labels: ['', '', '', '', '', '', ''], onExpiry: function () { href = $("a.autorefresh").attr ("href"); - href = href + ; + href = href + refr_time; $(document).attr ("location", href); } });