|
|
@ -95,8 +95,6 @@ function loadDevices() {
|
|
|
|
"data": []
|
|
|
|
"data": []
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return JSON.stringify(json);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (data["count"] > 0) {
|
|
|
|
} else if (data["count"] > 0) {
|
|
|
|
$(noDeviceView).remove();
|
|
|
|
$(noDeviceView).remove();
|
|
|
|
$("#enroll-btn").removeClass('hidden');
|
|
|
|
$("#enroll-btn").removeClass('hidden');
|
|
|
@ -127,8 +125,9 @@ function loadDevices() {
|
|
|
|
"data": objects
|
|
|
|
"data": objects
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return JSON.stringify(json);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return JSON.stringify(json);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// possible params - nRow, aData, dataIndex
|
|
|
|
// possible params - nRow, aData, dataIndex
|
|
|
@ -146,7 +145,7 @@ function loadDevices() {
|
|
|
|
var deviceType = row.deviceType;
|
|
|
|
var deviceType = row.deviceType;
|
|
|
|
var deviceIdentifier = row.deviceIdentifier;
|
|
|
|
var deviceIdentifier = row.deviceIdentifier;
|
|
|
|
var url = "#";
|
|
|
|
var url = "#";
|
|
|
|
if (status != 'REMOVED') {
|
|
|
|
if (row.status != 'REMOVED') {
|
|
|
|
url = "device/" + deviceType + "?id=" + deviceIdentifier;
|
|
|
|
url = "device/" + deviceType + "?id=" + deviceIdentifier;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return '<div onclick="javascript:InitiateViewOption(\'' + url + '\')" class="thumbnail icon">' +
|
|
|
|
return '<div onclick="javascript:InitiateViewOption(\'' + url + '\')" class="thumbnail icon">' +
|
|
|
|