summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-02-03 15:06:25 +0300
committerAndrew Dolgov <[email protected]>2010-02-03 15:06:25 +0300
commita6d0014d7bc7f4f7a6580951fbeaba45877634c6 (patch)
treea0e7525193429fe797c80a8d7d5042b0f285851c /tt-rss.js
parent55132a454f997aef9fab29ad86e8f7bac6e0a1b6 (diff)
quickAddFilter/Feed focus improvements
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/tt-rss.js b/tt-rss.js
index d93ea260a..c816dc378 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -619,7 +619,8 @@ function quickMenuGo(opid) {
}
if (opid == "qmcAddFilter") {
- displayDlg("quickAddFilter", getActiveFeedId());
+ displayDlg('quickAddFilter', '',
+ function () {document.forms['filter_add_form'].reg_exp.focus();});
}
if (opid == "qmcAddLabel") {
@@ -1286,7 +1287,9 @@ function hotkey_handler(e) {
}
if (keycode == 83) { // s
- displayDlg("quickAddFeed");
+ displayDlg('quickAddFeed', '',
+ function () {$('feed_url').focus();});
+
return false;
}
@@ -1322,7 +1325,8 @@ function hotkey_handler(e) {
hotkey_prefix = false;
if (keycode == 70) { // f
- displayDlg("quickAddFilter", getActiveFeedId());
+ displayDlg('quickAddFilter', '',
+ function () {document.forms['filter_add_form'].reg_exp.focus();});
return false;
}