https://bugzilla.wikimedia.org/show_bug.cgi?id=39098

       Web browser: ---
             Bug #: 39098
           Summary: Radiobuttons not working properly when using show on
                    select
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: SemanticForms
        AssignedTo: yaro...@gmail.com
        ReportedBy: toni...@cau.cat
                CC: wikibugs-l@lists.wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to