var $filter = $('.list-cat-filter');
$filter.on('click', 'a', function() {
var active_text = $filter.find('.active').text();
// или var active_text = $(this).text();
$filter.find('span:first').text(active_text);
});
.update({
from: from,
to: to
});
$(".arrow-left").click(function(e) {
$(".gallery-img-box").slick('slickNext');
});
$('.gallery-img-box').slick({
slidesToShow: 4,
arrows: true
});
$('.gallery-img-box').slick({
slidesToShow: 4,
arrows: true,
prevArrow: '<span class="slick-arrow-LEFTCLASS"></span>',
nextArrow: '<span class="slick-arrow-RIGHTCLASS"></span>'
});
$(function() {
var $togglers = $(".js-deps-popup");
return $togglers.on("click", function(e) {
var $this = $(this),
$item = $this.next(".dep"),
$active = $(".dep_show");
$item.toggleClass("dep_show");
$active.removeClass("dep_show");
e.stopPropagation();
});
});
$(function() {
$(document).click(function(e) {
var $togglersPopup = $(".dep__popup");
if (!$togglersPopup.is(e.target) &&
$togglersPopup.has(e.target).length === 0
) {
$(".dep").removeClass("dep_show");
}
});
});