Revision bca12079
Von Moritz Bunkus vor etwa 11 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
|
||
$self->js
|
||
->replaceWith('#time_cost_estimate', $html)
|
||
->on('#time_cost_estimate INPUT[type=text]', 'keydown', 'kivi.requirement_spec.time_cost_estimate_input_key_down')
|
||
->render($self);
|
||
}
|
||
|
js/requirement_spec.js | ||
---|---|---|
return true;
|
||
};
|
||
|
||
ns.time_cost_estimate_input_key_down = function(event) {
|
||
if(event.keyCode == 13) {
|
||
event.preventDefault();
|
||
ns.standard_time_cost_estimate_ajax_call('save');
|
||
return false;
|
||
}
|
||
};
|
||
|
||
// -------------------------------------------------------------------------
|
||
// --------------------------- quotations/orders ---------------------------
|
||
// -------------------------------------------------------------------------
|
templates/webpages/requirement_spec/_edit_time_and_cost_estimate.html | ||
---|---|---|
[%- END -%]
|
||
</tbody>
|
||
</table>
|
||
|
||
[% L.button_tag("kivi.requirement_spec.standard_time_cost_estimate_ajax_call('save')", LxERP.t8("Save")) %]
|
||
</form>
|
||
[%- END %]
|
||
</div>
|
Auch abrufbar als: Unified diff
Pflichtenheftabschätzung: Bei RETURN per AJAX speichern; "Speichern"-Button anzeigen