diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 11b5b12ef..b3712ac64 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -1768,8 +1768,6 @@ function rcube_elastic_ui() alert_style(p.object, p.type, true); $(p.object).attr('role', 'alert'); - - // $('a', p.object).addClass('alert-link'); }; /** @@ -1787,18 +1785,17 @@ function rcube_elastic_ui() error: 'alert-danger', loading: 'alert-info loading', uploading: 'alert-info loading', - vcardattachment: 'alert-info' /* vcard_attachments plugin */ + vcardattachment: 'alert-info' // vcard_attachments plugin }; - // Type can be e.g. 'notice chat' - type = type.split(' ')[0]; - + // we need the content to be non-text node for best alignment if (wrap && addicon && !$(object).is('.aligned-buttons')) { - // we need the content to be non-text node for best alignment - tmp = $(object).html(); - $(object).html($('').html(tmp)); + $(object).wrap(''); } + // Type can be e.g. 'notice chat' + type = type.split(' ')[0]; + if (tmp = map[type]) { classes += ' ' + tmp; if (addicon) {