return true;
};
+ns.text_block_input_key_down = function(event) {
+ if(event.keyCode == 13) {
+ event.preventDefault();
+ var prefix = $(this).attr('id').match("^edit_function_block_\\d+")[0];
+ $("#" + prefix + "_submit").click();
+ return false;
+ }
+};
+
// --------------------------------------------------------------------------------
// ------------------------------ sections and items ------------------------------
// --------------------------------------------------------------------------------
};
ns.disable_add_function_block_command = function(key, opt) {
- if (ns.find_item_id(opt.$trigger))
- return false;
- return opt.$trigger.attr('id') != "section-list-empty";
+ return opt.$trigger.attr('id') == "sections";
};
ns.cancel_edit_item_form = function(form_id_base, options) {
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 ---------------------------
// -------------------------------------------------------------------------