0
0
Fork 0

Fix Bug 539

Bug-561
Lan Hui 2023-07-08 18:23:45 +08:00
parent 807d74741b
commit 9a156ebf7e
3 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
function toggleCheckboxSelection(checkStatus) {
// used in userpage_post.html
const checkBoxes = document.getElementsByName('marked');
checkBoxes.forEach((checkbox) => { checkbox.checked = checkStatus;} );
}

View File

@ -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 %}