Last modified: 2012-08-30 21:11:27 UTC
Hi, when using radiobuttons (dropdown is fine), I noticed that hidden divs do not show at the first click (at the corresponding associated radiobuttion, of course). This seems because hidden divs do not seem to be set to 'display:none' but only to 'opacity:0' from the very beginning. As a solution I added this bit of code to showDiv function in SemanticForms.js if ( jQuery(this).css('opacity') == 0 ) { jQuery(this).css('opacity', 1); } but I guess this might be solved from the beginning, assigning 'display:none' to associated radiobutton div, and not only 'opacity:0'. However, I haven't found the involved function yet. Using Semantic Forms (Version 2.4.2) MediaWiki 1.19.1 Firefox 14.0.1 -> Seems to be the same for Chrome.
Hi, Sorry, I don't understand the issue - you need to click on a radiobutton twice for the div to appear? Or do you mean that the div doesn't appear when the page first loads?
Hi, it's your first statement: basically becase the divs which are not intended to be shown are not hidden with 'display:none' (only opacity:0)
Hi - okay, I figured out the issue (it was actually a small Javascript bug), and it's now fixed in Git. Thanks for letting me know about the problem.