Revize c2873e44
Přidáno uživatelem Ondřej Anděl před téměř 4 roky(ů)
application/view/modals/detailModal.html | ||
---|---|---|
137 | 137 |
<i id="mood"></i> |
138 | 138 |
</div> |
139 | 139 |
</div> |
140 |
<div class="row" id="irregular-wrapper"> |
|
141 |
<div class="col-xs-12 col-sm-4"> |
|
142 |
<label>Neurčitý slovesný tvar:</label> |
|
143 |
</div> |
|
144 |
<div class="col-xs-12 col-sm-8"> |
|
145 |
<i id="irregular"></i> |
|
146 |
</div> |
|
147 |
</div> |
|
140 | 148 |
<div class="row" id="person-wrapper"> |
141 | 149 |
<div class="col-xs-12 col-sm-4"> |
142 | 150 |
<label>Osoba:</label> |
... | ... | |
225 | 233 |
modal.find('#k-type-wrapper').hide(); |
226 | 234 |
modal.find('#type-wrapper').hide(); |
227 | 235 |
modal.find('#mood-wrapper').hide(); |
236 |
modal.find('#irregular-wrapper').hide(); |
|
228 | 237 |
} else { |
229 | 238 |
if(morphem.charAt(0) === 'J') { |
230 | 239 |
modal.find('#mood-wrapper').hide(); |
231 | 240 |
modal.find('#type-wrapper').hide(); |
241 |
modal.find('#irregular-wrapper').hide(); |
|
232 | 242 |
|
233 | 243 |
modal.find('#k-type-wrapper').show(); |
234 | 244 |
modal.find('#k-type').text(codeToKType[morphem.charAt(7)]); |
235 | 245 |
} else if(morphem.charAt(0) === 'P') { |
236 | 246 |
modal.find('#k-type-wrapper').hide(); |
237 | 247 |
modal.find('#mood-wrapper').hide(); |
248 |
modal.find('#irregular-wrapper').hide(); |
|
238 | 249 |
|
239 | 250 |
modal.find('#type-wrapper').show(); |
240 | 251 |
modal.find('#type').text(codeToType[morphem.charAt(7)]); |
... | ... | |
242 | 253 |
modal.find('#k-type-wrapper').hide(); |
243 | 254 |
modal.find('#type-wrapper').hide(); |
244 | 255 |
|
245 |
modal.find('#mood-wrapper').show(); |
|
246 |
modal.find('#mood').text(codeToMood[morphem.charAt(7)]); |
|
256 |
if(codeToMood[morphem.charAt(7)] !== undefined){ |
|
257 |
modal.find('#irregular-wrapper').hide(); |
|
258 |
modal.find('#mood-wrapper').show(); |
|
259 |
modal.find('#mood').text(codeToMood[morphem.charAt(7)]); |
|
260 |
} else { |
|
261 |
modal.find('#mood-wrapper').hide(); |
|
262 |
modal.find('#irregular-wrapper').show(); |
|
263 |
modal.find('#irregular').text(codeToIrregular[morphem.charAt(7)]); |
|
264 |
} |
|
247 | 265 |
} else { |
248 | 266 |
modal.find('#k-type-wrapper').hide(); |
249 | 267 |
modal.find('#type-wrapper').hide(); |
250 | 268 |
modal.find('#mood-wrapper').hide(); |
269 |
modal.find('#irregular-wrapper').hide(); |
|
251 | 270 |
} |
252 | 271 |
} |
253 | 272 |
|
... | ... | |
400 | 419 |
}; |
401 | 420 |
|
402 | 421 |
const codeToMood = { |
403 |
"f": "Infinitiv", |
|
404 | 422 |
"d": "Indikativ", |
405 | 423 |
"i": "Imperativ", |
406 |
"c": "Kondicionál", |
|
424 |
"c": "Kondicionál" |
|
425 |
}; |
|
426 |
|
|
427 |
const codeToIrregular = { |
|
428 |
"f": "Infinitiv", |
|
407 | 429 |
"S": "Supinum", |
408 | 430 |
"e": "Přech. přítomný", |
409 | 431 |
"m": "Přech. minulý", |
Také k dispozici: Unified diff
Bug #8528: Rozdělení položky způsob