For reasons beyond human fathoming, the button had the id set
to 'prefsubmit' in PHP code and then changed to 'prefcontrol'
in JS code. This functionality has been carefully preserved
across multiple rewrites of this code since 2004, when it was
added in
30d0ccd0 (rSVN3618). Let's just set the id in PHP.
Change-Id: Ib23bd0e481e73a51ff0a16731f47a2df11b2c1b8
$htmlForm->setSubmitText( $context->msg( 'saveprefs' )->text() );
# Used message keys: 'accesskey-preferences-save', 'tooltip-preferences-save'
$htmlForm->setSubmitTooltip( 'preferences-save' );
- $htmlForm->setSubmitID( 'prefsubmit' );
+ $htmlForm->setSubmitID( 'prefcontrol' );
$htmlForm->setSubmitCallback( [ 'Preferences', 'tryFormSubmit' ] );
return $htmlForm;
prefs
prefsection
prefsnologintext2
-prefsubmit
+prefcontrol
preload
preloads
preloadtitle
return this.id.replace( /^mw-prefsection/g, 'preftab' );
};
- $( '#prefsubmit' ).attr( 'id', 'prefcontrol' );
$preftoc = $( '#preftoc' );
$preferences = $( '#preferences' );