1 namespace('kivi.MassDeliveryOrderPrint', function(ns) {
4 ns.massConversionFinishProcess = function() {
5 $('#mass_print_dialog').dialog('close');
8 ns.massConversionStarted = function() {
9 $('#mdo_start_process_button,.ui-dialog-titlebar button.ui-dialog-titlebar-close').prop('disabled', 'disabled');
10 $('#mdo_start_process_abort_link').remove();
11 $('#mass_print_dialog').data('timerId', setInterval(function() {
12 $.get("controller.pl", {
13 action: 'MassDeliveryOrderPrint/mass_mdo_status',
14 job_id: $('#mdo_job_id').val()
15 }, kivi.eval_json_result);
19 ns.massConversionPopup = function() {
21 id: 'mass_print_dialog',
23 title: kivi.t8('Generate and print sales delivery orders')
28 ns.massConversionFinished = function() {
29 clearInterval($('#mass_print_dialog').data('timerId'));
30 $('.ui-dialog-titlebar button.ui-dialog-titlebar-close').prop('disabled', '')
33 ns.submitMultiOrders = function () {
34 return kivi.submit_ajax_form('controller.pl?action=MassDeliveryOrderPrint/mass_mdo_print', $('#form'));