forked from mrlan/EnglishPal
				
			Use a better variable name.
							parent
							
								
									c264400794
								
							
						
					
					
						commit
						304f720779
					
				|  | @ -5,7 +5,7 @@ function familiar(index) { | ||||||
|     $.ajax({ |     $.ajax({ | ||||||
|         type:"get", |         type:"get", | ||||||
|         url:"/" + username + "/" + word + "/familiar", |         url:"/" + username + "/" + word + "/familiar", | ||||||
|         success:function(resp){ |         success:function(response){ | ||||||
|             let new_freq = freq - 1; |             let new_freq = freq - 1; | ||||||
|             if(new_freq <1) { |             if(new_freq <1) { | ||||||
|                 $("#p_" + index).remove(); |                 $("#p_" + index).remove(); | ||||||
|  | @ -23,7 +23,7 @@ function unfamiliar(index) { | ||||||
|     $.ajax({ |     $.ajax({ | ||||||
|         type:"get", |         type:"get", | ||||||
|         url:"/" + username + "/" + word + "/unfamiliar", |         url:"/" + username + "/" + word + "/unfamiliar", | ||||||
|         success:function(resp){ |         success:function(response){ | ||||||
|             let new_freq = parseInt(freq) + 1; |             let new_freq = parseInt(freq) + 1; | ||||||
|             $("#freq_" + index).text(new_freq); |             $("#freq_" + index).text(new_freq); | ||||||
|         } |         } | ||||||
|  | @ -36,7 +36,7 @@ function del_word(index) { | ||||||
|     $.ajax({ |     $.ajax({ | ||||||
|         type:"get", |         type:"get", | ||||||
|         url:"/" + username + "/" + word + "/del", |         url:"/" + username + "/" + word + "/del", | ||||||
|         success:function(resp){ |         success:function(response){ | ||||||
|             $("#p_" + index).remove(); |             $("#p_" + index).remove(); | ||||||
|         } |         } | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue