mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 11:52:28 +08:00
client: update the markup for the "Available MIME types" check boxes
This commit is contained in:
parent
e8f6f68987
commit
faa4a5fcd8
@ -92,10 +92,13 @@ export default class CodeMimeTypesOptions extends OptionsWidget {
|
||||
|
||||
#buildSelectionForMimeType(mimeType: MimeType) {
|
||||
const id = "code-mime-type-" + idCtr++;
|
||||
return $("<li>")
|
||||
|
||||
const checkbox = $("<label>")
|
||||
.append($('<input type="checkbox" class="form-check-input">').attr("id", id).attr("data-mime-type", mimeType.mime).prop("checked", mimeType.enabled))
|
||||
.on("change", () => this.save())
|
||||
.append(" ")
|
||||
.append($("<label>").attr("for", id).text(mimeType.title));
|
||||
.append(mimeType.title)
|
||||
|
||||
return $("<li>")
|
||||
.append(checkbox);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user