Unterschied: MediaWiki:Common.js
MediaWiki interface page
Ansichten
Aktionen
Namensräume
Varianten
Werkzeuge
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
Zeile 3: | Zeile 3: | ||
if (window.location.href.includes('redlink=1')) { | if (window.location.href.includes('redlink=1')) { | ||
$('.page-actions').hide(); | $('.page-actions').hide(); | ||
} | |||
var inputs = $(".formedit .oo-ui-comboBoxInputWidget-field input"); | |||
for (var i=0; i<inputs.length; i++) { | |||
var placeholder = $(inputs[i]).parent().parent().parent().parent().parent().find('.placeholder').text(); | |||
$(input[i]).attr('placeholder', placeholder); | |||
} | } |
Version vom 22. Juni 2021, 09:58 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */
if (window.location.href.includes('redlink=1')) {
$('.page-actions').hide();
}
var inputs = $(".formedit .oo-ui-comboBoxInputWidget-field input");
for (var i=0; i<inputs.length; i++) {
var placeholder = $(inputs[i]).parent().parent().parent().parent().parent().find('.placeholder').text();
$(input[i]).attr('placeholder', placeholder);
}