Подсказка для фильтров в несколько колонок

Нужно в настройках плагина в шаблоне добавить код:

$.wa.filters.counter = function (data, params, tmp) {
    var c = $("#filters-count");
    if (c.data('timeout')) {
        clearTimeout(c.data('timeout'));
    }
    c.data('timeout', setTimeout(function () {
        c.hide();
    }, $.wa.filters.timeout || 3000));
    c.html(data.html + (data.count ? ' <a href="?' + params + '">Показать</a>' : ''));
    if (tmp.length) {
        c.css('top', tmp.offset().top - (c.outerHeight() - tmp.height()) / 2);
        c.show().css('left', tmp.offset().left - c.outerWidth() - 10);                
    }
}
Posted: February 1, 2017
Was this article helpful? Yes No

0 comments

    Add comment

    To add a comment please sign up or login