From e9675ec8ee27257b6586ed5656a5cc1fda124bee Mon Sep 17 00:00:00 2001
From: Lan Hui <1348141770@qq.com>
Date: Mon, 18 Jul 2022 12:14:31 +0800
Subject: [PATCH] Improve function name.

---
 app/static/js/word_operation.js | 2 +-
 app/templates/userpage_get.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/static/js/word_operation.js b/app/static/js/word_operation.js
index b7d8a00..36a023b 100644
--- a/app/static/js/word_operation.js
+++ b/app/static/js/word_operation.js
@@ -30,7 +30,7 @@ function unfamiliar(index) {
     });
 }
 
-function del_word(index) {
+function delete_word(index) {
     let username = $("#username").text();
     let word = $("#word_" + index).text();
     $.ajax({
diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html
index 9f3326f..d807b4e 100644
--- a/app/templates/userpage_get.html
+++ b/app/templates/userpage_get.html
@@ -67,7 +67,7 @@
                 ( <a id="freq_{{ loop.index0 }}" title="{{ word }}">{{ freq }}</a> )
                 <a class="btn btn-success" onclick="familiar({{ loop.index0 }})" role="button">熟悉</a>
                 <a class="btn btn-warning" onclick="unfamiliar({{ loop.index0 }})" role="button">不熟悉</a>
-                <a class="btn btn-danger" onclick="del_word({{ loop.index0 }})" role="button">删除</a>
+                <a class="btn btn-danger" onclick="delete_word({{ loop.index0 }})" role="button">删除</a>
             </p>
         {% endfor %}
         <input id="selected-words2" type="hidden" value="{{ words }}">