|
|
@ -501,8 +501,8 @@ function rcube_elastic_ui()
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Make message-objects alerts pretty (the same as UI alerts)
|
|
|
|
// Make message-objects alerts pretty (the same as UI alerts)
|
|
|
|
$('#message-objects').children('div').each(function() {
|
|
|
|
$('#message-objects').children().each(function() {
|
|
|
|
alert_style(this, $(this).attr('class'));
|
|
|
|
alert_style(this, $(this).attr('class').split(/\s/)[0]);
|
|
|
|
$('a', this).addClass('btn btn-primary');
|
|
|
|
$('a', this).addClass('btn btn-primary');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -1022,10 +1022,6 @@ function rcube_elastic_ui()
|
|
|
|
$(p.object).attr('role', 'alert');
|
|
|
|
$(p.object).attr('role', 'alert');
|
|
|
|
$('a', p.object).addClass('alert-link');
|
|
|
|
$('a', p.object).addClass('alert-link');
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
var siblings = $(p.object).siblings('div');
|
|
|
|
|
|
|
|
if (siblings.length)
|
|
|
|
|
|
|
|
$(p.object).insertBefore(siblings.first());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// show a popup dialog on errors
|
|
|
|
// show a popup dialog on errors
|
|
|
|
if (p.type == 'error' && rcmail.env.task != 'login') {
|
|
|
|
if (p.type == 'error' && rcmail.env.task != 'login') {
|
|
|
|
// hide original message object, we don't want both
|
|
|
|
// hide original message object, we don't want both
|
|
|
@ -1046,7 +1042,8 @@ function rcube_elastic_ui()
|
|
|
|
notice: 'alert-info',
|
|
|
|
notice: 'alert-info',
|
|
|
|
error: 'alert-danger',
|
|
|
|
error: 'alert-danger',
|
|
|
|
warning: 'alert-warning',
|
|
|
|
warning: 'alert-warning',
|
|
|
|
loading: 'alert-info loading'
|
|
|
|
loading: 'alert-info loading',
|
|
|
|
|
|
|
|
vcardattachment: 'alert-info' /* vcard_attachments plugin */
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (cl = map[type]) {
|
|
|
|
if (cl = map[type]) {
|
|
|
|