saper has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/250271

Change subject: Remove search preferences from Special:Preferences JavaScript
......................................................................

Remove search preferences from Special:Preferences JavaScript

Search preferences are now handled by Special:Search, not
by Special:Preferences

Bug: T54817
Change-Id: I8faabbed190a46397b35f630c031fc1b4bb6e3e1
---
M resources/src/mediawiki.special/mediawiki.special.preferences.js
1 file changed, 0 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/71/250271/1

diff --git a/resources/src/mediawiki.special/mediawiki.special.preferences.js 
b/resources/src/mediawiki.special/mediawiki.special.preferences.js
index 0fda3dc..c8fbb2b 100644
--- a/resources/src/mediawiki.special/mediawiki.special.preferences.js
+++ b/resources/src/mediawiki.special/mediawiki.special.preferences.js
@@ -281,16 +281,6 @@
                        } );
                }
 
-               // To disable all 'namespace' checkboxes in Search preferences
-               // when 'Search in all namespaces' checkbox is ticked.
-               $checkBoxes = $( '#mw-htmlform-advancedsearchoptions 
input[id^=mw-input-wpsearchnamespaces]' );
-               if ( $( '#mw-input-wpsearcheverything' ).prop( 'checked' ) ) {
-                       $checkBoxes.prop( 'disabled', true );
-               }
-               $( '#mw-input-wpsearcheverything' ).change( function () {
-                       $checkBoxes.prop( 'disabled', $( this ).prop( 'checked' 
) );
-               } );
-
                // Set up a message to notify users if they try to leave the 
page without
                // saving.
                $( '#mw-prefs-form' ).data( 'origdata', $( '#mw-prefs-form' 
).serialize() );

-- 
To view, visit https://gerrit.wikimedia.org/r/250271
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8faabbed190a46397b35f630c031fc1b4bb6e3e1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: saper <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to