diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/mdm.page.devices/devices.hbs b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/mdm.page.devices/devices.hbs
index 748d8b9d4..edaeddafe 100644
--- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/mdm.page.devices/devices.hbs
+++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/mdm.page.devices/devices.hbs
@@ -72,23 +72,7 @@
{{#zone "content"}}
{{#if permissions.VIEW_DEVICES}}
-
-
-
- Loading devices . . .
-
-
-
-
+
@@ -138,21 +122,12 @@
{{else}}
diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/mdm.page.devices/public/js/device-listing.js b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/mdm.page.devices/public/js/device-listing.js
index db25e3447..67c345e7f 100644
--- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/mdm.page.devices/public/js/device-listing.js
+++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/mdm.page.devices/public/js/device-listing.js
@@ -210,14 +210,14 @@ function loadDevices() {
*/
//var assetContainer = "#ast-container";
-function openCollapsedNav(){
- $('.wr-hidden-nav-toggle-btn').addClass('active');
- $('#hiddenNav').slideToggle('slideDown', function(){
- if($(this).css('display') == 'none'){
- $('.wr-hidden-nav-toggle-btn').removeClass('active');
- }
- });
-}
+//function openCollapsedNav(){
+// $('.wr-hidden-nav-toggle-btn').addClass('active');
+// $('#hiddenNav').slideToggle('slideDown', function(){
+// if($(this).css('display') == 'none'){
+// $('.wr-hidden-nav-toggle-btn').removeClass('active');
+// }
+// });
+//}
function initPage() {
var currentUser = $("#device-listing").data("currentUser");
@@ -230,13 +230,13 @@ function initPage() {
data = JSON.parse(data);
if (data["count"] > 0) {
$(".bulk-action-row").removeClass('hidden');
+ $("#device-table").removeClass('hidden');
loadDevices();
} else {
- $("#loading-content").remove();
- $("#device-table").remove();
- $("#no-device-view").removeClass('hidden');
- $("#advanced-search-btn").addClass('hidden');
$("#enroll-btn").addClass('hidden');
+ $("#advanced-search-btn").addClass('hidden');
+ $("#device-table").addClass('hidden');
+ $("#no-device-view").removeClass('hidden');
}
}
}, function () {