mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request #804 from DimalChandrasiri/master
Fix for removed device selection in Data Table
This commit is contained in:
commit
f868fa2d35
@ -404,7 +404,13 @@ function loadDevices(searchType, searchParam) {
|
||||
];
|
||||
|
||||
var fnCreatedRow = function (row, data, dataIndex) {
|
||||
$(row).attr('data-type', 'selectable');
|
||||
|
||||
if(data.status != "REMOVED"){
|
||||
$(row).attr('data-type', 'selectable');
|
||||
}else{
|
||||
$(row).attr('data-type', 'non-selectable');
|
||||
}
|
||||
|
||||
$(row).attr('data-deviceid', htmlspecialchars(data.deviceIdentifier));
|
||||
$(row).attr('data-devicetype', htmlspecialchars(data.deviceType));
|
||||
$(row).attr('data-url', context + '/device/' + htmlspecialchars(data.deviceType) + '?id=' + htmlspecialchars(data.deviceIdentifier));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user