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

#12821
shamim
Keymaster

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

add_action( 'fep_display_before_messagebox', 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-messagebox-search-form-field').keyup(function() {
			delay(function(){
		      $('#fep-messagebox-search-form').submit();
		  }, 1000 );
		});
	});
	</script><?php
});