From 53ed3e0213a7d0fd727b37756d641cb798ad19a5 Mon Sep 17 00:00:00 2001 From: thlo Date: Mon, 28 Jan 2013 06:49:25 +0100 Subject: Make Skip Duration field visible again --- smarttv-client/Javascript/Display.js | 11 +++++++---- smarttv-client/Javascript/Main.js | 3 --- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'smarttv-client/Javascript') 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); -- cgit v1.2.3