From: Thomas Heck Date: Fri, 19 Oct 2012 14:13:20 +0000 (+0200) Subject: Ansprechpartner nicht mehr beim drücken der Eingabetaste löschen X-Git-Tag: release-3.0.0beta1~99^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=75f74ad10f9d7ecdf5c553bf138a0ae0a45da8dd;p=kivitendo-erp.git Ansprechpartner nicht mehr beim drücken der Eingabetaste löschen fixt #2020 --- 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"