« MediaWiki:Common.js » : différence entre les versions
Aller à la navigation
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
if ($('.item_container') | if ($('.item_container').length!==0) { | ||
$('.item_container').each(function() { | $('.item_container').each(function() { | ||
$(this).append('<img src="' + $(this).attr('data-url') + '">'); | $(this).append('<img src="' + $(this).attr('data-url') + '">'); | ||
Ligne 9 : | Ligne 9 : | ||
$.getScript("https://wiki.the-west.fr/wiki/Popup.js?action=raw"); | $.getScript("https://wiki.the-west.fr/wiki/Popup.js?action=raw"); | ||
}); | }); | ||
} | |||
} | |||
if ($('#navbar').length !== 0) { | if ($('#navbar').length !== 0) { | ||
$('#navbar a').removeAttr("title"); | $('#navbar a').removeAttr("title"); | ||
} | } |
Version du 31 août 2017 à 20:26
if ($('.item_container').length!==0) { $('.item_container').each(function() { $(this).append('<img src="' + $(this).attr('data-url') + '">'); }); $('.item_container[data-link]').each(function() { $(this).find('img').wrap('<a href="' + $(this).attr('data-link') + '"></a>'); }); $(function() { $.getScript("https://wiki.the-west.fr/wiki/Popup.js?action=raw"); }); } if ($('#navbar').length !== 0) { $('#navbar a').removeAttr("title"); }