MediaWiki:Common.js: Difference between revisions

From Hollywood in Pixels Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
function cDependent(){
function cDependent(){
if($('.mw-references-wrap').length === 0){
if($('.mw-references-wrap').length === 0){
$('.cdependent').hide();
} else {
} else {
$('.cdependent').show();
$('.cdependent').show();
}
}
}
}

Revision as of 14:51, September 9, 2021

/* Any JavaScript here will be loaded for all users on every page load. */

$(function() {
	cDependent();
});

function cDependent(){
	if($('.mw-references-wrap').length === 0){
		
	} else {
		$('.cdependent').show();
	}
}