javascript - ActiveAdmin - Static Content on Index Page -
i trying map based filtering on activeadmin data set. have created partial contains map , associated javascript, , can render using code:
activeadmin.register location menu priority: 4, label: 'locations' filter :name .... index panel "maps" div render :partial => "/admin/dashboard/map", :locals => { } end end ....
however, if filters set on page such there no data meeting criteria data set - no content shown , map not shown. idea here allow filtering based on map, have working, when there no results, still want map show user can alter map settings , find data want.
does know how in activeadmin? want partial show no matter result set particular index.
thanks in advance!