From: Andrew Dolgov Date: Sat, 20 Nov 2010 21:06:51 +0000 (+0300) Subject: rework main toolbar X-Git-Tag: 1.5.0~103 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=37f1a234a53dc91d0ec29364554ad7add179cabf;p=tt-rss.git rework main toolbar --- diff --git a/tt-rss.js b/tt-rss.js index a0c1b70f..08abbbe3 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 8ee817f9..5b9d1f1f 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -131,12 +131,14 @@
- - - -
- - + - - + - - - - + - -