$(function () { // On mouse click and touch, add a class to ', template: '' }).data('bs.popover').tip().addClass($('#btn-close').data("theme")); } // Entity list item $('.entity-list-expandable .entity-list-item').click(function() { if ($(this).hasClass('active') === false) { var parent = $(this).parent(); $('.entity-list-item', parent).removeClass('active'); $(this).addClass('active'); } }); });