Home › Forums › Front End PM PRO › On text entered, the list is updated › Reply To: On text entered, the list is updated
March 29, 2018 at 7:09 pm
#12821
Shamim Hasan
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
});