MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 41: Line 41:
        console.log("Context: #list");
        console.log("Context: #list");
        communityFeatured.hide();
        communityFeatured.hide();
        console.log("Community Featured should now be hidden. Current display:", communityFeatured.css('display'));
        console.log("Community Featured should now be hidden. Current display:", communityFeatured.css('display', 'none !important'));
    } else if ($(this).closest('#list-list').length) {
    } else if ($(this).closest('#list-list').length) {
        console.log("Context: #list-list");
        console.log("Context: #list-list");
        communityListFeatured.hide();
        communityListFeatured.hide();
        console.log("Community List Featured should now be hidden. Current display:", communityListFeatured.css('display'));
        console.log("Community List Featured should now be hidden. Current display:", communityListFeatured.css('display', 'none !important'));
    }
    }
});
});
Line 157: Line 157:
          
          
         // Hide communityFeatured
         // Hide communityFeatured
         //communityFeatured.hide();
         communityFeatured.hide();
         //communityListFeatured.hide();
         communityListFeatured.hide();
          
          
         // Extract and handle the information from the cardElement
         // Extract and handle the information from the cardElement
Line 276: Line 276:
          
          
         // Show communityFeatured
         // Show communityFeatured
         //communityFeatured.show();
         communityFeatured.show();
         //communityListFeatured.show();
         communityListFeatured.show();
     }
     }
      
      

Navigation menu