Forums Forums Search & Filter Pro Uncode support

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #263283

    Hello,
    to work with Uncode post grid module is necessary to call the js function “UNCODE.isotopeLayout();” that reloads the grid.
    How I can call this function after form submit or auto-submit?
    FacetWP for instance has a dedicated js function that works well: “$(document).on(‘facetwp-loaded’, function() {UNCODE.isotopeLayout();});”

    Thanks

    Trevor
    #263342

    You would need to add a script like this to the page:

    <script>(function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        // call your script or function here
      });
    }(jQuery));</script>
Viewing 2 posts - 1 through 2 (of 2 total)