Revision bca12079
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
115 | 115 |
|
116 | 116 |
$self->js |
117 | 117 |
->replaceWith('#time_cost_estimate', $html) |
118 |
->on('#time_cost_estimate INPUT[type=text]', 'keydown', 'kivi.requirement_spec.time_cost_estimate_input_key_down') |
|
118 | 119 |
->render($self); |
119 | 120 |
} |
120 | 121 |
|
js/requirement_spec.js | ||
---|---|---|
324 | 324 |
return true; |
325 | 325 |
}; |
326 | 326 |
|
327 |
ns.time_cost_estimate_input_key_down = function(event) { |
|
328 |
if(event.keyCode == 13) { |
|
329 |
event.preventDefault(); |
|
330 |
ns.standard_time_cost_estimate_ajax_call('save'); |
|
331 |
return false; |
|
332 |
} |
|
333 |
}; |
|
334 |
|
|
327 | 335 |
// ------------------------------------------------------------------------- |
328 | 336 |
// --------------------------- quotations/orders --------------------------- |
329 | 337 |
// ------------------------------------------------------------------------- |
templates/webpages/requirement_spec/_edit_time_and_cost_estimate.html | ||
---|---|---|
39 | 39 |
[%- END -%] |
40 | 40 |
</tbody> |
41 | 41 |
</table> |
42 |
|
|
43 |
[% L.button_tag("kivi.requirement_spec.standard_time_cost_estimate_ajax_call('save')", LxERP.t8("Save")) %] |
|
42 | 44 |
</form> |
43 | 45 |
[%- END %] |
44 | 46 |
</div> |
Auch abrufbar als: Unified diff
Pflichtenheftabschätzung: Bei RETURN per AJAX speichern; "Speichern"-Button anzeigen