From d9ccb92d336bb36a90b3ab9ace2d221644442d43 Mon Sep 17 00:00:00 2001 From: thlo Date: Sun, 1 Sep 2013 16:53:29 +0200 Subject: Timer menu entry, which gives an overview of the timers and allows deletion of timers. widget.conf configurable InfoOverlay timeout (new widget.conf entry ) YouTube entry becomes optional. Add true to your widget.conf Improved server error feedback through widget GUI Bug Fixes. --- smarttv-client/Javascript/Buttons.js | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'smarttv-client/Javascript/Buttons.js') diff --git a/smarttv-client/Javascript/Buttons.js b/smarttv-client/Javascript/Buttons.js index 2e293fd..5791aec 100644 --- a/smarttv-client/Javascript/Buttons.js +++ b/smarttv-client/Javascript/Buttons.js @@ -47,6 +47,10 @@ Buttons.ynReturnCallback = function () { case Main.eOPT: Options.drawServerList(); break; + case Main.eTMR: + Buttons.ynHide(); + Timers.focus(); + break; default: break; } @@ -74,9 +78,14 @@ Buttons.ynEnterCallback = function () { Options.drawServerList(); break; + case Main.eTMR: + Timers.deleteTimer(); + break; + } break; + } Buttons.ynHide(); }; @@ -143,10 +152,17 @@ Buttons.ynShow = function () { Buttons.ynHide = function () { this.ynButton.hide(); - if (Main.state == Main.eOPT) + switch (Main.state) { + case Main.eOPT: $("#optionsViewAnchor").focus(); - else + break; + case Main.eTMR: + Timers.focus(); + break; + default: Main.enableKeys(); + break; + }; }; Buttons.createStyleSheet = function () { @@ -382,6 +398,10 @@ ButtonHandler.prototype.onInput = function () { break; } - widgetAPI.blockNavigation(event); + try { + widgetAPI.blockNavigation(event); + } + catch (e) { + } }; -- cgit v1.2.3