removed: unsaved mark
fixed: allow some commands even if current note not saved
This commit is contained in:
parent
2edf906402
commit
c27f5cf61e
|
@ -30,11 +30,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="notepage">
|
<div id="notepage">
|
||||||
|
|
||||||
<div id="topbar" onclick="ontopbarclick()">
|
<div id="topbar" onclick="ontopbarclick()">
|
||||||
<span id="titlecontainer">
|
|
||||||
<input id="title" onchange="ontitlechange()" hidden/>
|
<input id="title" onchange="ontitlechange()" hidden/>
|
||||||
</span>
|
|
||||||
<span id="mark"> </span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="notecontent">
|
<div id="notecontent">
|
||||||
|
|
27
main.js
27
main.js
|
@ -126,7 +126,8 @@ var commands = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hint: "Share note",
|
hint: "Share note",
|
||||||
action: share
|
action: share,
|
||||||
|
allowunsaved: true
|
||||||
}/*,
|
}/*,
|
||||||
{
|
{
|
||||||
hint: "Share note (html)",
|
hint: "Share note (html)",
|
||||||
|
@ -162,12 +163,14 @@ var commands = [
|
||||||
{
|
{
|
||||||
shortcut: "ctrl+i",
|
shortcut: "ctrl+i",
|
||||||
hint: "Toggle title",
|
hint: "Toggle title",
|
||||||
action: toggletitle
|
action: toggletitle,
|
||||||
|
allowunsaved: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
shortcut: "ctrl+m",
|
shortcut: "ctrl+m",
|
||||||
hint: "Toggle preview",
|
hint: "Toggle preview",
|
||||||
action: togglepreview
|
action: togglepreview,
|
||||||
|
allowunsaved: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
shortcut: "ctrl+d",
|
shortcut: "ctrl+d",
|
||||||
|
@ -192,16 +195,19 @@ var commands = [
|
||||||
{
|
{
|
||||||
shortcut: "ctrl+shift+C",
|
shortcut: "ctrl+shift+C",
|
||||||
hint: "Fold",
|
hint: "Fold",
|
||||||
action: fold
|
action: fold,
|
||||||
|
allowunsaved: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
shortcut: "ctrl+shift+O",
|
shortcut: "ctrl+shift+O",
|
||||||
hint: "Unfold",
|
hint: "Unfold",
|
||||||
action: unfold
|
action: unfold,
|
||||||
|
allowunsaved: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hint: "Unfold all",
|
hint: "Unfold all",
|
||||||
action: unfoldall
|
action: unfoldall,
|
||||||
|
allowunsaved: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hint: "Download note",
|
hint: "Download note",
|
||||||
|
@ -232,7 +238,8 @@ var commands = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hint: "Sort text",
|
hint: "Sort text",
|
||||||
action: sortselection
|
action: sortselection,
|
||||||
|
allowunsaved: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hint: "Settings",
|
hint: "Settings",
|
||||||
|
@ -245,7 +252,8 @@ var commands = [
|
||||||
{
|
{
|
||||||
hint: "Note outline",
|
hint: "Note outline",
|
||||||
action: showoutline,
|
action: showoutline,
|
||||||
shortcut: "ctrl+o"
|
shortcut: "ctrl+o",
|
||||||
|
allowunsaved: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hint: "Internal links",
|
hint: "Internal links",
|
||||||
|
@ -263,7 +271,8 @@ var commands = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hint: "Select theme",
|
hint: "Select theme",
|
||||||
action: selecttheme
|
action: selecttheme,
|
||||||
|
allowunsaved: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hint: "Show info",
|
hint: "Show info",
|
||||||
|
|
Loading…
Reference in New Issue