PageSourceSearch

https://www.bethesda.hu/wp-content/plugins/search-filter-divi/vers…/scripts/search-filter-divi.js?ver=2.1.0

js bethesda.hu collected 2026-10-02 06:04:05 UTC 1,339 bytes, 40 lines download raw bytes

1// This script is loaded both on the frontend page and in the Visual Builder.
2
3(function ( $ ) {
4	"use strict";
5	
6	var removeDiviPaginationEvents = false;
7	
8	$(document).on("sf:init", ".searchandfilter", function(e, data){3
9		
10		var searchForm = {};
11		searchForm = data.object;
12		
13		//check to see if there is a divi search form
14		if(searchForm.display_result_method == "divi_post_module"){
15			//check to see if there is a divi results module
16			if($(data.targetSelector).length>0){
17				//if yes, then its likely this page is a results page for S&F, so remove the DIVI events
18				removeDiviPaginationEvents = true;
19			}
20		}
21	});
22  
23	$(document).ready( function(){
24		if(removeDiviPaginationEvents){
25			//this is the only way to remove those events
26			$( 'body' ).off( 'click', '.et_pb_ajax_pagination_container .wp-pagenavi a, .et_pb_ajax_pagination_container .pagination a');
27		}
28	});
29
30	$(document).on("sf:ajaxfinish", ".searchandfilter", function(e, searchForm){
31		if( (searchForm.object.display_result_method == "divi_post_module") || (searchForm.object.display_result_method == "post_type_archive") ){
32			var $grids = $( searchForm.targetSelector + ' .et_pb_salvattore_content' );
33			if( $grids.length > 0 ){
34				salvattore['register_grid']($grids.get(0));
35				salvattore['recreate_columns']($grids.get(0));
36			}
37		}
38	});
39  
40}(jQuery));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.