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 28c0e1f0745..348b8d4c055 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
@@ -464,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",