10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

Add strike when unsafe and is not checked

This commit is contained in:
Mickaël Véril 2020-01-04 12:53:01 +01:00
parent 2434659c95
commit 2bff0d3190

View File

@ -24,7 +24,7 @@ draft: false
window.onload = async () => { window.onload = async () => {
const LatexInline = ['\\(', '\\)'] const LatexInline = ['\\(', '\\)']
var al = $("#AllowList") var al = $("#AllowList")
var ef = $("#exitationFilter") var ef = $("#excitationFilter")
for (const [name, value] of excitationTypes.All) { for (const [name, value] of excitationTypes.All) {
var description = null var description = null
switch (Number(value)) { switch (Number(value)) {
@ -339,8 +339,13 @@ draft: false
if (unsafe) { if (unsafe) {
td.append($("<div/>",{title:"unsafe value",style:"float: left"}).text('⚠')) td.append($("<div/>",{title:"unsafe value",style:"float: left"}).text('⚠'))
} }
if (unsafe && !$("#cb_unsafe").is(':checked')){
td.append($("<s/>").append(val))
}
else{
td.append(val) td.append(val)
} }
}
tr.append(td) tr.append(td)
} }
tbody.append(tr) tbody.append(tr)
@ -407,9 +412,9 @@ draft: false
<select multiple id="DOI_select" name="DOI"></select> <select multiple id="DOI_select" name="DOI"></select>
</div> </div>
</fieldset> </fieldset>
<fieldset id="excitationFilter">
</fieldset>
<input type="submit" disabled=true value="Load"></input> <input type="submit" disabled=true value="Load"></input>
<div id="exitationFilter">
</div>
</form> </form>
<form id="form_ref"> <form id="form_ref">
<label for="sel_ref">Reference</label> <label for="sel_ref">Reference</label>