If you add code to an element using the document.ready jQuery method this code will stop working when a View is updated via AJAX through custom searches or pagination. This is why you need to reattach it to your page.
- Expand the JS editor (below the main Search and Pagination editor).
- Click the Frontend events button as shown in the following image.
- The Insert Views frontend event handler dialog appears. You can select events that belong to one of the following features:
- Custom search
- Google Maps (available only when Toolset Maps plugin is active)
Select events you want to insert the code for and click the Insert event trigger button.