DevWiki Articles Unterschied: MediaWiki:Common.js

Unterschied: MediaWiki:Common.js

MediaWiki interface page
Zeile 9: Zeile 9:
var path = window.location.pathname;
var path = window.location.pathname;
if (path.includes('redlink')) {
if (path.includes('redlink')) {
window.location.pathname = path.replace('edit', 'formedit');
window.location.href = path.replace('edit', 'formedit');
}
}

Version vom 16. Juni 2021, 07:44 Uhr

/* Das folgende JavaScript wird für alle Benutzer geladen. */

/*$('a.new').click(function(e) {
    e.preventDefault();
    let href = $(e.target).attr('href').replace('edit', 'formedit');
    window.location.href = href;
});*/

var path = window.location.pathname;
if (path.includes('redlink')) {
	window.location.href = path.replace('edit', 'formedit');
}
Cookies helfen uns bei der Bereitstellung von DevWiki Articles. Durch die Nutzung von DevWiki Articles erklärst du dich damit einverstanden, dass wir Cookies speichern.