Reply To: On text entered, the list is updated


Home Forums Front End PM PRO On text entered, the list is updated Reply To: On text entered, the list is updated

#12795
shamim
Keymaster

add following code in your theme’s (child theme’s if any) functions.php

add_action( 'fep_display_before_directory', function(){
	?><script type="text/javascript">
	jQuery(document).ready(function($){
		var delay = (function(){
		  var timer = 0;
		  return function(callback, ms){
		    clearTimeout (timer);
		    timer = setTimeout(callback, ms);
		  };
		})();

		$('.fep-directory-search-form-field').keyup(function() {
			delay(function(){
		      $('#fep-directory-search-form').submit();
		  }, 1000 );
		});
	});
	</script><?php
});