🚸 添加 是否保留输入内容 功能
This commit is contained in:
1 parent
cebae03059
commit
ed4f114f18
1 file changed
+14
-2
@@ -196,8 +196,20 @@ function load_notes(main_node) {
|
||||
article_title.textContent = "";
|
||||
article_content.textContent = "";
|
||||
|
||||
input_note_title.value = "";
|
||||
input_note_content.value = "";
|
||||
if (input_note_title.value != "" || input_note_content.value != "") {
|
||||
if (confirm("是否放弃当前输入的内容?") == true) {
|
||||
input_note_title.value = "";
|
||||
input_note_content.value = "";
|
||||
} else {
|
||||
if (stack.length != 0) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
input_note_title.value = "";
|
||||
input_note_content.value = "";
|
||||
}
|
||||
|
||||
|
||||
recommend_list.replaceChildren();
|
||||
//alert(stack.length)
|
||||
|
||||
Reference in new issue
Block a user