summaryrefslogtreecommitdiff
path: root/http/src/js/eventDetail.js
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2018-02-09 21:08:00 +0100
committerhorchi <vdr@jwendel.de>2018-02-09 21:08:00 +0100
commit603be72552dec1465ae49fc392930a678f28bef1 (patch)
tree3bcc7d5a622dc570c5f733469ebe145ca7606b3e /http/src/js/eventDetail.js
parenta7d8f609094cb81040c6a836a784c50429615866 (diff)
downloadvdr-epg-daemon-603be72552dec1465ae49fc392930a678f28bef1.tar.gz
vdr-epg-daemon-603be72552dec1465ae49fc392930a678f28bef1.tar.bz2
2018-02-09: version 1.1.130 (rechner)\n - added: Icons for timertypes\n - added: switchtimer on eventDetail \n \n1.1.130
Diffstat (limited to 'http/src/js/eventDetail.js')
-rw-r--r--http/src/js/eventDetail.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/http/src/js/eventDetail.js b/http/src/js/eventDetail.js
index 939b7ff..6574aab 100644
--- a/http/src/js/eventDetail.js
+++ b/http/src/js/eventDetail.js
@@ -66,10 +66,20 @@ epgd.eventDetail.prototype.doRepeat = function (checkAvail) {
}
epgd.eventDetail.prototype.doPlay = function (checkAvail) {
var t = parseInt(epgd.utils.now().getTime() / 1000, 10) - this.data.starttime;
- if (t < 0 || t > this.data.duration)
+ if (t > this.data.duration)
return false;
- if (checkAvail) return true;
- epgd.vdrs.current.switchChannel(this.data.channelid);
+ if (checkAvail) return !!epgd.vdrs.current.uuid;
+ if (t < 0 ){ // Umschalttimer
+ epgd.pages.timerList.save({
+ type: 'V',
+ active: 1,
+ vdruuid: epgd.vdrs.current.uuid,
+ eventid: this.data.id,
+ channelid: this.data.channelid,
+ title: this.data.title
+ });
+ } else
+ epgd.vdrs.current.switchChannel(this.data.channelid);
}
epgd.eventDetail.prototype.doPrev = function (checkAvail) {
var t = this.data.starttime - 500,