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