Index: trunk/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.js |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | 'survey-browser': browser, 'survey-os': os, 'survey-res-x': screen.width, 'survey-res-y': screen.height |
44 | 44 | }; |
45 | 45 | } |
46 | | - // Auto-hide/show "other" explaination fields for selects |
| 46 | + // Auto-hide/show "other" explanation fields for selects |
47 | 47 | $j( '.prefswitch-survey-other-select' ).parent().hide(); |
48 | 48 | $j( 'select.prefswitch-survey-need-other' ).change( function() { |
49 | 49 | if ( $j(this).val() == 'other' ) { |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | $j( '.prefswitch-survey-other-radios, .prefswitch-survey-other-checks' ).click( function() { |
57 | 57 | $j(this).prev().prev().attr( 'checked', true ); |
58 | 58 | }); |
59 | | - // Auto-hide/show explaination fields for boolean |
| 59 | + // Auto-hide/show explanation fields for boolean |
60 | 60 | $j( '.prefswitch-survey-iftrue, .prefswitch-survey-iffalse' ).hide(); |
61 | 61 | $j( '.prefswitch-survey-true, .prefswitch-survey-false' ).change( function() { |
62 | 62 | $ifTrueRow = $j( '#' + $j(this).attr( 'name' ) + '-iftrue-row' ); |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | $ifFalseRow.slideDown( 'fast' ); |
70 | 70 | } |
71 | 71 | } ); |
72 | | - $j( '.prefswitch-survey-yes, .prefswitch-survey-no' ).change(); |
| 72 | + $j( '.prefswitch-survey-true, .prefswitch-survey-false' ).change(); |
73 | 73 | // Auto-detect browser, os and screen size |
74 | 74 | var detected = detect(); |
75 | 75 | $j( '#prefswitch-survey-browser' ).val( detected['survey-browser'] ); |