From: Andrew Dolgov Date: Wed, 3 Feb 2010 12:06:25 +0000 (+0300) Subject: quickAddFilter/Feed focus improvements X-Git-Tag: 1.4.1~22 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a6d0014d7bc7f4f7a6580951fbeaba45877634c6;p=tt-rss.git quickAddFilter/Feed focus improvements --- diff --git a/tt-rss.js b/tt-rss.js index d93ea260..c816dc37 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; }