From 9533bc9ac87624a62428aa1a7bcfe70e23b3e386 Mon Sep 17 00:00:00 2001 From: Imesh Chandrasiri Date: Thu, 19 Jan 2017 10:58:05 +0530 Subject: [PATCH] Adding advance search to devices page --- .../devicemgt/app/pages/cdmf.page.devices/public/js/listing.js | 3 +++ 1 file changed, 3 insertions(+) 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 51c9d926255..cbd7a519119 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 @@ -459,6 +459,9 @@ function loadDevices(searchType, searchParam) { $('#device-grid').removeClass('hidden'); $("#loading-content").remove(); attachDeviceEvents(); + + $(this).closest('.dataTables_wrapper').find('div[id$=_filter] input') + .after('Advance Search') }, { "placeholder": "Search By Device Name", "searchKey": "name"