Index: branches/salvatoreingala/Gadgets/ui/resources/jquery.formBuilder.js |
— | — | @@ -314,7 +314,7 @@ |
315 | 315 | if ( typeof description.intro == 'string' ) { |
316 | 316 | $( '<p/>' ) |
317 | 317 | .text( preproc( description.intro ) ) |
318 | | - .addClass( 'mw-gadgets-prefsDialog-intro' ) |
| 318 | + .addClass( 'formBuilder-intro' ) |
319 | 319 | .appendTo( $form ); |
320 | 320 | } |
321 | 321 | |
Index: branches/salvatoreingala/Gadgets/ui/resources/ext.gadgets.preferences.css |
— | — | @@ -2,9 +2,28 @@ |
3 | 3 | * Styles for gadget's preference setting dialogs. |
4 | 4 | */ |
5 | 5 | |
| 6 | +.formBuilder-intro { |
| 7 | + margin-left: 1em; |
| 8 | +} |
| 9 | + |
6 | 10 | #mw-gadgets-prefsDialog label { |
| 11 | + display: inline-block; |
| 12 | + text-align: right; |
| 13 | + margin-right: 2%; |
| 14 | + width: 45%; |
| 15 | +} |
| 16 | + |
| 17 | +#mw-gadgets-prefsDialog label.error { |
7 | 18 | display: block; |
8 | | - float: left; |
9 | | - width: 250px; |
| 19 | + margin-left: 50%; |
| 20 | + font-size: 90%; |
10 | 21 | } |
11 | 22 | |
| 23 | +#mw-gadgets-prefsDialog input[type="text"] { |
| 24 | + width: 50%; |
| 25 | +} |
| 26 | + |
| 27 | +#mw-gadgets-prefsDialog select { |
| 28 | + width: 40%; |
| 29 | +} |
| 30 | + |
Index: branches/salvatoreingala/Gadgets/ui/resources/ext.gadgets.preferences.js |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | |
78 | 78 | $( dialogBody ).dialog( { |
79 | 79 | modal: true, |
80 | | - width: 'auto', |
| 80 | + width: 550, |
81 | 81 | resizable: false, |
82 | 82 | title: mw.msg( 'gadgets-configuration-of', gadget ), |
83 | 83 | close: function() { |
— | — | @@ -117,7 +117,8 @@ |
118 | 118 | |
119 | 119 | //Toggle visibility on click to the input |
120 | 120 | $( input ).click( function() { |
121 | | - $span.fadeToggle( 'fast' ); |
| 121 | + var visibility = $span.css( 'visibility' ); |
| 122 | + $span.css( 'visibility', visibility == 'visible' ? 'hidden' : 'visible' ); |
122 | 123 | } ); |
123 | 124 | } |
124 | 125 | } ); |