|
|
@ -177,17 +177,17 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
|
|
|
|
$(column).each(function () {
|
|
|
|
$(column).each(function () {
|
|
|
|
var i;
|
|
|
|
var i;
|
|
|
|
if (filterColumn.eq(column.index()).hasClass('data-status')) {
|
|
|
|
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];
|
|
|
|
var status = cachedFilterRes.status[i];
|
|
|
|
select.append('<option value="' + status + '">' + status + '</option>')
|
|
|
|
select.append('<option value="' + status + '">' + status + '</option>')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (filterColumn.eq(column.index()).hasClass('data-ownership')) {
|
|
|
|
} 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];
|
|
|
|
var ownership = cachedFilterRes.ownership[i];
|
|
|
|
select.append('<option value="' + ownership + '">' + ownership + '</option>')
|
|
|
|
select.append('<option value="' + ownership + '">' + ownership + '</option>')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (filterColumn.eq(column.index()).hasClass('data-platform')) {
|
|
|
|
} 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 deviceTypes = cachedFilterRes.deviceTypes[i];
|
|
|
|
var name = deviceTypes;
|
|
|
|
var name = deviceTypes;
|
|
|
|
var value = deviceTypes;
|
|
|
|
var value = deviceTypes;
|
|
|
@ -198,10 +198,18 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
|
|
|
|
select.append('<option value="' + value + '">' + name + '</option>')
|
|
|
|
select.append('<option value="' + value + '">' + name + '</option>')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (filterColumn.eq(column.index()).hasClass('data-compliance')) {
|
|
|
|
} 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];
|
|
|
|
var compliance = cachedFilterRes.compliance[i];
|
|
|
|
select.append('<option value="' + compliance + '">' + compliance + '</option>')
|
|
|
|
select.append('<option value="' + compliance + '">' + compliance + '</option>')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else if (filterColumn.eq(column.index()).hasClass('data-dep-status')) {
|
|
|
|
|
|
|
|
for (i = 0; i < cachedFilterRes.deviceTypes.length; i++) {
|
|
|
|
|
|
|
|
var depStatus = cachedFilterRes.depStatus[i];
|
|
|
|
|
|
|
|
select.append('<option value="' + depStatus + '">' + depStatus + '</option>')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else if (filterColumn.eq(column.index()).hasClass('data-boolean')) {
|
|
|
|
|
|
|
|
select.append('<option value="true">Enabled</option>');
|
|
|
|
|
|
|
|
select.append('<option value="false">Disabled</option>');
|
|
|
|
} else if ($(column.nodes()).attr('data-search')) {
|
|
|
|
} else if ($(column.nodes()).attr('data-search')) {
|
|
|
|
var titles = [];
|
|
|
|
var titles = [];
|
|
|
|
column.nodes().unique().sort().each(function (d, j) {
|
|
|
|
column.nodes().unique().sort().each(function (d, j) {
|
|
|
|