Fixing Device Type search filter

revert-70aa11f8
Dileesha Rajapakse 7 years ago
parent c7c9432768
commit d8ffa23a42

@ -313,7 +313,7 @@ function loadDevices(searchType, searchParam) {
},
{
targets: 4,
data: 'deviceType',
data: 'type',
class: 'remove-padding-top viewEnabledIcon',
render: function (status, type, row, meta) {
return getDeviceTypeLabel(row.deviceType);

@ -174,10 +174,11 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
var titles = [];
column.nodes().unique().sort().each(function (d, j) {
var title = $(d).attr('data-display');
var searchVal = $(d).attr('data-search');
if ($.inArray(title, titles) < 0) {
titles.push(title);
if (title !== undefined) {
select.append('<option value="' + title + '">' + title + '</option>')
select.append('<option value="' + searchVal + '">' + title + '</option>')
}
}
});

Loading…
Cancel
Save