MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 154: Line 154:
// Function to open the modal and adjust the list
// Function to open the modal and adjust the list
function openModal(cardElement, event) {
function openModal(cardElement, event) {
event.stopPropagation(); // Prevent the event from bubbling up
    event.stopPropagation(); // Prevent the event from bubbling up
    console.log('openModal called with:', cardElement);
    console.log('openModal called with:', cardElement);
    var isRelatedArticle = $(cardElement).hasClass('related-article');
    var isRelatedArticle = $(cardElement).hasClass('related-article');
Line 184: Line 184:
        var type = $(cardElement).find('.related-article-type').text();
        var type = $(cardElement).find('.related-article-type').text();
        console.log('Entry Number:', entryNumber);
        // Debug logs
        console.log('People:', people);
        console.log('Related Article - Entry Number:', entryNumber);
        console.log('Title:', title);
        console.log('Related Article - People:', people);
        console.log('Type:', type);
        console.log('Related Article - Title:', title);
        console.log('Related Article - Type:', type);
        // Update modal content for related-article
        // Update modal content for related-article

Navigation menu