]> git.mxchange.org Git - mailer.git/blobdiff - templates/de/html/mailid/mailid_timer.tpl
Tons of rewrites (SQL queries), surfbar nearly finished (working: surfing with static...
[mailer.git] / templates / de / html / mailid / mailid_timer.tpl
index 30e5b2c7a3fcb5653e145db3cfdc24ba7ebd9e32..9365c8589d27258f8eaf4f058b7e0c0faa8fa363 100644 (file)
@@ -2,17 +2,18 @@
 <!--
 var Timer = "{--_TIME_VALUE!}";
 
-function Init()
-{
+function Init() {
        var Counter = window.setInterval("StartCounter()", 1000);
 }
 
-function StartCounter()
-{
+function StartCounter() {
+       if (Timer < 1) {
+               return false;
+       }
+
        Timer--;
        document.confirm.counter.value = Timer;
-       if (Timer == 0)
-       {
+       if (Timer == 0) {
                document.location.href="{!URL!}/mailid_top.php?uid={!_UID_VALUE!}&{!_TYPE_VALUE!}={!_DATA_VALUE!}&mode=confirm&code={--_RAND_VALUE!}";
                clearInterval(Counter);
        }