changed: do not put on top upon opening. Allow explore back in history.
This commit is contained in:
parent
3c8f6a079b
commit
6c2ed80992
9
main.js
9
main.js
|
@ -1536,7 +1536,11 @@ function loadlast()
|
|||
|
||||
function loadprevious()
|
||||
{
|
||||
loadnote(list()[1]);
|
||||
var index = localdata.indexOf(currentnote);
|
||||
if (index > -1)
|
||||
{
|
||||
loadnote(localdata[index + 1].title);
|
||||
}
|
||||
}
|
||||
|
||||
function grep(needle)
|
||||
|
@ -1834,6 +1838,7 @@ function save()
|
|||
.then(() =>
|
||||
{
|
||||
console.log("...data saved on server");
|
||||
putontop();
|
||||
saved = true;
|
||||
})
|
||||
.catch(remotecallfailed)
|
||||
|
@ -1854,6 +1859,7 @@ function save()
|
|||
}
|
||||
else
|
||||
{
|
||||
putontop();
|
||||
saved = true;
|
||||
}
|
||||
}
|
||||
|
@ -2395,7 +2401,6 @@ function loadnote(name)
|
|||
}
|
||||
|
||||
bindfile(note);
|
||||
putontop();
|
||||
|
||||
stat.cur.q = 0;
|
||||
stat.cur.d = 0;
|
||||
|
|
Loading…
Reference in New Issue