This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Please add JS event "asp_resuts_hide" on your next version

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12013
    onlinesidonlinesid
    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:

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

    That will enable your users to do something like this:

    [code]
    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);
    });
    [/code]

    #12015
    Ernest MarcinkoErnest 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.

    #12016
    onlinesidonlinesid
    Participant

    Thank you Ernest

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.