Added indexer to history and tooltip to series view radio buttons

This commit is contained in:
Mark McDowall 2013-07-24 22:20:28 -07:00
parent 52f12c15a6
commit 20e72ca103
4 changed files with 13 additions and 5 deletions

View File

@ -16,10 +16,10 @@ define(
var icon; var icon;
var toolTip; var toolTip;
switch (this.cellValue) { switch (this.cellValue.get('eventType')) {
case 'grabbed': case 'grabbed':
icon = 'icon-cloud-download'; icon = 'icon-cloud-download';
toolTip = 'Episode grabbed from indexer and sent to download client'; toolTip = 'Episode grabbed from {0} and sent to download client'.format(this.cellValue.get('data').indexer);
break; break;
case 'seriesFolderImported': case 'seriesFolderImported':
icon = 'icon-hdd'; icon = 'icon-hdd';

View File

@ -26,8 +26,9 @@ define(
[ [
{ {
name : 'eventType', name : 'eventType',
label: '', label : '',
cell : EventTypeCell cell : EventTypeCell,
cellValue: 'this'
}, },
{ {
name : 'series', name : 'series',

View File

@ -189,18 +189,21 @@ define(
{ {
key : 'posterView', key : 'posterView',
title : '', title : '',
tooltip : 'Posters',
icon : 'icon-th-large', icon : 'icon-th-large',
callback: this._showPosters callback: this._showPosters
}, },
{ {
key : 'listView', key : 'listView',
title : '', title : '',
tooltip : 'Overview List',
icon : 'icon-th-list', icon : 'icon-th-list',
callback: this._showList callback: this._showList
}, },
{ {
key : 'tableView', key : 'tableView',
title : '', title : '',
tooltip : 'Table',
icon : 'icon-table', icon : 'icon-table',
callback: this._showTable callback: this._showTable
} }

View File

@ -28,6 +28,10 @@ define(
if(!this.model.get('title')){ if(!this.model.get('title')){
this.$el.addClass('btn-icon-only'); this.$el.addClass('btn-icon-only');
} }
if (this.model.get('tooltip')) {
this.$el.attr('title', this.model.get('tooltip'))
}
}, },
onClick: function () { onClick: function () {