]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove old-style addfilter dialog invocations
authorAndrew Dolgov <fox@fakecake.org>
Sat, 20 Nov 2010 12:58:28 +0000 (15:58 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Sat, 20 Nov 2010 12:58:28 +0000 (15:58 +0300)
tt-rss.js

index 4ab357363b62a465f54f944cbfb56baf2e3eab2a..b36ec4e626d3be13b58a75740d7c9d4f794a04ca 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -418,16 +418,18 @@ function quickMenuGo(opid) {
                }
        
                if (opid == "qmcAddFilter") {
-                       displayDlg('quickAddFilter', '',
-                          function () {document.forms['filter_add_form'].reg_exp.focus();});
+                       quickAddFilter();
+                       return;
                }
 
                if (opid == "qmcAddLabel") {
                        addLabel();
+                       return;
                }
 
                if (opid == "qmcRescoreFeed") {
                        rescoreCurrentFeed();
+                       return;
                }
 
                if (opid == "qmcHKhelp") {
@@ -893,8 +895,7 @@ function hotkey_handler(e) {
                        hotkey_prefix = false;
 
                        if (keycode == 70) { // f
-                               displayDlg('quickAddFilter', '',
-                                  function () {document.forms['filter_add_form'].reg_exp.focus();});
+                               quickAddFilter();
                                return false;
                        }