Feature #436 » tune_epg_grid.patch
tvheadend/src/webui/static/app/epg.js 2011-04-13 11:35:58.000000000 +0200 | ||
---|---|---|
182 | 182 |
var epgCm = new Ext.grid.ColumnModel([ |
183 | 183 |
actions, |
184 | 184 |
{ |
185 |
width: 50, |
|
186 |
header: "M3U", |
|
187 |
dataIndex: 'channelid', |
|
188 |
renderer: function(value, metadata, record, row, col, store) { |
|
189 |
url = 'playlist/channelid/' + value; |
|
190 |
return '<a href="'+url+'">Load</a>'; |
|
191 |
} |
|
192 |
},{ |
|
193 |
header: "Embedded", |
|
194 |
dataIndex: 'channelid', |
|
195 |
width: 60, |
|
196 |
renderer: function(value, metadata, record, row, col, store) { |
|
197 |
url = 'stream/channelid/' + value |
|
198 |
return "<a href=\"javascript:tvheadend.VLC('"+url+"')\">Play</a>" |
|
199 |
} |
|
200 |
},{ |
|
201 |
width: 250, |
|
202 |
id:'channel', |
|
203 |
header: "Channel", |
|
204 |
dataIndex: 'channel', |
|
205 |
renderer: renderText |
|
206 |
},{ |
|
185 | 207 |
width: 250, |
186 | 208 |
id:'title', |
187 | 209 |
header: "Title", |
... | ... | |
214 | 236 |
renderer: renderDuration |
215 | 237 |
},{ |
216 | 238 |
width: 250, |
217 |
id:'channel', |
|
218 |
header: "Channel", |
|
219 |
dataIndex: 'channel', |
|
220 |
renderer: renderText |
|
221 |
},{ |
|
222 |
width: 250, |
|
223 | 239 |
id:'contentgrp', |
224 | 240 |
header: "Content Type", |
225 | 241 |
dataIndex: 'contentgrp', |
... | ... | |
336 | 352 |
plugins: [actions], |
337 | 353 |
title: 'Electronic Program Guide', |
338 | 354 |
iconCls: 'newspaper', |
339 |
store : epgStore,
|
|
355 |
store : epgStore, |
|
340 | 356 |
selModel : new Ext.ux.grid.livegrid.RowSelectionModel(), |
341 | 357 |
view : epgView, |
358 |
listeners: { |
|
359 |
cellclick: function(grid,rowIndex,colIndex) { |
|
360 |
if (colIndex > 2) new tvheadend.epgDetails(grid.getStore().getAt(rowIndex).data); |
|
361 |
} |
|
362 |
}, |
|
342 | 363 |
tbar: [ |
343 | 364 |
epgFilterTitle, |
344 | 365 |
'-', |
... | ... | |
383 | 404 |
displayInfo : true |
384 | 405 |
}) |
385 | 406 |
}); |
386 | ||
387 |
panel.on('rowclick', rowclicked); |
|
388 | ||
389 | ||
390 |
function rowclicked(grid, index) { |
|
391 |
new tvheadend.epgDetails(grid.getStore().getAt(index).data); |
|
392 |
} |
|
393 | ||
407 |
|
|
394 | 408 |
function createAutoRec() { |
395 | 409 | |
396 | 410 |
var title = epgStore.baseParams.title ? |