MediaWiki:Common.js: Porovnání verzí
Z TEST Wiki
Bez shrnutí editace |
Bez shrnutí editace |
||
| (Není zobrazeno 11 mezilehlých verzí od stejného uživatele.) | |||
| Řádek 12: | Řádek 12: | ||
} | } | ||
} | } | ||
}); | |||
$(function () { | |||
// Zruš jQuery UI vzhled tlačítka | |||
$('.articleFeedbackv5-submit').button('destroy'); | |||
}); | }); | ||
Aktuální verze z 9. 6. 2025, 11:31
/* Zde uvedený JavaScript bude použit pro všechny uživatele při načtení každé stránky */
$(document).ready(function() {
var searchForm = $("#searchform");
if (searchForm.length > 0) {
var searchInput = searchForm.find("input[name='search']");
if (searchInput.length > 0) {
var currentAction = searchForm.attr("action");
// Přepíšeme `profile=default` na `profile=all`
var newAction = currentAction.replace("profile=default", "profile=all");
searchForm.attr("action", newAction);
}
}
});
$(function () {
// Zruš jQuery UI vzhled tlačítka
$('.articleFeedbackv5-submit').button('destroy');
});