diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js
index 7422a3c1f3..3914111525 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js
@@ -109,17 +109,17 @@ $.fn.datatables_extended = function (settings) {
$(column).each(function () {
var i;
if (filterColumn.eq(column.index()).hasClass('data-status')) {
- for(i = 0; i < cachedFilterRes.status.length; i++){
+ for (i = 0; i < cachedFilterRes.status.length; i++) {
var status = cachedFilterRes.status[i];
select.append('')
}
} else if (filterColumn.eq(column.index()).hasClass('data-ownership')) {
- for(i = 0; i < cachedFilterRes.ownership.length; i++){
+ for (i = 0; i < cachedFilterRes.ownership.length; i++) {
var ownership = cachedFilterRes.ownership[i];
select.append('')
}
} else if (filterColumn.eq(column.index()).hasClass('data-platform')) {
- for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){
+ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var deviceTypes = cachedFilterRes.deviceTypes[i];
var name = deviceTypes;
var value = deviceTypes;
@@ -130,12 +130,12 @@ $.fn.datatables_extended = function (settings) {
select.append('')
}
} else if (filterColumn.eq(column.index()).hasClass('data-compliance')) {
- for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){
+ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var compliance = cachedFilterRes.compliance[i];
select.append('')
}
} else if (filterColumn.eq(column.index()).hasClass('data-dep-status')) {
- for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){
+ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var depStatus = cachedFilterRes.depStatus[i];
select.append('')
}
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js
index 58a26211d4..a560cc8220 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js
@@ -177,17 +177,17 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
$(column).each(function () {
var i;
if (filterColumn.eq(column.index()).hasClass('data-status')) {
- for(i = 0; i < cachedFilterRes.status.length; i++){
+ for (i = 0; i < cachedFilterRes.status.length; i++) {
var status = cachedFilterRes.status[i];
select.append('')
}
} else if (filterColumn.eq(column.index()).hasClass('data-ownership')) {
- for(i = 0; i < cachedFilterRes.ownership.length; i++){
+ for (i = 0; i < cachedFilterRes.ownership.length; i++) {
var ownership = cachedFilterRes.ownership[i];
select.append('')
}
} else if (filterColumn.eq(column.index()).hasClass('data-platform')) {
- for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){
+ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var deviceTypes = cachedFilterRes.deviceTypes[i];
var name = deviceTypes;
var value = deviceTypes;
@@ -198,12 +198,12 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
select.append('')
}
} else if (filterColumn.eq(column.index()).hasClass('data-compliance')) {
- for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){
+ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var compliance = cachedFilterRes.compliance[i];
select.append('')
}
} else if (filterColumn.eq(column.index()).hasClass('data-dep-status')) {
- for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){
+ for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
var depStatus = cachedFilterRes.depStatus[i];
select.append('')
}