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 0d5ce68aab..358b95b62e 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
@@ -497,11 +497,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",