MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 38: Line 38:
//]]>
//]]>


//script per customizzare il testo in Special:Search
$(function searchText() {
$(function searchText() {
if (window.location.href.indexOf("Special:Search") != -1) {
if (window.location.href.indexOf("Special:Search") != -1) {
var e = document.getElementsById('h1')[0];
var d = document.createElement('div');
d.innerHTML = e.innterHTML;
e.parentNode.replaceChild(d, e);
document.getElementById('section_0').innerHTML = 'Search Test';
document.getElementById('section_0').innerHTML = 'Search Test';
}
}
}());
}());