Bug 36640: More fixes
Signed-off-by: Jake Deery <jake.deery@ptfs-europe.com> Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
b3a3e4489f
commit
b0c85a5ca5
|
|
@ -812,7 +812,7 @@
|
|||
itemSelectionBuildActionLinks(tab_id);
|
||||
},
|
||||
drawCallback: function(settings){
|
||||
var api = new $.fn.dataTable.Api(settings)
|
||||
let api = this.api();
|
||||
$.each(
|
||||
$(this).find("tbody tr td:first-child"),
|
||||
function (index, e) {
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@
|
|||
<script>
|
||||
var late_orderst;
|
||||
function check_uncheck() {
|
||||
var all_nodes = $(late_orderst.fnGetNodes());
|
||||
var all_nodes = late_orderst.DataTable().rows().nodes();
|
||||
if ( $(all_nodes).find("input:checkbox[name=ordernumber]:checked").length > 0) {
|
||||
var booksellerid = $(all_nodes).find("input:checkbox[name=ordernumber]:checked:first").attr("data-booksellerid");
|
||||
$(all_nodes).find("input:checkbox[name=ordernumber][data-booksellerid!="+booksellerid+"]").prop('disabled', true);
|
||||
|
|
@ -370,7 +370,7 @@
|
|||
|
||||
// Generates a dynamic link for exporting the selection's data as CSV
|
||||
$("#exportbutton, #export-csv-menu a").click(function() {
|
||||
var all_nodes = $(late_orderst.fnGetNodes());
|
||||
var all_nodes = late_orderst.DataTable().rows().nodes();
|
||||
var selected = $(all_nodes).find("input[name='ordernumber']:checked");
|
||||
|
||||
if (selected.length == 0) {
|
||||
|
|
|
|||
|
|
@ -481,7 +481,7 @@
|
|||
|
||||
|
||||
$("#continuewithoutmarkingbutton").click(function(){
|
||||
inventorydt.fnPageChange( 'next' );
|
||||
inventorydt.DataTable().page('next').draw('page');
|
||||
return false;
|
||||
});
|
||||
|
||||
|
|
@ -491,7 +491,7 @@
|
|||
param += "|" + $(this).attr('name');
|
||||
});
|
||||
$.post('/cgi-bin/koha/tools/ajax-inventory.pl', { seen: param, op: 'cud-seen', csrf_token: $('meta[name="csrf-token"]').attr("content") });
|
||||
inventorydt.fnPageChange( 'next' );
|
||||
inventorydt.DataTable().page('next').draw('page');
|
||||
return false;
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -695,7 +695,7 @@
|
|||
}
|
||||
})
|
||||
.on('shown.bs.tab', function (e) {
|
||||
dtListResults.fnDraw();
|
||||
dtListResults.DataTable().draw();
|
||||
});
|
||||
|
||||
$("body").on("click", ".deleteshelf", function(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue