MediaWiki:Common.js: Porovnání verzí
Z TEST Wiki
Bez shrnutí editace značka: revertováno |
Bez shrnutí editace značka: ruční vrácení zpět |
||
| Řádek 12: | Řádek 12: | ||
} | } | ||
} | } | ||
}); | }); | ||
Verze z 9. 6. 2025, 11:10
/* 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);
}
}
});