From 1e5548db5423d9dae79ee0c607392f3838ca7e6d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 11 Jan 2010 18:43:53 +0300 Subject: [PATCH] prefs: reorganize toolbar buttons --- modules/pref-feeds.php | 63 +++++++++++++++++++++------------------- modules/pref-filters.php | 25 +++++++--------- modules/pref-labels.php | 30 +++++++++---------- modules/pref-users.php | 26 ++++++++--------- prefs.js | 3 +- 5 files changed, 73 insertions(+), 74 deletions(-) diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 5330a4ff..86c7c9eb 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1133,7 +1133,37 @@ print ""; + class=\"button\" value=\"".__('Subscribe to feed')."\"> "; + + print " "; + + if (get_pref($link, 'ENABLE_FEED_CATS')) { + + print " "; + } + + print " "; + +/* print ""; */ /* if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { print " "; - print "
"; +/* print "
"; if (get_pref($link, 'ENABLE_FEED_CATS')) { @@ -1375,35 +1405,8 @@ __('Recategorize')."\">"; } - print "
"; - - print ""; } else { print "

"; diff --git a/modules/pref-filters.php b/modules/pref-filters.php index a0760de4..afa8eb31 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -305,8 +305,9 @@ onchange=\"javascript:updateFilterList()\" value=\"$filter_search\"> - -

+   + +
"; @@ -314,14 +315,19 @@ class=\"button\" onclick=\"return displayDlg('quickAddFilter', false)\" id=\"create_filter_btn\" - value=\"".__('Create filter')."\">"; + value=\"".__('Create filter')."\"> "; - print " "; + print " "; + + print " "; print ""; + value=\"".__('Rescore articles')."\"> "; + if ($filter_search) { $filter_search = split(' ', db_escape_string($filter_search)); @@ -508,15 +514,6 @@ print ""; - print "

"; - - print " - "; - - print "

"; - } else { print "

"; diff --git a/modules/pref-labels.php b/modules/pref-labels.php index e67cb7e3..a6324c7a 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -137,7 +137,21 @@ print""; + value=\"".__('Create label')."\"> "; + + print ""; + + print " "; +/* print "  "; + print " "; */ + print ""; + + + print ""; if ($label_search) { @@ -233,20 +247,6 @@ print ""; - print "

"; - - print ""; - - print " "; -/* print "  "; - print " "; */ - print ""; - - print "

"; } else { print "

"; diff --git a/modules/pref-users.php b/modules/pref-users.php index 6b4df885..7c47a3db 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -371,7 +371,19 @@ print ""; + onclick=\"javascript:addUser()\" value=\"".__('Create user')."\">"; + + print " + + + + "; + + print ""; if ($user_search) { @@ -473,18 +485,6 @@ print ""; - print "

"; - - print " - - - - "; - } else { print "

"; if (!$user_search) { diff --git a/prefs.js b/prefs.js index 36665532..8bacbfdd 100644 --- a/prefs.js +++ b/prefs.js @@ -946,8 +946,7 @@ function editSelectedFeed() { } if (rows.length > 1) { - alert(__("Please select one feed.")); - return; + return editSelectedFeeds(); } notify(""); -- 2.39.5