From c14b5566663e59d56043c7b580f0fad6d9b11cc7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 20 May 2006 13:09:33 +0100 Subject: [PATCH] fix unneeded submit of create filter form --- backend.php | 27 ++++++++++++++++----------- functions.js | 2 ++ prefs.js | 3 +++ 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/backend.php b/backend.php index 24b73820..f51e9c1a 100644 --- a/backend.php +++ b/backend.php @@ -1567,9 +1567,9 @@ print "
+ onclick=\"return feedEditSave()\" value=\"Save\">
"; + onclick=\"return feedEditCancel()\" value=\"Cancel\">"; return; } @@ -2667,8 +2667,9 @@ id=\"fadd_submit_btn\" disabled=\"true\" type=\"submit\" onclick=\"javascript:qafAdd()\" value=\"Subscribe\"> "; + } if ($id == "quickDelFeed") { @@ -2745,7 +2746,7 @@ print ""; print ""; - print ""; + print ""; // print "
Note: filter will only apply to new articles.
"; @@ -2786,21 +2787,25 @@ } print ""; - - print ""; - + + print ""; + + print ""; + + print "
"; + print " "; print ""; - print ""; + print "
"; - print ""; +// print ""; } diff --git a/functions.js b/functions.js index 627eb287..683d8007 100644 --- a/functions.js +++ b/functions.js @@ -969,6 +969,7 @@ function closeInfoBox() { } enableHotkeys(); + } @@ -1032,6 +1033,7 @@ function qaddFilter() { xmlhttp.onreadystatechange=infobox_submit_callback; xmlhttp.send(null); + return true; } function toggleSubmitNotEmpty(e, submit_id) { diff --git a/prefs.js b/prefs.js index e8c36bc7..50809d87 100644 --- a/prefs.js +++ b/prefs.js @@ -661,6 +661,7 @@ function feedEditCancel() { selectPrefRows('feed', false); // cleanup feed selection active_feed = false; + } function feedCatEditCancel() { @@ -704,6 +705,8 @@ function feedEditSave() { xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp.send(query); + return false; + } catch (e) { exception_error("feedEditSave", e); } -- 2.39.5