mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request #911 from harshanL/master
Fix for wso2/product-iots#1320.
This commit is contained in:
commit
a86c4e86f6
@ -259,7 +259,7 @@ function loadDevices(searchType, searchParam) {
|
||||
var columns = [
|
||||
{
|
||||
targets: 0,
|
||||
data: 'name',
|
||||
data: 'namePattern',
|
||||
class: 'remove-padding icon-only content-fill viewEnabledIcon',
|
||||
render: function (data, type, row, meta) {
|
||||
return '<div class="thumbnail icon"><img class="square-element text fw " src="'
|
||||
@ -471,7 +471,8 @@ function loadDevices(searchType, searchParam) {
|
||||
ownership: data.devices[index].enrolmentInfo.ownership,
|
||||
deviceType: data.devices[index].type,
|
||||
deviceIdentifier: data.devices[index].deviceIdentifier,
|
||||
name: data.devices[index].name
|
||||
name: data.devices[index].name,
|
||||
namePattern: data.devices[index].name
|
||||
}
|
||||
);
|
||||
});
|
||||
@ -504,8 +505,8 @@ function loadDevices(searchType, searchParam) {
|
||||
}
|
||||
|
||||
}, {
|
||||
"placeholder": "Search By Device Name",
|
||||
"searchKey": "name"
|
||||
"placeholder": "Top-Device-Name-Search",
|
||||
"searchKey": "namePattern"
|
||||
}
|
||||
);
|
||||
|
||||
@ -567,6 +568,9 @@ $(document).ready(function () {
|
||||
}
|
||||
});
|
||||
|
||||
//Hide the search by device-name input
|
||||
$("input[placeholder='Top-Device-Name-Search']").hide();
|
||||
|
||||
});
|
||||
|
||||
var modalPopup = ".modal";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user