From 3393238de25981525ca816391b8e94274d94a3f8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 3 Feb 2010 16:54:17 +0300 Subject: [PATCH] more input focusing improvements in popup dialogs --- functions.js | 9 +++++++++ modules/pref-feeds.php | 4 ++-- modules/pref-filters.php | 2 +- prefs.js | 10 +++------- tt-rss.js | 8 +++----- 5 files changed, 18 insertions(+), 15 deletions(-) diff --git a/functions.js b/functions.js index 6ca221ace..3baaffa3a 100644 --- a/functions.js +++ b/functions.js @@ -2147,3 +2147,12 @@ function addLabel() { } } +function quickAddFeed() { + displayDlg('quickAddFeed', '', + function () {$('feed_url').focus();}); +} + +function quickAddFilter() { + displayDlg('quickAddFilter', '', + function () {document.forms['filter_add_form'].reg_exp.focus();}); +} diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 591597337..0ffecf116 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1177,10 +1177,10 @@ __('Search')." "; - print " "; - print " "; if (get_pref($link, 'ENABLE_FEED_CATS')) { diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 5c71fcb03..f3ca8e4cb 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -311,7 +311,7 @@ "; - print " "; print "