You've already forked Sonarr
							
							
				mirror of
				https://github.com/Sonarr/Sonarr.git
				synced 2025-10-31 00:07:55 +02:00 
			
		
		
		
	This should fix the sticky tooltip issues
Lost some control over positioning based on parents, but we can add data attributes if required
This commit is contained in:
		| @@ -30,7 +30,8 @@ define( | ||||
|                 } | ||||
|  | ||||
|                 if (this.model.get('tooltip')) { | ||||
|                     this.$el.attr('title', this.model.get('tooltip')) | ||||
|                     this.$el.attr('title', this.model.get('tooltip')); | ||||
|                     this.$el.attr('data-container', 'body'); | ||||
|                 } | ||||
|             }, | ||||
|  | ||||
|   | ||||
| @@ -3,23 +3,8 @@ define( | ||||
|     [ | ||||
|         'bootstrap' | ||||
|     ], function () { | ||||
|         $(document).on('mouseenter', '[title]', function () { | ||||
|  | ||||
|             var element = $(this); | ||||
|  | ||||
|             if (!element.attr('data-placement') && element.parents('.control-group').length > 0) { | ||||
|                 element.attr('data-placement', 'right'); | ||||
|             } | ||||
|  | ||||
|             var container = element.parents('.modal-body'); | ||||
|             if (container.length === 0) { | ||||
|                 container = 'body'; | ||||
|             } | ||||
|  | ||||
|             element.tooltip({ | ||||
|                 container: container | ||||
|             }); | ||||
|  | ||||
|             element.tooltip('show'); | ||||
|         $('body').tooltip({ | ||||
|             selector: '[title]' | ||||
|         }); | ||||
|     }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user