Revision 75f74ad1
Von Thomas Heck vor etwa 12 Jahren hinzugefügt
templates/webpages/ct/_contact.html | ||
---|---|---|
141 | 141 |
|
142 | 142 |
</table> |
143 | 143 |
|
144 |
[% IF cp_id %] |
|
145 |
<input type="submit" id="delete_contact" name="action" value="[% 'Delete Contact' | $T8 %]">
|
|
146 |
[% END %] |
|
144 |
[% IF cp_id %]
|
|
145 |
<input type="button" id="delete_contact" onclick="submitInputBitton(this);" name="action" value="[% 'Delete Contact' | $T8 %]">
|
|
146 |
[% END %]
|
|
147 | 147 |
|
148 | 148 |
<br style="clear: left" /> |
templates/webpages/ct/form_footer.html | ||
---|---|---|
38 | 38 |
function enable_delete_shipto(used) { var s=document.getElementById('delete_shipto'); if (s) s.disabled = (used > 0 ? true : false); } |
39 | 39 |
function enable_delete_contact(used){ var s=document.getElementById('delete_contact'); if (s) s.disabled = (used > 0 ? true : false); } |
40 | 40 |
|
41 |
function submitInputBitton(button) |
|
42 |
{ |
|
43 |
var hidden = document.createElement("input"); |
|
44 |
hidden.setAttribute("type", "hidden"); |
|
45 |
|
|
46 |
if( button.hasAttribute("name") ) |
|
47 |
hidden.setAttribute("name", button.getAttribute("name")); |
|
48 |
|
|
49 |
if( button.hasAttribute("value") ) |
|
50 |
hidden.setAttribute("value", button.getAttribute("value")); |
|
51 |
|
|
52 |
|
|
53 |
button.form.appendChild(hidden); |
|
54 |
|
|
55 |
button.disabled = true; |
|
56 |
|
|
57 |
button.form.submit(); |
|
58 |
} |
|
59 |
|
|
41 | 60 |
var maintab = new ddtabcontent("maintab"); |
42 | 61 |
maintab.setpersist(true); |
43 | 62 |
maintab.setselectedClassTarget("link"); //"link" or "linkparent" |
Auch abrufbar als: Unified diff
Ansprechpartner nicht mehr beim drücken der Eingabetaste löschen
fixt #2020