mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +01: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) { |     #buildSelectionForMimeType(mimeType: MimeType) { | ||||||
|         const id = "code-mime-type-" + idCtr++; |         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)) |             .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()) |             .on("change", () => this.save()) | ||||||
|             .append("   ") |             .append(mimeType.title) | ||||||
|             .append($("<label>").attr("for", id).text(mimeType.title)); | 
 | ||||||
|  |         return $("<li>") | ||||||
|  |             .append(checkbox); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Adorian Doran
						Adorian Doran