summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthlo <t.lohmar@gmx.de>2013-01-28 06:49:25 +0100
committerthlo <t.lohmar@gmx.de>2013-01-28 06:49:25 +0100
commitcee7dbc42bae94b364c263b4aad8deb8183138ca (patch)
tree92275cd5bd446e16e9b0f5d07664d9a87b35872e
parent6ce61c8a14ae1487d7065c206fd43a8489b7fb9d (diff)
downloadvdr-plugin-smarttvweb-cee7dbc42bae94b364c263b4aad8deb8183138ca.tar.gz
vdr-plugin-smarttvweb-cee7dbc42bae94b364c263b4aad8deb8183138ca.tar.bz2
Make Skip Duration field visible again
-rwxr-xr-xsmarttv-client/Javascript/Display.js11
-rwxr-xr-xsmarttv-client/Javascript/Main.js3
-rwxr-xr-xsmarttv-client/config.xml2
3 files changed, 8 insertions, 8 deletions
diff --git a/smarttv-client/Javascript/Display.js b/smarttv-client/Javascript/Display.js
index a304d74..14cc873 100755
--- a/smarttv-client/Javascript/Display.js
+++ b/smarttv-client/Javascript/Display.js
@@ -557,12 +557,12 @@ Display.getDisplayTitle = function(item) {
*
*/
-Display.initOlForLive = function () {
+Display.showOlStartStop = function () {
$("#olTitle").css("width", "50%");
$("#olStartStop").show();
};
-Display.initOlForRecordings = function () {
+Display.hideOlStartStop = function () {
$("#olStartStop").hide();
$("#olTitle").css("width", "75%");
};
@@ -595,6 +595,7 @@ Display.setOlTitle = function (title) {
Display.resetStartStop = function () {
Display.olStartStop = "";
+ Display.hideOlStartStop();
$("#olStartStop").text("");
/* var elm = document.getElementById("olStartStop");
Display.putInnerHTML(elm, Display.olStartStop);
@@ -602,7 +603,8 @@ Display.resetStartStop = function () {
};
Display.setStartStop = function(start, stop) {
this.olStartStop = "";
-
+ Display.showOlStartStop();
+
var digi =new Date(start * 1000);
var hours=digi.getHours();
var minutes=digi.getMinutes();
@@ -626,8 +628,9 @@ Display.setStartStop = function(start, stop) {
Display.setSkipDuration = function(duration) {
this.olStartStop = "";
+ Display.showOlStartStop();
- this.olStartStop = duration;
+ this.olStartStop = duration;
$("#olStartStop").text("Next Skip: " + Display.olStartStop+"sec");
diff --git a/smarttv-client/Javascript/Main.js b/smarttv-client/Javascript/Main.js
index 382b81c..05099b5 100755
--- a/smarttv-client/Javascript/Main.js
+++ b/smarttv-client/Javascript/Main.js
@@ -381,7 +381,6 @@ Main.playItem = function (url) {
// Live
// Check for updates
Display.hide();
- Display.initOlForLive();
Display.showProgress();
Player.isLive = true;
@@ -398,7 +397,6 @@ Main.playItem = function (url) {
Player.playVideo(-1);
break;
case Main.eREC:
- Display.initOlForRecordings();
Display.resetStartStop();
// Main.getResume(Data.getCurrentItem().childs[Main.selectedVideo].payload.guid);
@@ -444,7 +442,6 @@ Main.playItem = function (url) {
break;
case Main.eMED:
Display.hide();
- Display.initOlForRecordings();
Display.showProgress();
Player.setCurrentPlayTimeOffset(0);
diff --git a/smarttv-client/config.xml b/smarttv-client/config.xml
index 9e3edde..621d8c0 100755
--- a/smarttv-client/config.xml
+++ b/smarttv-client/config.xml
@@ -9,7 +9,7 @@
<BigThumbIcon>Images/icon/SmartTvWeb_115.png</BigThumbIcon>
<ListIcon>Images/icon/SmartTvWeb_85.png</ListIcon>
<BigListIcon>Images/icon/SmartTvWeb_95.png</BigListIcon>
- <ver>0.87</ver>
+ <ver>0.88</ver>
<mgrver></mgrver>
<fullwidget>y</fullwidget>
<movie>y</movie>