Revision 578b62c5
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
templates/webpages/requirement_spec/_form.html | ||
---|---|---|
53 | 53 |
[% L.submit_tag("action_" _ (SELF.requirement_spec.id ? "update" : "create"), LxERP.t8('Save'), id=id_prefix _ '_action_update') %] |
54 | 54 |
<a href="[% SELF.url_for(action="list", is_template=SELF.requirement_spec.is_template) %]">[% LxERP.t8('Abort') %]</a> |
55 | 55 |
[% ELSE %] |
56 |
[% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update", "#" _ id_prefix, LxERP.t8("Save")) %] |
|
56 |
[% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update", "#" _ id_prefix, LxERP.t8("Save"), id=id_prefix _ '_submit') %] |
|
57 |
<script type="text/javascript"><!-- |
|
58 |
$(function() { |
|
59 |
$("#[% id_prefix %] INPUT[type=text]").keydown(function(event) { |
|
60 |
if(event.keyCode == 13) { |
|
61 |
event.preventDefault(); |
|
62 |
$('#[% id_prefix %]_submit').click(); |
|
63 |
return false; |
|
64 |
} |
|
65 |
}); |
|
66 |
}); |
|
67 |
--></script> |
|
57 | 68 |
[% END %] |
58 | 69 |
</p> |
59 | 70 |
</form> |
Auch abrufbar als: Unified diff
Pflichtenheftdetails: bei RETURN per AJAX speichern