Don't style tables in an external content

pull/5742/merge
Aleksander Machniak 7 years ago
parent fb3e20e848
commit 86a641cf1c

@ -536,12 +536,15 @@ function rcube_elastic_ui()
$('a.nav-link:first', nav).click(); $('a.nav-link:first', nav).click();
}); });
// Make tables pretier, FIXME: these classes do not work on the current Bootstrap build as they should // Make tables pretier
$('table:not(.propform):not(.listing)').each(function() { $('table:not(.propform):not(.listing)')
if (!$(this).parent().is('.propform')) { .filter(function() {
// exclude direct propform children and external content
return !$(this).parent().is('.propform') && !$(this).parents('.message-htmlpart').length;
})
.each(function() {
// TODO: Consider implementing automatic setting of table-responsive on window resize // TODO: Consider implementing automatic setting of table-responsive on window resize
$(this).addClass('table table-responsive-sm').find('thead').addClass('thead-default'); $(this).addClass('table table-responsive-sm').find('thead').addClass('thead-default');
}
}); });
$('.toolbarmenu select', context).addClass('form-control'); $('.toolbarmenu select', context).addClass('form-control');

Loading…
Cancel
Save