}
function init() {
- hideOrShowFeeds(document, getCookie("ttrss_vf_hreadf") == 1);
- document.onkeydown = hotkey_handler;
- parent.setTimeout("timeout()", 1000);
+ try {
+ hideOrShowFeeds(document, getCookie("ttrss_vf_hreadf") == 1);
+ document.onkeydown = hotkey_handler;
+ parent.setTimeout("timeout()", 1000);
+ } catch (e) {
+ exception_error("feedlist/init()", e);
+ }
}
function hideParentElement(e) {
e.parentNode.style.display = "none";
}
+
+function dropboxSelect(e, v) {
+ for (i = 0; i < e.length; i++) {
+ if (e[i].value == v) {
+ e.selectedIndex = i;
+ break;
+ }
+ }
+}
document.onkeydown = hotkey_handler;
var content = document.getElementById("content");
+
+ dropboxSelect(viewbox, getCookie("ttrss_vf_vmode"));
- if (getCookie("ttrss_vf_vmode")) {
- var viewbox = document.getElementById("viewbox");
- viewbox.value = getCookie("ttrss_vf_vmode");
+/* if (getCookie("ttrss_vf_vmode")) {
+ var viewbox = document.getElementById("viewbox");
+ if (getCookie("ttrss_vf_vmode")) {
+ viewbox.value = getCookie("ttrss_vf_vmode");
+ }
}
if (getCookie("ttrss_vf_limit")) {
var limitbox = document.getElementById("limitbox");
limitbox.value = getCookie("ttrss_vf_limit");
- }
+ } */
// if (getCookie("ttrss_vf_actfeed")) {
// viewfeed(getCookie("ttrss_vf_actfeed"), 0, '');