Improve function name.

Bug400-QiuZhonghui
Lan Hui 2022-07-18 12:14:31 +08:00
parent 3f6dc2b1f4
commit e9675ec8ee
2 changed files with 2 additions and 2 deletions

View File

@ -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({

View File

@ -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 }}">