forked from mrlan/EnglishPal
Fix bug 565
parent
09ce839561
commit
697fee56d4
|
@ -57,6 +57,7 @@ function delete_word(theWord) {
|
||||||
} else {
|
} else {
|
||||||
$("#p_" + theWord).remove();
|
$("#p_" + theWord).remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -116,6 +117,7 @@ function removeWord(word) {
|
||||||
if (element_to_remove !== null) {
|
if (element_to_remove !== null) {
|
||||||
element_to_remove.remove();
|
element_to_remove.remove();
|
||||||
}
|
}
|
||||||
|
page_reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderWord(word) {
|
function renderWord(word) {
|
||||||
|
@ -172,3 +174,7 @@ function compareWord(first, second) {
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
//通过在单词本删除单词后加入刷新页面功能,可以使文本高亮实时取消
|
||||||
|
function page_reload(){
|
||||||
|
location.reload();
|
||||||
|
}
|
|
@ -124,7 +124,7 @@
|
||||||
<form method="post" action="/{{ username }}/userpage">
|
<form method="post" action="/{{ username }}/userpage">
|
||||||
<textarea name="content" id="selected-words" rows="10" cols="120"></textarea><br/>
|
<textarea name="content" id="selected-words" rows="10" cols="120"></textarea><br/>
|
||||||
<button class="btn btn-primary btn-lg" type="submit" onclick="Reader.stopRead()">把生词加入我的生词库</button>
|
<button class="btn btn-primary btn-lg" type="submit" onclick="Reader.stopRead()">把生词加入我的生词库</button>
|
||||||
<button class="btn btn-primary btn-lg" type="reset" onclick="clearSelectedWords()">清除</button>
|
<button class="btn btn-primary btn-lg" type="reset" onclick="clearSelectedWords();page_reload()">清除</button>
|
||||||
</form>
|
</form>
|
||||||
{% if session.get['thisWord'] %}
|
{% if session.get['thisWord'] %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
id,title_length,description_length,language,attachments,resolved
|
||||||
|
Flask==2.0.3,17,11,pony==0.7.16,0,0
|
||||||
|
id,title_length,description_length,language,attachments,resolved
|
||||||
|
Flask==2.0.3,17,11,pony==0.7.16,0,0
|
|
Loading…
Reference in New Issue