Merge pull request #860 from dilee/master

Fixing wso2/product-iots#1150
revert-70aa11f8
Kamidu Sachith Punchihewa 7 years ago committed by GitHub
commit d7487ea395

@ -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);
@ -333,7 +333,7 @@ function loadDevices(searchType, searchParam) {
},
{
targets: 6,
data: 'status',
data: 'action-buttons',
class: 'text-right content-fill text-left-on-grid-view no-wrap tooltip-overflow-fix',
render: function (status, type, row, meta) {
var deviceType = 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