dilanua 8 years ago
parent 1a12838b7c
commit 378dd4084c

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