Biurokraci, Moderatorzy czatu, checkuser, commenters, Moderatorzy (CommentStreams), gitkursanci, Administratorzy interfejsu, Moderatorzy, odkrywajacy, Page Ownership admin, swiadomikursanci, Administratorzy, Redaktorzy widżetów
969
edycji
Swiadomosc (dyskusja | edycje) mNie podano opisu zmian |
Swiadomosc (dyskusja | edycje) mNie podano opisu zmian |
||
| Linia 79: | Linia 79: | ||
if ($('body').hasClass('skin-minerva')) { | if ($('body').hasClass('skin-minerva')) { | ||
$('#footer-places-privacy').after(customLinkMobile); | $('#footer-places-privacy').after(customLinkMobile); | ||
} | |||
}); | |||
$(document).ready(function() { | |||
var customLink = $('<li id="custom-footer-privacy-link-mobile"><a href="#" onclick="illow.showWidget(); return false;">Privacy Control Center</a></li>'); | |||
// Since we know the mobile skin only displays two specific items, we target one for placement. | |||
if ($('#footer-places-privacy').length) { | |||
// Directly after "Polityka prywatności" | |||
$('#footer-places-privacy').after(customLink); | |||
} else if ($('#footer-places-desktop-toggle').length) { | |||
// As a fallback, place it before "Wersja standardowa" if for some reason the above ID is not found. | |||
$('#footer-places-desktop-toggle').before(customLink); | |||
} | } | ||
}); | }); | ||
edycji