|
|
@ -112,7 +112,7 @@ function loadDevices() {
|
|
|
|
user: data.devices[index].enrolmentInfo.owner,
|
|
|
|
user: data.devices[index].enrolmentInfo.owner,
|
|
|
|
status: data.devices[index].enrolmentInfo.status,
|
|
|
|
status: data.devices[index].enrolmentInfo.status,
|
|
|
|
ownership: data.devices[index].enrolmentInfo.ownership,
|
|
|
|
ownership: data.devices[index].enrolmentInfo.ownership,
|
|
|
|
deviceType: data.devices[index].type,
|
|
|
|
type: data.devices[index].type,
|
|
|
|
deviceIdentifier: data.devices[index].deviceIdentifier,
|
|
|
|
deviceIdentifier: data.devices[index].deviceIdentifier,
|
|
|
|
name : data.devices[index].name
|
|
|
|
name : data.devices[index].name
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -133,7 +133,7 @@ function loadDevices() {
|
|
|
|
// possible params - nRow, aData, dataIndex
|
|
|
|
// possible params - nRow, aData, dataIndex
|
|
|
|
var fnCreatedRow = function (nRow, aData) {
|
|
|
|
var fnCreatedRow = function (nRow, aData) {
|
|
|
|
$(nRow).attr('data-type', 'selectable');
|
|
|
|
$(nRow).attr('data-type', 'selectable');
|
|
|
|
$(nRow).attr('data-devicetype', aData["deviceType"]);
|
|
|
|
$(nRow).attr('data-devicetype', aData["type"]);
|
|
|
|
$(nRow).attr('data-deviceid', aData["deviceIdentifier"]);
|
|
|
|
$(nRow).attr('data-deviceid', aData["deviceIdentifier"]);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -142,7 +142,7 @@ function loadDevices() {
|
|
|
|
class : 'remove-padding icon-only content-fill viewEnabledIcon',
|
|
|
|
class : 'remove-padding icon-only content-fill viewEnabledIcon',
|
|
|
|
data : null,
|
|
|
|
data : null,
|
|
|
|
render: function (data, type, row) {
|
|
|
|
render: function (data, type, row) {
|
|
|
|
var deviceType = row.deviceType;
|
|
|
|
var deviceType = row.type;
|
|
|
|
var deviceIdentifier = row.deviceIdentifier;
|
|
|
|
var deviceIdentifier = row.deviceIdentifier;
|
|
|
|
var url = "#";
|
|
|
|
var url = "#";
|
|
|
|
if (row.status != 'REMOVED') {
|
|
|
|
if (row.status != 'REMOVED') {
|
|
|
@ -197,9 +197,9 @@ function loadDevices() {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
className: 'fade-edge remove-padding-top',
|
|
|
|
className: 'fade-edge remove-padding-top',
|
|
|
|
data: 'deviceType',
|
|
|
|
data: 'type',
|
|
|
|
render: function (deviceType) {
|
|
|
|
render: function (type) {
|
|
|
|
return '<div><label class="label-bold">Type : </label>' + deviceType + '</div>';
|
|
|
|
return '<div><label class="label-bold">Type : </label>' + type + '</div>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|