Skip to content

Commit

Permalink
Zap channel via multiepg #656
Browse files Browse the repository at this point in the history
  • Loading branch information
jbleyel committed Sep 16, 2017
1 parent 3631ae1 commit 210b398
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion plugin/controllers/views/ajax/multiepg.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@
<thead>
<tr>
#for $sname, $eventlist in $events.iteritems()
<td class="border"><div class="service ui-widget-header"><img src="$(picons[$sname])" /> $sname</div></td>
#set $evl = $eventlist[0]
#set $ref= ""
#if $evl
#set $ev=$evl[0]
#set $ref = "data-ref='" + $ev.ref + "'"
#end if
<td class="border"><div class="service ui-widget-header" $ref><img src="$(picons[$sname])" /> $sname</div></td>
#end for
</tr>
</thead>
Expand Down Expand Up @@ -281,6 +287,14 @@ fixTableHeight();
});
}
});
#if $mode == 1
\$(".service").click(function() {
var ref = \$(this).data("ref");
if (ref != undefined) {
zapChannel(ref, '');
}
});
#end if
\$(".plus").click(function() {
var day = \$(this).data("day");
var epgmode = "$epgmode";
Expand Down

0 comments on commit 210b398

Please sign in to comment.