MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 285: Line 285:
             '</div>';
             '</div>';
     }
     }
   
$(document).on('mousedown', function (event) {
    $(document).on('mousedown', function (event) {
        // Check if the click is outside of the #show-article-wrapper and not on a card
    // Check if the click is outside of the #show-article-wrapper and not on a card
        if (!showArticleWrapper.is(event.target) && showArticleWrapper.has(event.target).length === 0 && !$(event.target).hasClass('card')) {
    // Now also checking if it's not on a card within #list-list
            // Remove the fade-out class when hiding the fixed column
    if (!showArticleWrapper.is(event.target) &&  
            $('#list').removeClass('fade-out');
        showArticleWrapper.has(event.target).length === 0 &&  
            showArticleWrapper.css('display', 'none');
        !$(event.target).closest('#list, #list-list').find('.card').length) {
        }
       
    });  
        // Remove the fade-out class when hiding the fixed column
        $('#list, #list-list').removeClass('fade-out');
        showArticleWrapper.css('display', 'none');
    }
});


     $('#close-button').on('click', function () {
     $('#close-button').on('click', function () {

Navigation menu