Elastic: Add style for .part-notice elements (like e.g. .boxwarning)

pull/6629/head
Aleksander Machniak 5 years ago
parent 167c9aee6f
commit 2373aea95c

@ -283,8 +283,8 @@ function rcmail_message_buttons()
$attrib['id'] = 'message-buttons';
$attrib['class'] = 'information notice';
$msg = html::span(null, rcube::Q($RCMAIL->gettext('isdraft'))) . ' ';
$msg .= html::a(array(
$msg = html::span(null, rcube::Q($RCMAIL->gettext('isdraft'))) . ' '
. html::a(array(
'href' => "#edit",
'onclick' => rcmail_output::JS_OBJECT_NAME.".command('edit')"
),
@ -796,5 +796,5 @@ function rcmail_part_too_big_message($MESSAGE, $part_id)
'token' => $token,
));
return html::div('part-notice', $RCMAIL->gettext('messagetoobig'). ' ' . html::a($url, $RCMAIL->gettext('download')));
return html::span('part-notice', $RCMAIL->gettext('messagetoobig') . ' ' . html::a($url, $RCMAIL->gettext('download')));
}

@ -993,9 +993,9 @@ function rcube_elastic_ui()
}).trigger('change');
// Make message-objects alerts pretty (the same as UI alerts)
$('#message-objects', context).children(':not(.ui.alert)').each(function() {
$('#message-objects', context).children(':not(.ui.alert)').add('.part-notice').each(function() {
// message objects with notice class are really warnings
var cl = $(this).removeClass('notice').attr('class').split(/\s/)[0] || 'warning';
var cl = $(this).removeClass('notice part-notice').attr('class').split(/\s/)[0] || 'warning';
alert_style(this, cl);
$(this).addClass('box' + cl);
$('a', this).addClass('btn btn-primary btn-sm');

Loading…
Cancel
Save