mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Updating emm device listing - UI
This commit is contained in:
parent
13aedbc6c6
commit
36d4c7dfcb
@ -149,7 +149,8 @@ function loadDevices() {
|
|||||||
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">' +
|
||||||
'<i class="square-element text fw fw-mobile"></i></div>'
|
'<i class="square-element text fw fw-mobile"></i>' +
|
||||||
|
'</div>'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -219,7 +220,6 @@ function loadDevices() {
|
|||||||
function () {
|
function () {
|
||||||
$(".icon .text").res_text(0.2);
|
$(".icon .text").res_text(0.2);
|
||||||
$('#device-grid').removeClass('hidden');
|
$('#device-grid').removeClass('hidden');
|
||||||
$("#loading-content").remove();
|
|
||||||
}, {
|
}, {
|
||||||
"placeholder" : "Search By Device Name",
|
"placeholder" : "Search By Device Name",
|
||||||
"searchKey" : "name"
|
"searchKey" : "name"
|
||||||
@ -244,38 +244,11 @@ function loadDevices() {
|
|||||||
// });
|
// });
|
||||||
//}
|
//}
|
||||||
|
|
||||||
function initPage() {
|
|
||||||
// var currentUser = $("#device-listing").data("currentUser");
|
|
||||||
// var serviceURL = "/api/device-mgt/v1.0/devices";
|
|
||||||
//
|
|
||||||
// invokerUtil.get(
|
|
||||||
// serviceURL,
|
|
||||||
// function (data) {
|
|
||||||
// if (data) {
|
|
||||||
// data = JSON.parse(data);
|
|
||||||
// if (data["count"] > 0) {
|
|
||||||
// $(".bulk-action-row").removeClass('hidden');
|
|
||||||
// $("#device-table").removeClass('hidden');
|
|
||||||
// loadDevices();
|
|
||||||
// } else {
|
|
||||||
// $("#enroll-btn").addClass('hidden');
|
|
||||||
// $("#advanced-search-btn").addClass('hidden');
|
|
||||||
// $("#device-table").addClass('hidden');
|
|
||||||
// $("#no-device-view").removeClass('hidden');
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }, function () {
|
|
||||||
// initPage();
|
|
||||||
// }
|
|
||||||
// );
|
|
||||||
loadDevices();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DOM ready functions.
|
* DOM ready functions.
|
||||||
*/
|
*/
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
initPage();
|
loadDevices();
|
||||||
|
|
||||||
/* Adding selected class for selected devices */
|
/* Adding selected class for selected devices */
|
||||||
$(deviceCheckbox).each(function () {
|
$(deviceCheckbox).each(function () {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user