Skip to content

Build your personal knowledge base with Trilium Notes

bootstrap needs to be included before jQuery UI, otherwise close icon in the dialog will be missing

azivner16485576c84e
diff --git a/src/templates/app.html b/src/templates/app.html
index 8d94b4c920..06a26e6a28 100644
--- a/src/templates/app.html
+++ b/src/templates/app.html
@@ -115,6 +115,10 @@
<script src="stat/lib/jquery.min.js"></script>
+ <!-- bootstrap needs to be included before jQuery UI, otherwise close icon in the dialog will be missing -->
+ <link href="stat/lib/bootstrap/css/bootstrap.css" rel="stylesheet">
+ <script src="stat/lib/bootstrap/js/bootstrap.js"></script>
+
<link href="stat/lib/jqueryui/jquery-ui.min.css" rel="stylesheet">
<script src="stat/lib/jqueryui/jquery-ui.min.js"></script>
@@ -122,9 +126,6 @@
<link href="stat/lib/fancytree/skin-win8/ui.fancytree.css" rel="stylesheet">
<script src="stat/lib/fancytree/jquery.fancytree-all.js"></script>
- <link href="stat/lib/bootstrap/css/bootstrap.css" rel="stylesheet">
- <script src="stat/lib/bootstrap/js/bootstrap.js"></script>
-
<link href="stat/lib/summernote/summernote.css" rel="stylesheet">
<script src="stat/lib/summernote/summernote.js"></script>
diff --git a/static/js/init.js b/static/js/init.js
index 601f75a381..d97adcc128 100644
--- a/static/js/init.js
+++ b/static/js/init.js
@@ -4,8 +4,6 @@ $(function() {
if (fancyTree.length) {
fancyTree.height($(window).height() - fancyTree.offset().top - 10);
-
- console.log("height: ", $(window).height() - fancyTree.offset().top - 10);
}
const noteEditable = $('div.note-editable');