Add active class when clicking
This commit is contained in:
parent
4b20891ee4
commit
f475f5423c
1 changed files with 2 additions and 0 deletions
|
@ -207,6 +207,8 @@
|
||||||
$(document).on('click', '.pl_item', function (e) {
|
$(document).on('click', '.pl_item', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var pl_name = $(this).text();
|
var pl_name = $(this).text();
|
||||||
|
$('.pl_item').removeClass('active');
|
||||||
|
$(this).addClass('active');
|
||||||
var target = document.getElementById('spin-dups');
|
var target = document.getElementById('spin-dups');
|
||||||
var spinner = new Spinner(spinnerOpts).spin(target);
|
var spinner = new Spinner(spinnerOpts).spin(target);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
Loading…
Reference in a new issue