Support .boxwarning and .boxerror widgets

pull/5742/merge
Aleksander Machniak 8 years ago
parent 4951ac639d
commit 3d3b1c2f9a

@ -32,6 +32,11 @@
}
}
/*
.boxwarning and .boxerror classes are supported by conversion
to .ui.alert in bootstrap_init()
*/
.ui.alert {
margin: 0;
margin-bottom: 0.2em;

@ -242,6 +242,13 @@ function rcube_elastic_ui()
{
$('input.button,button', context || document).addClass('btn').not('.btn-primary,.primary,.mainaction').addClass('btn-secondary');
$('input.button.mainaction,button.primary,button.mainaction', context || document).addClass('btn-primary');
$.each(['warning', 'error'], function() {
var type = this;
$('.box' + type, context).each(function() {
message_displayed({object: this, type: type});
});
});
};
/**

Loading…
Cancel
Save