Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Disable Ajax load › Reply To: Disable Ajax load
February 2, 2016 at 11:24 am
#7538
Hi,
It’s already a customization workaround, unfortunately I cannot guarantee it’s going to work.
You can try one more thing, maybe lowering the timeout value down to 50, and combining with the previous solution.
First possibility:
<script>
var _scope = ASP.getScope();
_scope(function($) {
$("p.asp-try a").click(function(){
setTimeout(function(){
$("div.promagnifier").click();
var e = $.Event( "keyup", { which: 13 } );
$("input.orig").trigger(e);
}, 50);
});
});
</script>
Second possibility:
<script>
var _scope = ASP.getScope();
_scope(function($) {
$("p.asp-try a").click(function(){
setTimeout(function(){
$("div.promagnifier").click();
}, 50);
});
});
</script>
One of them might work correctly, I’m betting on the first one.
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)



