fix expand toggling

This commit is contained in:
Bobby Brennan
2019-05-07 15:49:08 +00:00
parent 0f69921589
commit 807955d970

View File

@@ -9,9 +9,7 @@ if (!Object.values) {
$(function () {
$('.card .resource-info .name').on('click', function (e) {
console.log('clicked', arguments)
console.log('parent', $(e.srcElement).parent('.resource-info'));
$(e.srcElement).parents('.resource-info').toggleClass('expanded');
$(this).parents('.resource-info').toggleClass('expanded');
});
var expandMatch = window.location.search.match(/expand=(\w+)(\W|$)/);