]> git.mxchange.org Git - mailer.git/blob - templates/de/html/js/js_order_send.tpl
Table in div converted
[mailer.git] / templates / de / html / js / js_order_send.tpl
1 var counter = document.getElementById('counter');
2 var form    = document.getElementById('form');
3 var ok      = document.getElementById('ok');
4
5 function Submit() {
6         if (counter.innerHTML > 0) {
7                 alert('{--MEMBER_ORDER_PLEASE_WAIT_TESTER--}');
8                 return false;
9         } else {
10                 form.submit();
11         }
12 }
13
14 function Counter() {
15         if (counter.innerHTML == 1) {
16                 ok.value='{--MEMBER_DO_ORDER--}';
17                 window.clearInterval(interval);
18         }
19
20         counter.innerHTML--;
21 }
22
23 ok.value='{--MEMBER_ORDER_TEST_STARTED--}';
24 var interval = window.setInterval("Counter()", 1000);