mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
added "auto book" displayed on the empty text pages as a replacement for children overview
This commit is contained in:
@@ -201,6 +201,10 @@ function closeActiveDialog() {
|
||||
}
|
||||
}
|
||||
|
||||
function isHtmlEmpty(html) {
|
||||
return $(html).text().trim().length === 0 && !html.toLowerCase().includes('<img');
|
||||
}
|
||||
|
||||
export default {
|
||||
reloadApp,
|
||||
parseDate,
|
||||
@@ -231,5 +235,6 @@ export default {
|
||||
getCookie,
|
||||
getNoteTypeClass,
|
||||
getMimeTypeClass,
|
||||
closeActiveDialog
|
||||
closeActiveDialog,
|
||||
isHtmlEmpty
|
||||
};
|
Reference in New Issue
Block a user