]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: expose a "play" url to the entire mux.
authorJohn Törnblom <john.tornblom@gmail.com>
Wed, 9 Jan 2013 15:45:14 +0000 (16:45 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Wed, 9 Jan 2013 15:45:14 +0000 (16:45 +0100)
src/webui/static/app/dvb.js

index a38085277c4d4e526b31cf0677c729199d46c2c1..d351c98c3f90ed63ba27a59a723715467cbf8230 100644 (file)
@@ -24,6 +24,14 @@ tvheadend.dvb_muxes = function(adapterData, satConfStore) {
        var cmlist = Array();
 
        cmlist.push(enabledColumn, {
+               header : "Play",
+               dataIndex : 'id',
+               width : 50,
+               renderer : function(value, metadata, record, row, col, store) {
+                       url = 'stream/mux/' + value
+                       return '<a href="' + url + '">Play</a>'
+               }
+       }, {
                header : "Network",
                dataIndex : 'network',
                width : 200