mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-05 12:29:54 -06:00
removed loader animation - it was causing issues with initial focus on the tree (probably by stealing focus)
This commit is contained in:
@@ -155,27 +155,6 @@ $(document).tooltip({
|
||||
}
|
||||
});
|
||||
|
||||
let appShown = false;
|
||||
|
||||
function showAppIfHidden() {
|
||||
if (!appShown) {
|
||||
appShown = true;
|
||||
|
||||
$("#container").show();
|
||||
|
||||
// Get a reference to the loader's div
|
||||
const loaderDiv = document.getElementById("loader-wrapper");
|
||||
// When the transition ends remove loader's div from display
|
||||
// so that we can access the map with gestures or clicks
|
||||
loaderDiv.addEventListener("transitionend", function(){
|
||||
loaderDiv.style.display = "none";
|
||||
}, true);
|
||||
|
||||
// Kick off the CSS transition
|
||||
loaderDiv.style.opacity = 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
window.onerror = function (msg, url, lineNo, columnNo, error) {
|
||||
const string = msg.toLowerCase();
|
||||
|
||||
|
||||
@@ -130,8 +130,6 @@ const noteEditor = (function() {
|
||||
|
||||
// after loading new note make sure editor is scrolled to the top
|
||||
noteDetailWrapperEl.scrollTop(0);
|
||||
|
||||
showAppIfHidden();
|
||||
}
|
||||
|
||||
async function loadNote(noteId) {
|
||||
|
||||
@@ -573,9 +573,6 @@ const noteTree = (function() {
|
||||
// so waiting a second helps
|
||||
setTimeout(scrollToCurrentNote, 1000);
|
||||
}
|
||||
else {
|
||||
showAppIfHidden();
|
||||
}
|
||||
},
|
||||
hotkeys: {
|
||||
keydown: keybindings
|
||||
|
||||
@@ -22,9 +22,6 @@ const protected_session = (function() {
|
||||
const dfd = $.Deferred();
|
||||
|
||||
if (requireProtectedSession && !isProtectedSessionAvailable()) {
|
||||
// if this is entry point then we need to show the app even before the note is loaded
|
||||
showAppIfHidden();
|
||||
|
||||
protectedSessionDeferred = dfd;
|
||||
|
||||
dialogEl.dialog({
|
||||
|
||||
Reference in New Issue
Block a user