From 0acea5a22ca7b9223e1c095fe1496ccd56618942 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 16 May 2014 17:53:25 -0700 Subject: [PATCH] Tooltips are now attached to body all the time --- src/UI/Cells/EpisodeActionsCellTemplate.html | 4 ++-- src/UI/Cells/EpisodeStatusCell.js | 2 +- src/UI/Settings/General/GeneralViewTemplate.html | 2 +- src/UI/Shared/Toolbar/Radio/RadioButtonView.js | 1 - src/UI/System/Logs/Table/LogTimeCell.js | 1 - src/UI/System/SystemLayoutTemplate.html | 4 ++-- src/UI/app.js | 3 ++- 7 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/UI/Cells/EpisodeActionsCellTemplate.html b/src/UI/Cells/EpisodeActionsCellTemplate.html index a0d4c81d4..77e0ef5cd 100644 --- a/src/UI/Cells/EpisodeActionsCellTemplate.html +++ b/src/UI/Cells/EpisodeActionsCellTemplate.html @@ -1,5 +1,5 @@ 
- +
\ No newline at end of file diff --git a/src/UI/Cells/EpisodeStatusCell.js b/src/UI/Cells/EpisodeStatusCell.js index 1b4d6a68c..c2b23a41f 100644 --- a/src/UI/Cells/EpisodeStatusCell.js +++ b/src/UI/Cells/EpisodeStatusCell.js @@ -69,7 +69,7 @@ define( if (downloading) { var progress = 100 - (downloading.get('sizeleft') / downloading.get('size') * 100); - this.$el.html('
'.format(progress.toFixed(1), downloading.get('title')) + + this.$el.html('
'.format(progress.toFixed(1), downloading.get('title')) + '
'.format(progress)); return; } diff --git a/src/UI/Settings/General/GeneralViewTemplate.html b/src/UI/Settings/General/GeneralViewTemplate.html index cfbca24bd..60e42c462 100644 --- a/src/UI/Settings/General/GeneralViewTemplate.html +++ b/src/UI/Settings/General/GeneralViewTemplate.html @@ -147,7 +147,7 @@
- +
diff --git a/src/UI/Shared/Toolbar/Radio/RadioButtonView.js b/src/UI/Shared/Toolbar/Radio/RadioButtonView.js index a72863d5a..fe67f68cf 100644 --- a/src/UI/Shared/Toolbar/Radio/RadioButtonView.js +++ b/src/UI/Shared/Toolbar/Radio/RadioButtonView.js @@ -34,7 +34,6 @@ define( if (this.model.get('tooltip')) { this.$el.attr('title', this.model.get('tooltip')); - this.$el.attr('data-container', 'body'); } }, diff --git a/src/UI/System/Logs/Table/LogTimeCell.js b/src/UI/System/Logs/Table/LogTimeCell.js index a61ae8878..20ee23641 100644 --- a/src/UI/System/Logs/Table/LogTimeCell.js +++ b/src/UI/System/Logs/Table/LogTimeCell.js @@ -13,7 +13,6 @@ define( var date = Moment(this._getValue()); this.$el.html(date.format('LT')); this.$el.attr('title', date.format('LLLL')); - this.$el.attr('data-container', 'body'); return this; } diff --git a/src/UI/System/SystemLayoutTemplate.html b/src/UI/System/SystemLayoutTemplate.html index e3b245715..c84df1ca7 100644 --- a/src/UI/System/SystemLayoutTemplate.html +++ b/src/UI/System/SystemLayoutTemplate.html @@ -4,10 +4,10 @@
  • Updates
  • - -
    diff --git a/src/UI/app.js b/src/UI/app.js index 27a02eafc..a54198702 100644 --- a/src/UI/app.js +++ b/src/UI/app.js @@ -71,7 +71,8 @@ require.config({ ], init: function ($) { $('body').tooltip({ - selector: '[title]' + selector: '[title]', + container: 'body' }); } },