Index: trunk/extensions/WebFonts/js/webfonts.js |
— | — | @@ -133,11 +133,16 @@ |
134 | 134 | .attr("name","font") |
135 | 135 | .attr("id","webfont-"+config[scheme]) |
136 | 136 | .attr("value",config[scheme] ); |
137 | | - |
| 137 | + |
| 138 | + $fontlabel = $( '<label />' ) |
| 139 | + .attr("for","webfont-"+config[scheme]) |
| 140 | + .append( $fontlink ) |
| 141 | + .append( config[scheme] ) |
| 142 | + |
138 | 143 | $fontmenuitem = $( '<li />' ) |
139 | 144 | .val( config[scheme] ) |
140 | | - .append( $fontlink ) |
141 | | - .append( config[scheme] ); |
| 145 | + .append( $fontlabel ) |
| 146 | + |
142 | 147 | |
143 | 148 | haveSchemes = true; |
144 | 149 | //some closure trick :) |
— | — | @@ -153,14 +158,21 @@ |
154 | 159 | .attr("type","radio") |
155 | 160 | .attr("name","font") |
156 | 161 | .attr("value","webfont-none") |
| 162 | + .attr("id","webfont-none") |
157 | 163 | .click( function( event ) { |
158 | 164 | $.webfonts.set( 'none'); |
159 | 165 | }); |
| 166 | + |
| 167 | + $resetlabel = $( '<label />' ) |
| 168 | + .attr("for","webfont-none") |
| 169 | + .append( $resetlink ) |
| 170 | + .append( mw.msg("webfonts-reset")); |
| 171 | + |
160 | 172 | $resetlinkitem = $( '<li />' ) |
161 | 173 | .val( 'none') |
162 | | - .append( $resetlink ) |
163 | | - .append( mw.msg("webfonts-reset")); |
| 174 | + .append( $resetlabel ) |
164 | 175 | |
| 176 | + |
165 | 177 | $fontsmenu.append($resetlinkitem); |
166 | 178 | |
167 | 179 | if ( !haveSchemes ) { |