formatting

This commit is contained in:
Phuntsok Drak-pa 2019-08-26 16:59:28 +02:00
parent 0cdcc9f02b
commit 8104f7b00c

View File

@ -47,8 +47,8 @@ function reorganize_html() {
htitle + '"></div></div>');
$header.prependTo($header.prev());
});
$('.outline-text-' + htitle).each(function(){
if(isEmpty($(this))) {
$('.outline-text-' + htitle).each(function() {
if (isEmpty($(this))) {
$(this).remove();
}
});
@ -91,6 +91,6 @@ function create_theme_switcher() {
});
}
function isEmpty( el ){
function isEmpty(el) {
return !$.trim(el.html())
}