Merge "buttons: Set min-width of button groups and icon buttons"
[lhc/web/wiklou.git] / includes / Preferences.php
index cb978b1..98fc936 100644 (file)
@@ -706,6 +706,7 @@ class Preferences {
                        'options' => $tzOptions,
                        'default' => $tzSetting,
                        'size' => 20,
+                       'maxlength' => 6,
                        'section' => 'rendering/timeoffset',
                );
        }
@@ -1540,7 +1541,11 @@ class PreferencesForm extends HTMLForm {
         */
        function getButtons() {
                global $wgUseMediaWikiUIEverywhere;
-               $attrs = $wgUseMediaWikiUIEverywhere ? array( 'class' => 'mw-ui-button mw-ui-quiet' ) : array();
+
+               $attrs = array( 'id' => 'mw-prefs-restoreprefs' );
+               if ( $wgUseMediaWikiUIEverywhere ) {
+                       $attrs['class'] = 'mw-ui-button mw-ui-quiet';
+               }
 
                if ( !$this->getModifiedUser()->isAllowedAny( 'editmyprivateinfo', 'editmyoptions' ) ) {
                        return '';