Improve function name.
parent
3f6dc2b1f4
commit
e9675ec8ee
|
@ -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({
|
||||
|
|
|
@ -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 }}">
|
||||
|
|
Loading…
Reference in New Issue