From a5a222ead697b6c00eca6f2f124adb48fd2bf354 Mon Sep 17 00:00:00 2001 From: kamidu Date: Wed, 5 Apr 2017 11:13:21 +0530 Subject: [PATCH] fixing device status --- .../pages/cdmf.page.devices/public/js/listing.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js index 531a949d7c..348b8d4c05 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js @@ -288,6 +288,9 @@ function loadDevices(searchType, searchParam) { case 'REMOVED' : html = ' Removed'; break; + case 'UNREACHABLE' : + html = ' Unreachable'; + break; } return html; } @@ -461,11 +464,11 @@ function loadDevices(searchType, searchParam) { attachDeviceEvents(); - // if ($('.advance-search').length < 1) { - // $(this).closest('.dataTables_wrapper').find('div[id$=_filter] input') - // .after('Advance Search'); - // } + if ($('.advance-search').length < 1) { + $(this).closest('.dataTables_wrapper').find('div[id$=_filter] input') + .after('Advance Search'); + } }, { "placeholder": "Search By Device Name",