MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 437: Line 437:


     // Delegate the mousedown event for both block view and list view pages
     // Delegate the mousedown event for both block view and list view pages
$('#list, #list-list').on('mousedown', '.card, .list-card', function(event) {
$('#list, #list-list, #list-block-1, #list-block-2, #list-block-3').on('mousedown', '.card, .list-card', function(event) {
    if ($(event.target).closest('.people a, .type a').length) {
    if ($(event.target).closest('.people a, .type a').length) {
        return; // Clicked on a link inside '.people' or '.type', do nothing
        return; // Clicked on a link inside '.people' or '.type', do nothing
Line 498: Line 498:


$('#close-button').on('click', function () {
$('#close-button').on('click', function () {
    $('#list, #list-list').removeClass('fade-out');
    $('#list, #list-list, #list-block-1, #list-block-2, #list-block-3').removeClass('fade-out');
    closeModal();
    closeModal();
});
});

Navigation menu