From 3f203acab98f928d52db7952360f4d5ef2036729 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Thu, 25 Jul 2013 19:09:17 -0700 Subject: [PATCH] fixed toggle-cell tool-tips sticking around. --- UI/Cells/AirDateCell.js | 26 -------------------------- UI/Cells/RelativeDateCell.js | 3 +-- UI/Cells/ToggleCell.js | 13 +++++++------ UI/Missing/MissingLayout.js | 6 +++--- UI/Series/Details/SeasonLayout.js | 6 +++--- UI/Series/Index/SeriesIndexLayout.js | 6 +++--- 6 files changed, 17 insertions(+), 43 deletions(-) delete mode 100644 UI/Cells/AirDateCell.js diff --git a/UI/Cells/AirDateCell.js b/UI/Cells/AirDateCell.js deleted file mode 100644 index e40aa06fb..000000000 --- a/UI/Cells/AirDateCell.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; -define( - [ - 'backgrid', - 'moment', - 'Shared/FormatHelpers' - ], function (Backgrid, Moment, FormatHelpers) { - return Backgrid.Cell.extend({ - className: 'air-date-cell', - - render: function () { - - this.$el.empty(); - var date = this.model.get(this.column.get('name')); - - if (date) { - this.$el.html('
' + FormatHelpers.DateHelper(date) + '
'); - - this.$el.children('div').attr('title', Moment(date).format('LLLL')); - } - - return this; - - } - }); - }); diff --git a/UI/Cells/RelativeDateCell.js b/UI/Cells/RelativeDateCell.js index f8e4ea4ba..c411a731e 100644 --- a/UI/Cells/RelativeDateCell.js +++ b/UI/Cells/RelativeDateCell.js @@ -14,8 +14,7 @@ define( var date = this.model.get(this.column.get('name')); if (date) { - this.$el.html(FormatHelpers.DateHelper(date)); - this.$el.attr('title', Moment(date).format('LLLL')); + this.$el.html("" + FormatHelpers.DateHelper(date) + "