added: saved mark
This commit is contained in:
parent
946776f221
commit
0aab00f9c4
|
@ -31,6 +31,8 @@
|
|||
|
||||
<div id="notepage">
|
||||
|
||||
<div id="unsavedmark" hidden>•</div>
|
||||
|
||||
<div id="topbar" onclick="ontopbarclick()">
|
||||
<input id="title" onchange="ontitlechange()" hidden/>
|
||||
</div>
|
||||
|
|
5
main.js
5
main.js
|
@ -13,7 +13,8 @@ var defaultsettings =
|
|||
password: "",
|
||||
sync: false,
|
||||
tagsinlists: true,
|
||||
uselinkpopup: true
|
||||
uselinkpopup: true,
|
||||
useunsavedmark: false
|
||||
};
|
||||
|
||||
//builtin
|
||||
|
@ -1917,6 +1918,7 @@ function postpone()
|
|||
|
||||
function setsaved()
|
||||
{
|
||||
unsavedmark.hidden = true;
|
||||
saved = true;
|
||||
lastsaved = timestamp();
|
||||
}
|
||||
|
@ -2277,6 +2279,7 @@ function datachanged()
|
|||
resize();
|
||||
|
||||
saved = false;
|
||||
unsavedmark.hidden = !settings.useunsavedmark;
|
||||
|
||||
postpone()
|
||||
.then(save);
|
||||
|
|
Loading…
Reference in New Issue