|
|
@ -210,14 +210,14 @@ function loadDevices() {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
//var assetContainer = "#ast-container";
|
|
|
|
//var assetContainer = "#ast-container";
|
|
|
|
|
|
|
|
|
|
|
|
function openCollapsedNav(){
|
|
|
|
//function openCollapsedNav(){
|
|
|
|
$('.wr-hidden-nav-toggle-btn').addClass('active');
|
|
|
|
// $('.wr-hidden-nav-toggle-btn').addClass('active');
|
|
|
|
$('#hiddenNav').slideToggle('slideDown', function(){
|
|
|
|
// $('#hiddenNav').slideToggle('slideDown', function(){
|
|
|
|
if($(this).css('display') == 'none'){
|
|
|
|
// if($(this).css('display') == 'none'){
|
|
|
|
$('.wr-hidden-nav-toggle-btn').removeClass('active');
|
|
|
|
// $('.wr-hidden-nav-toggle-btn').removeClass('active');
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
function initPage() {
|
|
|
|
function initPage() {
|
|
|
|
var currentUser = $("#device-listing").data("currentUser");
|
|
|
|
var currentUser = $("#device-listing").data("currentUser");
|
|
|
@ -230,13 +230,13 @@ function initPage() {
|
|
|
|
data = JSON.parse(data);
|
|
|
|
data = JSON.parse(data);
|
|
|
|
if (data["count"] > 0) {
|
|
|
|
if (data["count"] > 0) {
|
|
|
|
$(".bulk-action-row").removeClass('hidden');
|
|
|
|
$(".bulk-action-row").removeClass('hidden');
|
|
|
|
|
|
|
|
$("#device-table").removeClass('hidden');
|
|
|
|
loadDevices();
|
|
|
|
loadDevices();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$("#loading-content").remove();
|
|
|
|
|
|
|
|
$("#device-table").remove();
|
|
|
|
|
|
|
|
$("#no-device-view").removeClass('hidden');
|
|
|
|
|
|
|
|
$("#advanced-search-btn").addClass('hidden');
|
|
|
|
|
|
|
|
$("#enroll-btn").addClass('hidden');
|
|
|
|
$("#enroll-btn").addClass('hidden');
|
|
|
|
|
|
|
|
$("#advanced-search-btn").addClass('hidden');
|
|
|
|
|
|
|
|
$("#device-table").addClass('hidden');
|
|
|
|
|
|
|
|
$("#no-device-view").removeClass('hidden');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, function () {
|
|
|
|
}, function () {
|
|
|
|