mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
FIX for JIRAS: https://wso2.org/jira/browse/EMM-1591,EMM-1590,EMM-1585
This commit is contained in:
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…
Reference in New Issue
Block a user