mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing Device Type search filter
This commit is contained in:
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…
Reference in New Issue
Block a user