Index: trunk/extensions/Narayam/js/ext.narayam.core.js |
— | — | @@ -439,7 +439,10 @@ |
440 | 440 | $( '#narayam-' + savedScheme ).attr( 'checked', 'checked' ); |
441 | 441 | } else { |
442 | 442 | //if no saved input scheme, select the first. |
443 | | - $( 'input.narayam-scheme:first' ).attr( 'checked', 'checked' ); |
| 443 | + var $firstScheme = $( 'input.narayam-scheme:first' ); |
| 444 | + that.setScheme( $firstScheme.val() ); |
| 445 | + $firstScheme.attr( 'checked', 'checked' ); |
| 446 | + |
444 | 447 | } |
445 | 448 | var enabledCookie = $.cookie( 'narayam-enabled' ); |
446 | 449 | if ( enabledCookie == '1' || ( mw.config.get( 'wgNarayamEnabledByDefault' ) && enabledCookie !== '0' ) ) { |