summaryrefslogtreecommitdiff
path: root/http/src/js/eventDetail.js
diff options
context:
space:
mode:
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,