4,554
edits
No edit summary |
No edit summary |
||
Line 266: | Line 266: | ||
return; // Clicked on a link inside '.people' or '.type', do nothing | return; // Clicked on a link inside '.people' or '.type', do nothing | ||
} | } | ||
openModal(); | openModal(this); | ||
}); | }); | ||
Line 321: | Line 321: | ||
$('#list, #list-list').removeClass('fade-out'); | $('#list, #list-list').removeClass('fade-out'); | ||
showArticleWrapper.css('display', 'none'); | showArticleWrapper.css('display', 'none'); | ||
closeModal(); | closeModal(this); | ||
}); | }); | ||
Line 327: | Line 327: | ||
$(document).on('mousedown', function(event) { | $(document).on('mousedown', function(event) { | ||
if (!showArticleWrapper.is(event.target) && showArticleWrapper.has(event.target).length === 0) { | if (!showArticleWrapper.is(event.target) && showArticleWrapper.has(event.target).length === 0) { | ||
closeModal(); | closeModal(this); | ||
} | } | ||
}); | }); |