Add active class when clicking

This commit is contained in:
Gabriel Augendre 2016-04-17 12:59:12 +02:00
parent 4b20891ee4
commit f475f5423c

View file

@ -207,6 +207,8 @@
$(document).on('click', '.pl_item', function (e) {
e.preventDefault();
var pl_name = $(this).text();
$('.pl_item').removeClass('active');
$(this).addClass('active');
var target = document.getElementById('spin-dups');
var spinner = new Spinner(spinnerOpts).spin(target);
$.ajax({