Improved way to tick all namespaces when Select all is ticked
authortonythomas01 <01tonythomas@gmail.com>
Tue, 25 Feb 2014 12:57:24 +0000 (18:27 +0530)
committertonythomas01 <01tonythomas@gmail.com>
Tue, 25 Feb 2014 12:58:18 +0000 (18:28 +0530)
Follow up from Ie62b9186e98dd770de4282ea57d7248158a6e782
Co Author : Helder.Wiki

Change-Id: Iea336d40ac7d1271d4934797f74dabadea0cdafe

resources/mediawiki.special/mediawiki.special.preferences.js

index 7f1fd43..23d7837 100644 (file)
@@ -262,10 +262,6 @@ jQuery( function ( $ ) {
                $checkBoxes.prop( 'disabled', true );
        }
        $( '#mw-input-wpsearcheverything' ).change( function () {
-               if ( $( this ).prop( 'checked' ) ) {
-                       $checkBoxes.prop( 'disabled', true );
-               } else {
-                       $checkBoxes.prop( 'disabled', false );
-               }
+               $checkBoxes.prop( 'disabled', $( this ).prop( 'checked' ) );
        } );
 } );