diff options
author | thlo <smarttv640@gmail.com> | 2013-09-01 16:53:29 +0200 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2013-09-01 16:53:29 +0200 |
commit | 752587bccad186db28df673f84690eb265ecd991 (patch) | |
tree | 337b7ff9a78c432d23627af5a1e6e7d47d7cff1c /smarttv-client/Javascript/Buttons.js | |
parent | 611fd0079284be330812e9eb44a43304c42387fe (diff) | |
download | vdr-plugin-smarttvweb-752587bccad186db28df673f84690eb265ecd991.tar.gz vdr-plugin-smarttvweb-752587bccad186db28df673f84690eb265ecd991.tar.bz2 |
Timer menu entry, which gives an overview of the timers and allows
deletion of timers.
widget.conf configurable InfoOverlay timeout (new widget.conf entry
<infoTimeout>)
YouTube entry becomes optional. Add <youtubemenu>true</youtubemenu> to
your widget.conf
Improved server error feedback through widget GUI
Bug Fixes.
Diffstat (limited to 'smarttv-client/Javascript/Buttons.js')
-rw-r--r-- | smarttv-client/Javascript/Buttons.js | 26 |
1 files changed, 23 insertions, 3 deletions
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) {
+ }
};
|