From 37f1a234a53dc91d0ec29364554ad7add179cabf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 21 Nov 2010 00:06:51 +0300 Subject: [PATCH] rework main toolbar --- tt-rss.js | 18 +++++++++--------- tt-rss.php | 32 ++++++++++++++++---------------- 2 files changed, 25 insertions(+), 25 deletions(-) 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 @@
- - - -
- - + - - + - - - - + - -
-- 2.39.2