diff --git a/app/static/js/word_operation.js b/app/static/js/word_operation.js index 39e8e72..b7d8a00 100644 --- a/app/static/js/word_operation.js +++ b/app/static/js/word_operation.js @@ -5,7 +5,7 @@ function familiar(index) { $.ajax({ type:"get", url:"/" + username + "/" + word + "/familiar", - success:function(resp){ + success:function(response){ let new_freq = freq - 1; if(new_freq <1) { $("#p_" + index).remove(); @@ -23,7 +23,7 @@ function unfamiliar(index) { $.ajax({ type:"get", url:"/" + username + "/" + word + "/unfamiliar", - success:function(resp){ + success:function(response){ let new_freq = parseInt(freq) + 1; $("#freq_" + index).text(new_freq); } @@ -36,7 +36,7 @@ function del_word(index) { $.ajax({ type:"get", url:"/" + username + "/" + word + "/del", - success:function(resp){ + success:function(response){ $("#p_" + index).remove(); } });