Please add JS event "asp_resuts_hide" on your next version

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Please add JS event "asp_resuts_hide" on your next version

This topic contains 2 replies, has 2 voices, and was last updated by onlinesid onlinesid 5 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12013
    onlinesid
    onlinesid
    Participant

    You have JS event “asp_resuts_show” but you don’t have “asp_resuts_hide”. Can you please “asp_resuts_hide” on your next version? It’s very easy:

    In jquery.ajaxsearchpro.js in hideResults function just add this at the bottom before exiting the function:

    
    $this.n.c.trigger("asp_results_hide", [$this.o.id, $this.o.iid]);
    

    That will enable your users to do something like this:

    
        jQuery(".asp_main_container").on("asp_results_show", function(ev, id, instance) {
            console.log('Showing results', ev, id, instance);
        });
    
        jQuery(".asp_main_container").on("asp_results_hide", function(ev, id, instance) {
            console.log('Hiding results', ev, id, instance);
        });
    
    Attachments:
    You must be logged in to view attached files.
    #12015
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Great idea! I have added the event to the upcoming version code, it will be included in the 4.10.3 release.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #12016
    onlinesid
    onlinesid
    Participant

    Thank you Ernest

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.