From 18ab3d7ae1e1fbf7c58247ccf54045e99bbbae61 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 25 Aug 2007 13:16:26 +0100 Subject: [PATCH] refactor qaddFeed, addFilter --- functions.js | 4 ++-- modules/popup-dialog.php | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) 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 "