Forum Replies Created

Viewing 1 replies (of 1 total)
  • It would be helpful to have a function complimentary to $.fn.almComplete that is fired if no results are found. e.g.: $.fn.almEmpty. Currently, if no results are found $.fn.almComplete doesn’t fire.

    A use case is, say you’re pulling all the products in a certain category, and the user can toggle between categories. If no entries are found, it’d be helpful to return “Not Found” copy and layout.

    E.g: in ajax-load-more.js, inside the else statement beginning on line 270:

    if ($.isFunction($.fn.almEmpty)) {
        $.fn.almEmpty(alm);
    }

    Something like that should do the trick.

Viewing 1 replies (of 1 total)