diff --git a/src/UI/Activity/Queue/TimeleftCell.js b/src/UI/Activity/Queue/TimeleftCell.js
index c2352d392..376bcd075 100644
--- a/src/UI/Activity/Queue/TimeleftCell.js
+++ b/src/UI/Activity/Queue/TimeleftCell.js
@@ -14,7 +14,6 @@ module.exports = NzbDroneCell.extend({
var time = '{0} at {1}'.format(FormatHelpers.relativeDate(ect), moment(ect).format(UiSettingsModel.time(true, false)));
this.$el.html('-');
this.$el.attr('title', 'Will be processed during the first RSS Sync after {0}'.format(time));
- this.$el.attr('data-container', 'body');
return this;
}
var timeleft = this.cellValue.get('timeleft');
diff --git a/src/UI/AddSeries/SearchResultViewTemplate.hbs b/src/UI/AddSeries/SearchResultViewTemplate.hbs
index 538484c46..d94d1350a 100644
--- a/src/UI/AddSeries/SearchResultViewTemplate.hbs
+++ b/src/UI/AddSeries/SearchResultViewTemplate.hbs
@@ -80,12 +80,12 @@
-
diff --git a/src/UI/Calendar/CalendarFeedViewTemplate.hbs b/src/UI/Calendar/CalendarFeedViewTemplate.hbs
index 96da6d211..7b15d89ea 100644
--- a/src/UI/Calendar/CalendarFeedViewTemplate.hbs
+++ b/src/UI/Calendar/CalendarFeedViewTemplate.hbs
@@ -14,8 +14,8 @@
diff --git a/src/UI/Shared/Toolbar/Radio/RadioButtonView.js b/src/UI/Shared/Toolbar/Radio/RadioButtonView.js
index 052bb4ffd..b4b6cb2f3 100644
--- a/src/UI/Shared/Toolbar/Radio/RadioButtonView.js
+++ b/src/UI/Shared/Toolbar/Radio/RadioButtonView.js
@@ -19,7 +19,6 @@ module.exports = Marionette.ItemView.extend({
}
if(this.model.get('tooltip')) {
this.$el.attr('title', this.model.get('tooltip'));
- this.$el.attr('data-container', 'body');
}
},
onClick : function(){
diff --git a/src/UI/Shared/Tooltip.js b/src/UI/Shared/Tooltip.js
index 15e0e68e3..a2dc0c916 100644
--- a/src/UI/Shared/Tooltip.js
+++ b/src/UI/Shared/Tooltip.js
@@ -1,8 +1,29 @@
var $ = require('jquery');
+require('bootstrap');
+
+var Tooltip = $.fn.tooltip.Constructor;
+
+var origGetOptions = Tooltip.prototype.getOptions;
+Tooltip.prototype.getOptions = function(options) {
+ var result = origGetOptions.call(this, options);
+
+ if (result.container === false) {
+
+ var container = this.$element.closest('.btn-group,.input-group').parent();
+
+ if (container.length) {
+ result.container = container;
+ }
+ }
+
+ return result;
+};
module.exports = {
- appInitializer : function(){
+ appInitializer : function() {
+
$('body').tooltip({selector : '[title]'});
+
return this;
}
};
\ No newline at end of file
diff --git a/src/UI/System/SystemLayoutTemplate.hbs b/src/UI/System/SystemLayoutTemplate.hbs
index 8c5882e7e..ecf0b418f 100644
--- a/src/UI/System/SystemLayoutTemplate.hbs
+++ b/src/UI/System/SystemLayoutTemplate.hbs
@@ -6,15 +6,15 @@
Logs
-
+
-
+
{{#if_eq authentication compare="forms"}}
-
+
{{/if_eq}}