');
$('.alert-success').fadeIn(300);
} else {
var errors = data.errors.join("
");
$('.invite-user-form-alert').html('
' + errors + '
');
$('.alert-danger').fadeIn(300);
}
Wo_progressIconLoader($('form.invite-user-form').find('button'));
}
});
});
var userStep = 170;
var userScrolling = false;
// Wire up events for the 'scrollUp' link:
$("#scrollRight").bind("click", function(event) {
event.preventDefault();
$(".sidebar-product-slider").animate({
scrollLeft: "-=" + userStep + "px"
});
});
$("#scrollLeft").bind("click", function(event) {
event.preventDefault();
$(".sidebar-product-slider").animate({
scrollLeft: "+=" + userStep + "px"
});
});
function scrollContent(direction) {
var amount = (direction === "right" ? "-=1px" : "+=1px");
$(".sidebar-product-slider").animate({
scrollLeft: amount
}, 1, function() {
if (userScrolling) {
scrollContent(direction);
}
});
}
$(document).ready(function(){
$('.wo_pro_users').slick({
slidesToShow: 4,
autoplay: false,
autoplaySpeed: 2000,
arrows: false,
speed: 900,
responsive: [
{
breakpoint: 992,
settings: {
arrows: false,
slidesToShow: 5
}
},
{
breakpoint: 768,
settings: {
arrows: false,
slidesToShow: 4
}
},
{
breakpoint: 520,
settings: {
arrows: false,
slidesToShow: 3
}
},
{
breakpoint: 420,
settings: {
arrows: false,
slidesToShow: 2
}
},
{
breakpoint: 340,
settings: {
arrows: false,
slidesToShow: 1
}
}
]
});
});