Browse Source

:bug: 解决冲突

Bhikkhu-Kosalla 5 years ago
parent
commit
d61ebffce0
1 changed files with 12 additions and 7 deletions
  1. 12 7
      app/term/term_edit_dlg.js

+ 12 - 7
app/term/term_edit_dlg.js

@@ -51,7 +51,7 @@ function term_edit_dlg_render(word = "") {
 	output += "<fieldset>";
 	output += "<fieldset>";
 	output += "<legend>" + gLocal.gui.spell + "</legend>";
 	output += "<legend>" + gLocal.gui.spell + "</legend>";
 	output +=
 	output +=
-		"<input type='input' id='term_edit_form_word' value='" +
+		"<input type='input' id='term_edit_form_word' name='word' value='" +
 		word.word +
 		word.word +
 		"'placeholder=" +
 		"'placeholder=" +
 		gLocal.gui.required +
 		gLocal.gui.required +
@@ -61,7 +61,7 @@ function term_edit_dlg_render(word = "") {
 	output += "<fieldset>";
 	output += "<fieldset>";
 	output += "<legend>" + gLocal.gui.first_choice_word + "</legend>";
 	output += "<legend>" + gLocal.gui.first_choice_word + "</legend>";
 	output +=
 	output +=
-		"<input type='input' id='term_edit_form_meaning' value='" +
+		"<input type='input' id='term_edit_form_meaning' name='mean' value='" +
 		word.meaning +
 		word.meaning +
 		"' placeholder=" +
 		"' placeholder=" +
 		gLocal.gui.required +
 		gLocal.gui.required +
@@ -71,7 +71,7 @@ function term_edit_dlg_render(word = "") {
 	output += "<fieldset>";
 	output += "<fieldset>";
 	output += "<legend>" + gLocal.gui.other_meaning + "</legend>";
 	output += "<legend>" + gLocal.gui.other_meaning + "</legend>";
 	output +=
 	output +=
-		"<input type='input' id='term_edit_form_othermeaning value='" +
+		"<input type='input' id='term_edit_form_othermeaning name='mean2' value='" +
 		word.other_meaning +
 		word.other_meaning +
 		"' placeholder=" +
 		"' placeholder=" +
 		gLocal.gui.optional +
 		gLocal.gui.optional +
@@ -81,7 +81,7 @@ function term_edit_dlg_render(word = "") {
 	output += "<fieldset>";
 	output += "<fieldset>";
 	output += "<legend>" + gLocal.gui.tag + "</legend>";
 	output += "<legend>" + gLocal.gui.tag + "</legend>";
 	output +=
 	output +=
-		"<input type='input' id='term_edit_form_tag name='tag' value='" +
+		"<input type='input' id='term_edit_form_tag name='tag' name='tag' value='" +
 		word.tag +
 		word.tag +
 		"' placeholder=" +
 		"' placeholder=" +
 		gLocal.gui.optional +
 		gLocal.gui.optional +
@@ -91,7 +91,7 @@ function term_edit_dlg_render(word = "") {
 	output += "<fieldset>";
 	output += "<fieldset>";
 	output += "<legend>" + gLocal.gui.language + "</legend>";
 	output += "<legend>" + gLocal.gui.language + "</legend>";
 	output +=
 	output +=
-		"<input type='input' id='term_edit_form_language' value='" +
+		"<input type='input' id='term_edit_form_language' name='language' value='" +
 		word.language +
 		word.language +
 		"' placeholder=" +
 		"' placeholder=" +
 		gLocal.gui.required +
 		gLocal.gui.required +
@@ -101,7 +101,7 @@ function term_edit_dlg_render(word = "") {
 	output += "<fieldset>";
 	output += "<fieldset>";
 	output += "<legend>" + gLocal.gui.channel + "</legend>";
 	output += "<legend>" + gLocal.gui.channel + "</legend>";
 	output +=
 	output +=
-		"<input type='input' id='term_edit_form_channal' value='" +
+		"<input type='input' id='term_edit_form_channal' name='channal' value='" +
 		word.channal +
 		word.channal +
 		"' placeholder=" +
 		"' placeholder=" +
 		gLocal.gui.optional +
 		gLocal.gui.optional +
@@ -110,7 +110,12 @@ function term_edit_dlg_render(word = "") {
 
 
 	output += "<fieldset>";
 	output += "<fieldset>";
 	output += "<legend>" + gLocal.gui.encyclopedia + "</legend>";
 	output += "<legend>" + gLocal.gui.encyclopedia + "</legend>";
-	output += "<textarea id='term_edit_form_note' placeholder=" + gLocal.gui.optional + ">" + word.note + "</textarea>";
+	output +=
+		"<textarea id='term_edit_form_note' name='note' placeholder=" +
+		gLocal.gui.optional +
+		">" +
+		word.note +
+		"</textarea>";
 	output += "</fieldset>";
 	output += "</fieldset>";
 
 
 	output += "</form>";
 	output += "</form>";