mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +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({ | ||||
|             html: true, | ||||
|             title: () => this.settings.title | ||||
|             title: () => this.settings.title, | ||||
|             trigger: "hover" | ||||
|         }); | ||||
| 
 | ||||
|         super.doRender(); | ||||
|  | ||||
| @ -96,7 +96,13 @@ export default class GlobalMenuWidget extends BasicWidget { | ||||
|     doRender() { | ||||
|         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', | ||||
|             () => import("../../dialogs/about.js").then(d => d.showDialog())); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam