Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI JS: more tooltip additions for grid headers
  • Loading branch information
perexg committed Jun 24, 2015
1 parent d2cf4dd commit cd30716
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/webui/static/app/chconf.js
Expand Up @@ -234,7 +234,8 @@ tvheadend.channel_tab = function(panel, index)
lcol: [
{
width: 50,
header: 'Play',
header: _('Play'),
tooltip: _('Play'),
renderer: function(v, o, r) {
var title = '';
if (r.data['number'])
Expand Down
1 change: 1 addition & 0 deletions src/webui/static/app/dvr.js
Expand Up @@ -89,6 +89,7 @@ tvheadend.dvrRowActions = function() {
return new Ext.ux.grid.RowActions({
id: 'details',
header: _('Details'),
tooltip: _('Details'),
width: 45,
actions: [
{
Expand Down
13 changes: 13 additions & 0 deletions src/webui/static/app/epg.js
Expand Up @@ -320,6 +320,7 @@ tvheadend.epg = function() {
var actions = new Ext.ux.grid.RowActions({
id: 'details',
header: _('Details'),
tooltip: _('Details'),
width: 45,
dataIndex: 'actions',
callbacks: {
Expand Down Expand Up @@ -450,6 +451,7 @@ tvheadend.epg = function() {
new Ext.ux.grid.ProgressColumn({
width: 100,
header: _("Progress"),
tooltip: _("Progress"),
dataIndex: 'progress',
colored: false,
ceiling: 100,
Expand All @@ -472,6 +474,7 @@ tvheadend.epg = function() {
width: 250,
id: 'title',
header: _("Title"),
tooltip: _("Title"),
dataIndex: 'title',
renderer: function(value, meta, record) {
var clickable = tvheadend.regexEscape(record.data['title']) !=
Expand All @@ -485,20 +488,23 @@ tvheadend.epg = function() {
width: 250,
id: 'subtitle',
header: _("SubTitle"),
tooltip: _("SubTitle"),
dataIndex: 'subtitle',
renderer: renderText
},
{
width: 100,
id: 'episodeOnscreen',
header: _("Episode"),
tooltip: _("Episode"),
dataIndex: 'episodeOnscreen',
renderer: renderText
},
{
width: 100,
id: 'start',
header: _("Start Time"),
tooltip: _("Start Time"),
dataIndex: 'start',
renderer: renderDate
},
Expand All @@ -507,19 +513,22 @@ tvheadend.epg = function() {
hidden: true,
id: 'stop',
header: _("End Time"),
tooltip: _("End Time"),
dataIndex: 'stop',
renderer: renderDate
},
{
width: 100,
id: 'duration',
header: _("Duration"),
tooltip: _("Duration"),
renderer: renderDuration
},
{
width: 60,
id: 'channelNumber',
header: _("Number"),
tooltip: _("Number"),
align: 'right',
dataIndex: 'channelNumber',
renderer: renderText
Expand All @@ -528,6 +537,7 @@ tvheadend.epg = function() {
width: 250,
id: 'channelName',
header: _("Channel"),
tooltip: _("Channel"),
dataIndex: 'channelName',
renderer: function(value, meta, record) {
var clickable = record.data['channelUuid'] !==
Expand All @@ -541,19 +551,22 @@ tvheadend.epg = function() {
width: 50,
id: 'starRating',
header: _("Stars"),
tooltip: _("Stars"),
dataIndex: 'starRating',
renderer: renderInt
},
{
width: 50,
id: 'ageRating',
header: _("Age"),
tooltip: _("Age"),
dataIndex: 'ageRating',
renderer: renderInt
}, {
width: 250,
id: 'genre',
header: _("Content Type"),
tooltip: _("Content Type"),
dataIndex: 'genre',
renderer: function(vals, meta, record) {
var r = [];
Expand Down
4 changes: 3 additions & 1 deletion src/webui/static/app/mpegts.js
Expand Up @@ -123,7 +123,8 @@ tvheadend.muxes = function(panel, index)
lcol: [
{
width: 50,
header: 'Play',
header: _('Play'),
tooltip: _('Play'),
renderer: function(v, o, r) {
var title = r.data['name'] + ' / ' + r.data['network'];
return "<a href='play/stream/mux/" + r.id +
Expand Down Expand Up @@ -304,6 +305,7 @@ tvheadend.services = function(panel, index)
{
width: 50,
header: _('Play'),
tooltip: _('Play'),
renderer: function(v, o, r) {
var title = r.data['svcname'] + ' / ' + r.data['provider'];
return "<a href='play/stream/service/" + r.id +
Expand Down

0 comments on commit cd30716

Please sign in to comment.