Index: trunk/extensions/Narayam/js/ext.narayam.core.js |
— | — | @@ -348,9 +348,10 @@ |
349 | 349 | this.enable = function() { |
350 | 350 | if ( !enabled ) { |
351 | 351 | $.cookie( 'narayam-enabled', '1', { 'path': '/', 'expires': 30 } ); |
352 | | - $( '#narayam-toggle' ).attr( 'checked', true ); |
353 | | - $( 'li#pt-narayam').removeClass( 'narayam-inactive' ); |
354 | | - $( 'li#pt-narayam').addClass( 'narayam-active' ); |
| 352 | + $( '#narayam-toggle' ).prop( 'checked', true ); |
| 353 | + $( 'li#pt-narayam') |
| 354 | + .removeClass( 'narayam-inactive' ) |
| 355 | + .addClass( 'narayam-active' ); |
355 | 356 | enabled = true; |
356 | 357 | } |
357 | 358 | }; |
— | — | @@ -361,9 +362,10 @@ |
362 | 363 | this.disable = function() { |
363 | 364 | if ( enabled ) { |
364 | 365 | $.cookie( 'narayam-enabled', '0', { 'path': '/', 'expires': 30 } ); |
365 | | - $( '#narayam-toggle' ).attr( 'checked', false ); |
366 | | - $( 'li#pt-narayam').removeClass( 'narayam-active' ); |
367 | | - $( 'li#pt-narayam').addClass( 'narayam-inactive' ); |
| 366 | + $( '#narayam-toggle' ).prop( 'checked', false ); |
| 367 | + $( 'li#pt-narayam') |
| 368 | + .removeClass( 'narayam-active' ) |
| 369 | + .addClass( 'narayam-inactive' ); |
368 | 370 | enabled = false; |
369 | 371 | } |
370 | 372 | }; |
— | — | @@ -474,12 +476,12 @@ |
475 | 477 | } |
476 | 478 | if ( lastScheme) { |
477 | 479 | that.setScheme( lastScheme ); |
478 | | - $( '#narayam-' + lastScheme ).attr( 'checked', 'checked' ); |
| 480 | + $( '#narayam-' + lastScheme ).prop( 'checked', true ); |
479 | 481 | } else { |
480 | 482 | //if no saved input scheme, select the first. |
481 | 483 | var $firstScheme = $( 'input.narayam-scheme:first' ); |
482 | 484 | that.setScheme( $firstScheme.val() ); |
483 | | - $firstScheme.attr( 'checked', 'checked' ); |
| 485 | + $firstScheme.prop( 'checked', true ); |
484 | 486 | |
485 | 487 | } |
486 | 488 | var enabledCookie = $.cookie( 'narayam-enabled' ); |
— | — | @@ -611,9 +613,9 @@ |
612 | 614 | that.setScheme( $(this).val() ); |
613 | 615 | // rebuild the menu items with recent items. |
614 | 616 | $( '#narayam-menu-items' ).html( $.narayam.buildMenuItems() ); |
615 | | - $( '#narayam-' + $(this).val() ).attr( 'checked', 'checked' ); |
| 617 | + $( '#narayam-' + $(this).val() ).prop( 'checked', true ); |
616 | 618 | if ( enabled ) { |
617 | | - $( '#narayam-toggle' ).attr( 'checked', true ); |
| 619 | + $( '#narayam-toggle' ).prop( 'checked', true ); |
618 | 620 | } |
619 | 621 | } ); |
620 | 622 | |