From: Roland Häder Date: Tue, 27 Nov 2012 21:22:10 +0000 (+0000) Subject: Moved extra JavaScripts to external template X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=63f43153466268990fa066614e3a2abdeb52950c;p=mailer.git Moved extra JavaScripts to external template --- diff --git a/templates/de/html/js/js_order_send.tpl b/templates/de/html/js/js_order_send.tpl index ef32d52b92..537ed74810 100644 --- a/templates/de/html/js/js_order_send.tpl +++ b/templates/de/html/js/js_order_send.tpl @@ -30,7 +30,7 @@ var counter = document.getElementById('counter'); var form = document.getElementById('form'); var ok = document.getElementById('ok'); -function Submit() { +function submitForm() { if (counter.innerHTML > 0) { alert('{--MEMBER_ORDER_PLEASE_WAIT_TESTER--}'); return false; @@ -50,3 +50,8 @@ function Counter() { ok.value='{--MEMBER_ORDER_TEST_STARTED--}'; var interval = window.setInterval("Counter()", 1000); + +// Register event listener +$('#form').submit(function() { + return submitForm(); +}); diff --git a/templates/de/html/js/js_surfbar_member_book.tpl b/templates/de/html/js/js_surfbar_member_book.tpl index 8ec8ffcc91..a0ab20c8fb 100644 --- a/templates/de/html/js/js_surfbar_member_book.tpl +++ b/templates/de/html/js/js_surfbar_member_book.tpl @@ -97,3 +97,32 @@ function resetForm () { focusLimitedNo(); document.getElementById('url').focus(); + +// Register all event listeners +$('#book').submit(function() { + return submitForm(); +}); + +$('#reset').click(function() { + return resetForm(); +}); + +$('#limit').click(function() { + return focusLimit(); +}); + +$('#limit').blur(function() { + return blurLimit(); +}); + +$('#limit').change(function() { + return changeLimited(); +}); + +$('#limited_no').click(function() { + return focusLimitedNo(); +}); + +$('#limited_yes').click(function() { + return focusLimitedYes(); +}); diff --git a/templates/de/html/js/js_surfbar_member_edit.tpl b/templates/de/html/js/js_surfbar_member_edit.tpl index b36166e789..2e0962c6d8 100644 --- a/templates/de/html/js/js_surfbar_member_edit.tpl +++ b/templates/de/html/js/js_surfbar_member_edit.tpl @@ -70,3 +70,12 @@ if ($content[limited] == true) { } else { FocusLimitedNo(); } + +// Register event listeners +$('#edit').submit(function() { + return submitForm(); +}); + +$('#reset').click(function() { + return resetForm(); +}); diff --git a/templates/de/html/member/member_book_surfbar_dynamic.tpl b/templates/de/html/member/member_book_surfbar_dynamic.tpl index 081b7c2e7c..faf60649e0 100644 --- a/templates/de/html/member/member_book_surfbar_dynamic.tpl +++ b/templates/de/html/member/member_book_surfbar_dynamic.tpl @@ -47,38 +47,6 @@ - - {%form_close%} diff --git a/templates/de/html/member/member_book_surfbar_static.tpl b/templates/de/html/member/member_book_surfbar_static.tpl index b2c67e14da..40ed7b326e 100644 --- a/templates/de/html/member/member_book_surfbar_static.tpl +++ b/templates/de/html/member/member_book_surfbar_static.tpl @@ -47,37 +47,5 @@ - - {%form_close%} diff --git a/templates/de/html/member/member_order_send.tpl b/templates/de/html/member/member_order_send.tpl index ef8b03fa46..7da43d4c20 100644 --- a/templates/de/html/member/member_order_send.tpl +++ b/templates/de/html/member/member_order_send.tpl @@ -6,13 +6,8 @@
+ - + {%form_close%} diff --git a/templates/de/html/member/member_payout_form_banner.tpl b/templates/de/html/member/member_payout_form_banner.tpl index ab398738e4..b7315f75fd 100644 --- a/templates/de/html/member/member_payout_form_banner.tpl +++ b/templates/de/html/member/member_payout_form_banner.tpl @@ -47,7 +47,7 @@ {%form_close%} - -
(*): {--PAYOUT_BANNER_NOTICE--}
- +
+ (*): {--PAYOUT_BANNER_NOTICE--} +
diff --git a/templates/de/html/member/member_surfbar_edit_action_form.tpl b/templates/de/html/member/member_surfbar_edit_action_form.tpl index 3dc881d277..ec7dfeaa16 100644 --- a/templates/de/html/member/member_surfbar_edit_action_form.tpl +++ b/templates/de/html/member/member_surfbar_edit_action_form.tpl @@ -40,17 +40,6 @@ - {%form_close%}