Mam problem z tym modem. Wszystko działa ok, tylko jest jeden mały szkopuł. Jest tam bbcode do chowania textu, do tego jest przycisk:
Kod:
<input class="spoilbtn" value="{L_BBCODEBOX_VIEW}" onClick="javascript:if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = '{L_BBCODEBOX_HIDE}'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = '{L_BBCODEBOX_VIEW}'; }" onfocus="this.blur();">
Jednak, gry się doda do input funkcję:
Kod:
type="button"
to w poscie wywala
Kod:
="button" value="Kliknij by zobaczyć zawartość" onClick="javascript:if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Kliknij by schować zawartość'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Kliknij by zobaczyć zawartość'; }" onfocus="this.blur();">
Gdy dam bez tego
Kod:
type="button"
post wyświetla sie normalnie. Nieważne, czy "type" będzie "button" czy "submit", zawsze wywali. Bez tej funkcji jest dobrze, ale czemu nie chce mi to działać ? Tak normalnie jest w tym modzie, wiec powinno być ok.
E-chomik.eu 