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 60: Line 60:
var quote = $(this).find('.quote').text();
var quote = $(this).find('.quote').text();
var modificationDate = $(this).find('.modification-date').text();
var modificationDate = $(this).find('.modification-date').text();
            // Fetching and handling related articles content
             var relatedArticlesHtml = $(this).find('.related-articles').html();
             var relatedArticlesContent = $(this).find('.related-articles').html() || '';
           
            if (relatedArticlesContent.trim() === '') {
                relatedArticlesContent = '<p>No related articles found.</p>';
            }
 
            // Append the related articles content to the modal
            $('#related-articles').html(relatedArticlesContent);


             // Update the fixed column content
             // Update the fixed column content
Line 115: Line 107:


             $('#article-content').html(articleContentHtml);
             $('#article-content').html(articleContentHtml);
            $('#related-articles').html(relatedArticlesHtml);
            if (relatedArticlesHtml) {
                $('#related-articles').show();
            } else {
                $('#related-articles').hide();
            }


function formatParagraphs(text) {
function formatParagraphs(text) {

Navigation menu