Lines 621-630
Link Here
|
621 |
"searchable": false, |
621 |
"searchable": false, |
622 |
"orderable": false, |
622 |
"orderable": false, |
623 |
"render": function(data, type, row, meta) { |
623 |
"render": function(data, type, row, meta) { |
624 |
return '<a class="btn btn-default btn-xs" data-toggle="modal" href="#order_edit" data-row="'+meta.row+'" class="order_edit_toggle" role="button"><i class="fa fa-pencil" aria-hidden="true"></i> '+EDIT+'</a>'; |
624 |
return '<a class="btn btn-default btn-xs order_edit_toggle" data-toggle="modal" href="#order_edit" data-row="'+meta.row+'" role="button"><i class="fa fa-pencil" aria-hidden="true"></i> '+EDIT+'</a>'; |
625 |
} |
625 |
} |
626 |
} |
626 |
} |
627 |
] |
627 |
], |
|
|
628 |
[% IF multiple_orders.split(',').size == 1 %] |
629 |
"drawCallback": function( settings ) { |
630 |
$(this).find("tbody tr td:last-child a.order_edit_toggle").click(); |
631 |
}, |
632 |
[% END %] |
628 |
}; |
633 |
}; |
629 |
var orders_table = $("#multiple_orders").kohaTable(options); |
634 |
var orders_table = $("#multiple_orders").kohaTable(options); |
630 |
var api = orders_table.api(); |
635 |
var api = orders_table.api(); |
Lines 1293-1298
Link Here
|
1293 |
var saved_rows = save_row(); |
1298 |
var saved_rows = save_row(); |
1294 |
if(Object.keys(saved_rows).length) $('.save').prop('disabled', false); |
1299 |
if(Object.keys(saved_rows).length) $('.save').prop('disabled', false); |
1295 |
$("#order_edit").modal('hide'); |
1300 |
$("#order_edit").modal('hide'); |
|
|
1301 |
[% IF multiple_orders.split(',').size == 1 %] |
1302 |
$(".save").click(); |
1303 |
[% END %] |
1296 |
}) |
1304 |
}) |
1297 |
|
1305 |
|
1298 |
$("#order_edit").on("show.bs.modal", function (event) { |
1306 |
$("#order_edit").on("show.bs.modal", function (event) { |
1299 |
- |
|
|