mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	close note type dropdown after click
This commit is contained in:
		
							parent
							
								
									f723433970
								
							
						
					
					
						commit
						71bbf2eb16
					
				| @ -91,7 +91,9 @@ export default class NoteTypeWidget extends TabAwareWidget { | |||||||
|                 .on('click', e => { |                 .on('click', e => { | ||||||
|                     const $link = $(e.target).closest('.dropdown-item'); |                     const $link = $(e.target).closest('.dropdown-item'); | ||||||
| 
 | 
 | ||||||
|                     this.save('code', $link.attr('data-mime-type')) |                     this.save('code', $link.attr('data-mime-type')); | ||||||
|  | 
 | ||||||
|  |                     this.$noteTypeButton.dropdown('hide'); | ||||||
|                 }); |                 }); | ||||||
| 
 | 
 | ||||||
|             if (this.note.type === 'code' && this.note.mime === mimeType.mime) { |             if (this.note.type === 'code' && this.note.mime === mimeType.mime) { | ||||||
|  | |||||||
| @ -18,6 +18,8 @@ const TPL = ` | |||||||
|     } |     } | ||||||
|      |      | ||||||
|     .search-setting-table { |     .search-setting-table { | ||||||
|  |         margin-top: 7px; | ||||||
|  |         margin-bottom: 7px; | ||||||
|         width: 100%; |         width: 100%; | ||||||
|         border-collapse: separate; |         border-collapse: separate; | ||||||
|         border-spacing: 10px; |         border-spacing: 10px; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam