From 75f74ad10f9d7ecdf5c553bf138a0ae0a45da8dd Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Fri, 19 Oct 2012 16:13:20 +0200 Subject: [PATCH] =?utf8?q?Ansprechpartner=20nicht=20mehr=20beim=20dr=C3=BC?= =?utf8?q?cken=20der=20Eingabetaste=20l=C3=B6schen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fixt #2020 --- templates/webpages/ct/_contact.html | 6 +++--- templates/webpages/ct/form_footer.html | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/templates/webpages/ct/_contact.html b/templates/webpages/ct/_contact.html index bfa4f3772..e87b65a72 100644 --- a/templates/webpages/ct/_contact.html +++ b/templates/webpages/ct/_contact.html @@ -141,8 +141,8 @@ -[% IF cp_id %] - -[% END %] + [% IF cp_id %] + + [% END %]
diff --git a/templates/webpages/ct/form_footer.html b/templates/webpages/ct/form_footer.html index 791aacf00..fa433b8bf 100644 --- a/templates/webpages/ct/form_footer.html +++ b/templates/webpages/ct/form_footer.html @@ -38,6 +38,25 @@ function enable_delete_shipto(used) { var s=document.getElementById('delete_shipto'); if (s) s.disabled = (used > 0 ? true : false); } function enable_delete_contact(used){ var s=document.getElementById('delete_contact'); if (s) s.disabled = (used > 0 ? true : false); } + function submitInputBitton(button) + { + var hidden = document.createElement("input"); + hidden.setAttribute("type", "hidden"); + + if( button.hasAttribute("name") ) + hidden.setAttribute("name", button.getAttribute("name")); + + if( button.hasAttribute("value") ) + hidden.setAttribute("value", button.getAttribute("value")); + + + button.form.appendChild(hidden); + + button.disabled = true; + + button.form.submit(); + } + var maintab = new ddtabcontent("maintab"); maintab.setpersist(true); maintab.setselectedClassTarget("link"); //"link" or "linkparent" -- 2.20.1