fix forced selection of dropboxes (functions.js:dropboxSelect())
This commit is contained in:
parent
a9b0bfd5e0
commit
1b0809ae45
3 changed files with 24 additions and 7 deletions
|
@ -192,7 +192,11 @@ function toggleCollapseCat(cat) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
try {
|
||||||
hideOrShowFeeds(document, getCookie("ttrss_vf_hreadf") == 1);
|
hideOrShowFeeds(document, getCookie("ttrss_vf_hreadf") == 1);
|
||||||
document.onkeydown = hotkey_handler;
|
document.onkeydown = hotkey_handler;
|
||||||
parent.setTimeout("timeout()", 1000);
|
parent.setTimeout("timeout()", 1000);
|
||||||
|
} catch (e) {
|
||||||
|
exception_error("feedlist/init()", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -744,3 +744,12 @@ function showBlockElement(id) {
|
||||||
function hideParentElement(e) {
|
function hideParentElement(e) {
|
||||||
e.parentNode.style.display = "none";
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -366,15 +366,19 @@ function init_second_stage() {
|
||||||
|
|
||||||
var content = document.getElementById("content");
|
var content = document.getElementById("content");
|
||||||
|
|
||||||
if (getCookie("ttrss_vf_vmode")) {
|
dropboxSelect(viewbox, getCookie("ttrss_vf_vmode"));
|
||||||
|
|
||||||
|
/* if (getCookie("ttrss_vf_vmode")) {
|
||||||
var viewbox = document.getElementById("viewbox");
|
var viewbox = document.getElementById("viewbox");
|
||||||
|
if (getCookie("ttrss_vf_vmode")) {
|
||||||
viewbox.value = getCookie("ttrss_vf_vmode");
|
viewbox.value = getCookie("ttrss_vf_vmode");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (getCookie("ttrss_vf_limit")) {
|
if (getCookie("ttrss_vf_limit")) {
|
||||||
var limitbox = document.getElementById("limitbox");
|
var limitbox = document.getElementById("limitbox");
|
||||||
limitbox.value = getCookie("ttrss_vf_limit");
|
limitbox.value = getCookie("ttrss_vf_limit");
|
||||||
}
|
} */
|
||||||
|
|
||||||
// if (getCookie("ttrss_vf_actfeed")) {
|
// if (getCookie("ttrss_vf_actfeed")) {
|
||||||
// viewfeed(getCookie("ttrss_vf_actfeed"), 0, '');
|
// viewfeed(getCookie("ttrss_vf_actfeed"), 0, '');
|
||||||
|
|
Loading…
Reference in a new issue