Revize d7f65101
Přidáno uživatelem Ondřej Anděl před téměř 4 roky(ů)
application/view/searchContent.php | ||
---|---|---|
4 | 4 |
let itemCount = 0; |
5 | 5 |
let pageCount = 0; |
6 | 6 |
|
7 |
|
|
8 | 7 |
//what to do when page renders |
9 | 8 |
window.onload = function() { |
10 | 9 |
let sourceSelect = new vanillaSelectBox("#source"); |
... | ... | |
357 | 356 |
</div> |
358 | 357 |
<div class="mr-3" id="filter-mood"> |
359 | 358 |
<label for="mood" class="mr-2">Způsob</label> |
360 |
<select id="mood"> |
|
359 |
<select id="mood" onchange="moodChange()">
|
|
361 | 360 |
<option selected="selected" value = "">Nevybráno</option> |
362 | 361 |
<option value = "d">Indikativ</option> |
363 | 362 |
<option value = "i">Imperativ</option> |
... | ... | |
366 | 365 |
</div> |
367 | 366 |
<div class="mr-3" id="filter-irregular"> |
368 | 367 |
<label for="irregular" class="mr-2">Neurčitý slovesný tvar</label> |
369 |
<select id="irregular"> |
|
368 |
<select id="irregular" onchange="irregularChange()">
|
|
370 | 369 |
<option selected="selected" value = "">Nevybráno</option> |
371 | 370 |
<option value = "f">Infinitiv</option> |
372 | 371 |
<option value = "S">Supinum</option> |
... | ... | |
444 | 443 |
</thead> |
445 | 444 |
<tbody id="search-table"> |
446 | 445 |
<script> |
446 |
function moodChange() { |
|
447 |
if(document.getElementById("mood").value !== ""){ |
|
448 |
document.getElementById("irregular").disabled = true; |
|
449 |
document.getElementById("irregular").title = "Neurčitý slovesný tvar smí být nastaven pouze není-li nastaven způsob"; |
|
450 |
} else { |
|
451 |
document.getElementById("irregular").disabled = false; |
|
452 |
document.getElementById("irregular").title = ""; |
|
453 |
} |
|
454 |
} |
|
455 |
|
|
456 |
function irregularChange() { |
|
457 |
if(document.getElementById("irregular").value !== ""){ |
|
458 |
document.getElementById("mood").disabled = true; |
|
459 |
document.getElementById("mood").title = "Způsob smí být nastaven pouze není-li nastaven neurčitý slovesný tvar"; |
|
460 |
} else { |
|
461 |
document.getElementById("mood").disabled = false; |
|
462 |
document.getElementById("mood").title = ""; |
|
463 |
} |
|
464 |
} |
|
465 |
|
|
447 | 466 |
let data; |
448 | 467 |
function callFilter() { |
449 | 468 |
pageIndex = 0; |
Také k dispozici: Unified diff
Bug #8528: Rozdělení položky způsob - blokace inputu