diff --git a/tt-rss.js b/tt-rss.js index a0c1b70f4..08abbbe3c 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -265,7 +265,7 @@ function genericSanityCheck() { function init() { try { - Form.disable("main_toolbar_form"); + //Form.disable("main_toolbar_form"); dojo.require("dijit.layout.BorderContainer"); dojo.require("dijit.layout.TabContainer"); @@ -328,8 +328,11 @@ function init_second_stage() { var toolbar = document.forms["main_toolbar_form"]; - dropboxSelect(toolbar.view_mode, getInitParam("default_view_mode")); - dropboxSelect(toolbar.order_by, getInitParam("default_view_order_by")); + dijit.getEnclosingWidget(toolbar.view_mode).attr('value', + getInitParam("default_view_mode")); + + dijit.getEnclosingWidget(toolbar.order_by).attr('value', + getInitParam("default_view_order_by")); feeds_sort_by_unread = getInitParam("feeds_sort_by_unread") == 1; @@ -345,12 +348,9 @@ function init_second_stage() { } } -function quickMenuChange() { - var chooser = $("quickMenuChooser"); - var opid = chooser[chooser.selectedIndex].value; - - chooser.selectedIndex = 0; - quickMenuGo(opid); +function quickMenuChange(elem) { + quickMenuGo(elem.value); + elem.attr('value', 'qmcDefault'); } function quickMenuGo(opid) { diff --git a/tt-rss.php b/tt-rss.php index 8ee817f90..5b9d1f1fe 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -131,12 +131,14 @@