|
|
|
@ -108,12 +108,13 @@ $.fn.datatables_extended_serverside_paging = function (settings , url, dataFilte
|
|
|
|
|
.draw();
|
|
|
|
|
|
|
|
|
|
if (filterColumn.eq(column.index()).hasClass('data-platform')) {
|
|
|
|
|
if (val == null || val == undefined || val == "") {
|
|
|
|
|
$("#operation-bar").hide();
|
|
|
|
|
$("#operation-guide").show();
|
|
|
|
|
if (!val) {
|
|
|
|
|
$("#operation-bar").addClass("hidden");
|
|
|
|
|
$("#operation-guide").removeClass("hidden");
|
|
|
|
|
} else {
|
|
|
|
|
$("#operation-guide").hide();
|
|
|
|
|
$("#operation-bar").show();
|
|
|
|
|
$("#operation-guide").addClass("hidden");
|
|
|
|
|
$("#operation-bar").removeClass("hidden");
|
|
|
|
|
//noinspection JSUnresolvedFunction
|
|
|
|
|
loadOperationBar(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -141,13 +142,9 @@ $.fn.datatables_extended_serverside_paging = function (settings , url, dataFilte
|
|
|
|
|
var title = filterColumn.eq(column.index()).attr('data-for');
|
|
|
|
|
$(filterColumn.eq(column.index()).empty()).html('<input type="text" class="form-control" placeholder="Search ' + title + '" />');
|
|
|
|
|
|
|
|
|
|
//noinspection SpellCheckingInspection
|
|
|
|
|
filterColumn.eq(column.index()).find('input').on('keyup change', function () {
|
|
|
|
|
column.search($(this).val()).draw();
|
|
|
|
|
if ($('.dataTables_empty').length > 0) {
|
|
|
|
|
$('.bulk-action-row').addClass("hidden");
|
|
|
|
|
} else {
|
|
|
|
|
$('.bulk-action-row').removeClass("hidden");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -285,5 +282,4 @@ $.fn.datatables_extended_serverside_paging = function (settings , url, dataFilte
|
|
|
|
|
}
|
|
|
|
|
},settings)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|