dilanua 8 years ago
parent 1a12838b7c
commit 378dd4084c

@ -37,6 +37,10 @@ $.fn.datatables_extended_serverside_paging = function (settings , url, dataFilte
if (InitiateViewOption) { if (InitiateViewOption) {
$(".viewEnabledIcon").bind("click", InitiateViewOption); $(".viewEnabledIcon").bind("click", InitiateViewOption);
} }
var deviceType;
var ownership;
//--- End of EMM related codes //--- End of EMM related codes
$(elem).DataTable( $(elem).DataTable(
@ -108,14 +112,32 @@ $.fn.datatables_extended_serverside_paging = function (settings , url, dataFilte
.draw(); .draw();
if (filterColumn.eq(column.index()).hasClass('data-platform')) { if (filterColumn.eq(column.index()).hasClass('data-platform')) {
if (!val) { deviceType = val;
if (!deviceType || !ownership) {
$("#operation-bar").addClass("hidden"); $("#operation-bar").addClass("hidden");
$("#operation-guide").removeClass("hidden"); $("#operation-guide").removeClass("hidden");
} else { } else {
$("#operation-guide").addClass("hidden"); $("#operation-guide").addClass("hidden");
$("#operation-bar").removeClass("hidden"); $("#operation-bar").removeClass("hidden");
//noinspection JSUnresolvedFunction //noinspection JSUnresolvedFunction
loadOperationBar(val); if (deviceType && ownership) {
loadOperationBar(deviceType, ownership);
}
}
}
if (filterColumn.eq(column.index()).hasClass('data-ownership')) {
ownership = val;
if (!deviceType || !ownership) {
$("#operation-bar").addClass("hidden");
$("#operation-guide").removeClass("hidden");
} else {
$("#operation-guide").addClass("hidden");
$("#operation-bar").removeClass("hidden");
//noinspection JSUnresolvedFunction
if (deviceType && ownership) {
loadOperationBar(deviceType, ownership);
}
} }
} }
}); });

Loading…
Cancel
Save