local exception. - $localException = $this->user->getOption( $name . static::LOCAL_EXCEPTION_SUFFIX ); - $modifiedPrefs[$name]['disabled'] = is_null( $localException ); + // Disable this local preference unless it either + // A) already has a local exception, or + // B) a lo...
+ * Enable and disable the related preference field when selecting the local exception checkbox. + */ + $( ':input.mw-globalprefs-local-exception' ).on( 'change', function () { + var localExName, prefName, enabled, $prefInput, oouiWidget; + // Figure out what the preference name i...