From: Andrew Dolgov Date: Sat, 25 Aug 2007 12:16:26 +0000 (+0100) Subject: refactor qaddFeed, addFilter X-Git-Tag: 1.2.15~47 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=18ab3d7ae1e1fbf7c58247ccf54045e99bbbae61;p=tt-rss.git refactor qaddFeed, addFilter --- diff --git a/functions.js b/functions.js index b8a70425..27691159 100644 --- a/functions.js +++ b/functions.js @@ -1347,7 +1347,7 @@ function infobox_callback2(transport) { } } -function addFilter() { +function createFilter() { var form = document.forms['filter_add_form']; var reg_exp = form.reg_exp.value; @@ -1379,7 +1379,7 @@ function isValidURL(s) { return s.match("http://") != null || s.match("https://") != null || s.match("feed://") != null; } -function qaddFeed() { +function subscribeToFeed() { var form = document.forms['feed_add_form']; var feed_url = form.feed_url.value; diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 66b44da7..34f6311c 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -61,7 +61,7 @@ print ""; @@ -87,9 +87,9 @@ print "
".__('Feed URL:')."
- + + name='auth_pass' class='iedit' onfocus=\"javascript:disableHotkeys()\" onfocus=\"javascript:disableHotkeys()\" onkeypress=\"return filterCR(event, subscribeToFeed)\">
".__('Login:')."
".__('Login:')."
".__('Password:')."
"; @@ -98,7 +98,7 @@ print "
+ type=\"submit\" onclick=\"return subscribeToFeed()\" value=\"".__('Subscribe')."\">
@@ -271,7 +271,7 @@ print ""; print " -
".__('Match:').""; @@ -320,7 +320,7 @@ print " "; print "