$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);
}
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 ---------------------------
// -------------------------------------------------------------------------