MediaWiki:Common.js: Difference between revisions

28.10.2025 Prusac | 18.11.2025

No edit summary
No edit summary
Tag: Reverted
Line 4: Line 4:
document.getElementById('searchInput').setAttribute("placeholder","");
document.getElementById('searchInput').setAttribute("placeholder","");
document.getElementsByClassName('cdx-text-input__input')[0].setAttribute("autocomplete","off");
document.getElementsByClassName('cdx-text-input__input')[0].setAttribute("autocomplete","off");
var naslov = document.title;
if (naslov === 'Kreiranje novog članka - MelanyWiki') {
  document.getElementsByClassName('mw-inputbox-createbox cdx-text-input__input').focus();
}

Revision as of 15:47, 31 October 2025

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

document.getElementById('searchInput').focus();
document.getElementById('searchInput').setAttribute("placeholder","");
document.getElementsByClassName('cdx-text-input__input')[0].setAttribute("autocomplete","off");

var naslov = document.title;
if (naslov === 'Kreiranje novog članka - MelanyWiki') {
  document.getElementsByClassName('mw-inputbox-createbox cdx-text-input__input').focus();	
}