• Is there some sort of callback that i can hook into to apply some javascript after the results are loaded or after they change?

    I want to simply apply matchHeight to the items after they’re loaded. Adding js to my controller loads before the plugins js is loaded and therefore doesnt apply. Id rather not have to do some sort of setTimeout Function

    https://ww.wp.xz.cn/plugins/wp-store-locator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    .ajaxComplete() worked for me when I just tested it.

    I just added the JS code below to the footer, and the message showed up in the console after the data was loaded, so running any script you want to adjust the height should also work.

    $( document ).ajaxComplete(function() {
      console.log( "test" );
    });
    Thread Starter brianp-wordpress

    (@brianp-wordpress)

    Thanks Tijmen, worked perfect. Is there a way to bind a click function inside of the popup window on the map also? I’ve got to trigger a dialog to ask if they want to leave the site or not when they click Get Directions

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Callback Function to Hook Into after Results Loaded?’ is closed to new replies.