} else { if ($quote['auto_task_numbers'] == 1) { ?> // manual task numbers. task_number = Math.max(current_order,task_number) + 1; <?php } } ?> }); if(do_update){ $.ajax({ url: '<?php echo module_quote::link_ajax_task($quote_id, false); ?> ', type: 'POST', data: update_task_orders }); } // todo - later on we call this as we dynamically re-arrange the cells in this table.. // then we set the next available task number in the create new task number area. $('#next_task_number').val(task_number); <?php if (module_config::c('quote_tasks_allow_sort', 1)) { ?>