You've already forked Sonarr
							
							
				mirror of
				https://github.com/Sonarr/Sonarr.git
				synced 2025-10-31 00:07:55 +02:00 
			
		
		
		
	all tooltips are automatically converted to bootstrap.
This commit is contained in:
		| @@ -4,7 +4,7 @@ require( | ||||
|         'app', | ||||
|         'marionette', | ||||
|         'Controller', | ||||
|         'RouteBinder' | ||||
|         'jQuery/RouteBinder' | ||||
|     ], function (App, Marionette, Controller, RouterBinder) { | ||||
|  | ||||
|         NzbDrone.Router = Marionette.AppRouter.extend({ | ||||
|   | ||||
| @@ -25,9 +25,7 @@ define([ | ||||
|         }, | ||||
|  | ||||
|         onRender: function () { | ||||
|             this.ui.tooltip.tooltip({ placement: 'right', html: true }); | ||||
|             this.ui.pathInput.autoComplete('/directories'); | ||||
|  | ||||
|             this.refreshUIVisibility(this.model.get('downloadClient')); | ||||
|         }, | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| 'use strict'; | ||||
|  | ||||
| define(['marionette', 'Mixins/AsModelBoundview', 'bootstrap'], function (Marionette, AsModelBoundView) { | ||||
| define(['marionette', 'Mixins/AsModelBoundview'], function (Marionette, AsModelBoundView) { | ||||
|  | ||||
|     var view = Marionette.ItemView.extend({ | ||||
|         template : 'Settings/Misc/MiscTemplate', | ||||
| @@ -8,11 +8,8 @@ define(['marionette', 'Mixins/AsModelBoundview', 'bootstrap'], function (Marione | ||||
|  | ||||
|         ui: { | ||||
|             tooltip: '[class^="help-inline"] i' | ||||
|         }, | ||||
|  | ||||
|         onRender: function () { | ||||
|             this.ui.tooltip.tooltip({ placement: 'right', html: true }); | ||||
|         } | ||||
|  | ||||
|     }); | ||||
|  | ||||
|     return AsModelBoundView.call(view); | ||||
|   | ||||
| @@ -238,7 +238,8 @@ define( | ||||
|  | ||||
|         window.require( | ||||
|             [ | ||||
|                 'Router' | ||||
|                 'Router', | ||||
|                 'jQuery/TooltipBinder' | ||||
|             ]); | ||||
|  | ||||
|         return NzbDrone; | ||||
|   | ||||
							
								
								
									
										9
									
								
								UI/jQuery/TooltipBinder.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								UI/jQuery/TooltipBinder.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| "use strict"; | ||||
| define( | ||||
|     [ | ||||
|         'bootstrap' | ||||
|     ], function () { | ||||
|         $(document).on('mouseenter', '[title]', function () { | ||||
|             $(this).tooltip('show'); | ||||
|         }); | ||||
|     }); | ||||
		Reference in New Issue
	
	Block a user