mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	hide global menu tooltip upon click
This commit is contained in:
		
							parent
							
								
									9e77a424a4
								
							
						
					
					
						commit
						b68bdc5005
					
				| @ -30,7 +30,8 @@ export default class ButtonWidget extends NoteContextAwareWidget { | |||||||
| 
 | 
 | ||||||
|         this.$widget.tooltip({ |         this.$widget.tooltip({ | ||||||
|             html: true, |             html: true, | ||||||
|             title: () => this.settings.title |             title: () => this.settings.title, | ||||||
|  |             trigger: "hover" | ||||||
|         }); |         }); | ||||||
| 
 | 
 | ||||||
|         super.doRender(); |         super.doRender(); | ||||||
|  | |||||||
| @ -96,7 +96,13 @@ export default class GlobalMenuWidget extends BasicWidget { | |||||||
|     doRender() { |     doRender() { | ||||||
|         this.$widget = $(TPL); |         this.$widget = $(TPL); | ||||||
| 
 | 
 | ||||||
|         this.$widget.find(".global-menu-button").tooltip(); |         const $button = this.$widget.find(".global-menu-button"); | ||||||
|  | 
 | ||||||
|  |         $button.tooltip({ | ||||||
|  |             trigger: "hover" | ||||||
|  |         }); | ||||||
|  | 
 | ||||||
|  |         $button.on("click", () => $button.tooltip("hide")); | ||||||
| 
 | 
 | ||||||
|         this.$widget.find(".show-about-dialog-button").on('click', |         this.$widget.find(".show-about-dialog-button").on('click', | ||||||
|             () => import("../../dialogs/about.js").then(d => d.showDialog())); |             () => import("../../dialogs/about.js").then(d => d.showDialog())); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam