Make the Preferences item as selected when visiting Settings without _action

pull/6040/head
Aleksander Machniak 7 years ago
parent 830a50f1ce
commit 75f623c62f

@ -1403,6 +1403,7 @@ function rcmail_settings_tabs($attrib)
'attrib' => $attrib,
));
$selected = $RCMAIL->action ?: 'preferences';
$attrib = $plugin['attrib'];
$tagname = $attrib['tagname'];
$tabs = array();
@ -1434,7 +1435,7 @@ function rcmail_settings_tabs($attrib)
else if (!empty($cmd)) {
$classnames[] = $cmd;
}
if ($RCMAIL->action == $cmd) {
if ($cmd == $selected) {
$classnames[] = $attrib['selclass'];
}

Loading…
Cancel
Save