4,431
edits
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 64: | Line 64: | ||
} | } | ||
// Using delegated event handling for both #list #list-list | // Using delegated event handling for both #list and #list-list | ||
$('#list, #list-list | $('#list, #list-list').on('mousedown', '.filtered-value-option', function(event) { | ||
console.log("Filter clicked within context:", this); | console.log("Filter clicked within context:", this); | ||
if ($(this).closest('#list').length) { | |||
console.log("Context: #list"); | |||
console.log("Context: #list | |||
console.log("Before hiding, Community Featured display:", communityFeatured.css('display')); | console.log("Before hiding, Community Featured display:", communityFeatured.css('display')); | ||
console.log("After hiding, Community Featured display:", communityFeatured.css('display')); | console.log("After hiding, Community Featured display:", communityFeatured.css('display')); | ||
} else if ( | } else if ($(this).closest('#list-list').length) { | ||
console.log("Context: #list-list | console.log("Context: #list-list"); | ||
console.log("Before hiding, Community List Featured display:", communityListFeatured.css('display')); | console.log("Before hiding, Community List Featured display:", communityListFeatured.css('display')); | ||
console.log("After hiding, Community List Featured display:", communityListFeatured.css('display')); | console.log("After hiding, Community List Featured display:", communityListFeatured.css('display')); |