From: Andrew Garrett Date: Wed, 29 Apr 2009 00:01:47 +0000 (+0000) Subject: Fix alignment of prefs buttons in standard and cologneblue X-Git-Tag: 1.31.0-rc.0~41941 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=5e358ff84ab0c82c9c22befa39038309122b884c;p=lhc%2Fweb%2Fwiklou.git Fix alignment of prefs buttons in standard and cologneblue --- diff --git a/includes/Preferences.php b/includes/Preferences.php index f18918fc9b..2040bb5f2c 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -822,7 +822,16 @@ class Preferences { 'label-message' => 'contextchars', 'section' => 'searchoptions', 'min' => 0, - ); + ); + global $wgEnableMWSuggest; + if ($wgEnableMWSuggest) { + $defaultPreferences['disablesuggest'] = + array( + 'type' => 'toggle', + 'label-message' => 'mwsuggest-disable', + 'section' => 'searchoptions', + ); + } // Searchable namespaces back-compat with old format $searchableNamespaces = SearchEngine::searchableNamespaces(); @@ -845,16 +854,6 @@ class Preferences { 'section' => 'searchoptions', 'prefix' => 'searchNs', ); - - global $wgEnableMWSuggest; - if ($wgEnableMWSuggest) { - $defaultPreferences['disablesuggest'] = - array( - 'type' => 'toggle', - 'label-message' => 'mwsuggest-disable', - 'section' => 'searchoptions', - ); - } } static function miscPreferences( $user, &$defaultPreferences ) { @@ -1222,6 +1221,8 @@ class PreferencesForm extends HTMLForm { $html .= "\n" . $sk->link( $t, wfMsg( 'restoreprefs' ) ); + $html = Xml::tags( 'div', array( 'class' => 'mw-prefs-buttons' ), $html ); + return $html; } diff --git a/skins/common/oldshared.css b/skins/common/oldshared.css index 9c9060f2a3..227a615f7d 100644 --- a/skins/common/oldshared.css +++ b/skins/common/oldshared.css @@ -159,7 +159,7 @@ img { border: none; } display: block; color: #005189; } -#prefcontrol { +.mw-prefs-buttons { clear: left; float: left; margin-top: 1em;