]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Split the 'DVR' tab into multiple panels
authorAndreas Öman <andreas@lonelycoder.com>
Tue, 23 Sep 2008 19:05:07 +0000 (19:05 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Tue, 23 Sep 2008 19:05:07 +0000 (19:05 +0000)
webui/static/app/dvr.js

index b6ab060e7dfc9535a0cb8bd89691abf45d2663c2..286fb3c08de5f0d930225b15c79499c99f5da011 100644 (file)
@@ -91,7 +91,7 @@ tvheadend.dvrDetails = function(entry) {
 /**
  *
  */
-tvheadend.dvr = function() {
+tvheadend.dvrlog = function() {
 
     function renderDate(value){
        var dt = new Date(value);
@@ -163,7 +163,7 @@ tvheadend.dvr = function() {
         loadMask: true,
        stripeRows: true,
        disableSelection: true,
-       title: 'Digital Video Recorder',
+       title: 'Recorder log',
        store: tvheadend.dvrStore,
        cm: dvrCm,
         viewConfig: {forceFit:true},
@@ -183,7 +183,21 @@ tvheadend.dvr = function() {
     function rowclicked(grid, index) {
        new tvheadend.dvrDetails(grid.getStore().getAt(index).data);
     }
+    return panel;
+}
 
+/**
+ *
+ */
+tvheadend.dvr = function() {
+
+    var panel = new Ext.TabPanel({
+       activeTab:0, 
+       autoScroll:true, 
+       title: 'Digital Video Recorder', 
+       items: [new tvheadend.dvrlog
+              ]
+    });
 
     return panel;
 }