forked from mrlan/EnglishPal
Fix Bug 539
parent
807d74741b
commit
9a156ebf7e
|
@ -9,6 +9,7 @@ js:
|
||||||
- ../static/js/jquery.js
|
- ../static/js/jquery.js
|
||||||
- ../static/js/read.js
|
- ../static/js/read.js
|
||||||
- ../static/js/word_operation.js
|
- ../static/js/word_operation.js
|
||||||
|
- ../static/js/checkboxes.js
|
||||||
bottom: # 在页面加载完之后加载
|
bottom: # 在页面加载完之后加载
|
||||||
- ../static/js/fillword.js
|
- ../static/js/fillword.js
|
||||||
- ../static/js/highlight.js
|
- ../static/js/highlight.js
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
function toggleCheckboxSelection(checkStatus) {
|
||||||
|
// used in userpage_post.html
|
||||||
|
const checkBoxes = document.getElementsByName('marked');
|
||||||
|
checkBoxes.forEach((checkbox) => { checkbox.checked = checkStatus;} );
|
||||||
|
}
|
|
@ -20,7 +20,10 @@
|
||||||
<title>EnglishPal Study Room for {{username}}</title>
|
<title>EnglishPal Study Room for {{username}}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>取消勾选认识的单词</p>
|
<p>
|
||||||
|
<input type="button" id="btn-cancel-selection" value="取消勾选" onclick="toggleCheckboxSelection(false)" />
|
||||||
|
<input type="button" id="btn-selection" value="全部勾选" onclick="toggleCheckboxSelection(true)" />
|
||||||
|
</p>
|
||||||
<form method="post" action="/{{username}}/mark">
|
<form method="post" action="/{{username}}/mark">
|
||||||
<input type="submit" name="add-btn" value="加入我的生词簿"/>
|
<input type="submit" name="add-btn" value="加入我的生词簿"/>
|
||||||
{% for x in lst %}
|
{% for x in lst %}
|
||||||
|
|
Loading…
Reference in New Issue