]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix form autosubmit problem
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 2 Mar 2007 20:58:29 +0000 (21:58 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 2 Mar 2007 20:58:29 +0000 (21:58 +0100)
modules/popup-dialog.php
modules/pref-feeds.php
modules/pref-filters.php
modules/pref-labels.php
modules/pref-prefs.php
modules/pref-users.php
tt-rss.php

index 55f199baae2a1cc59ad57d2f8661cc25a9156f6e..a87534723a9d113ac25cabb14dc7c10b5002a78a 100644 (file)
@@ -43,7 +43,7 @@
                        print "<div id=\"infoBoxTitle\">Subscribe to feed</div>";
                        print "<div class=\"infoBoxContents\">";
 
-                       print "<form id='feed_add_form'>";
+                       print "<form id='feed_add_form' onsubmit='return false'>";
 
                        print "<input type=\"hidden\" name=\"op\" value=\"pref-feeds\">";
                        print "<input type=\"hidden\" name=\"quiet\" value=\"1\">";
@@ -80,7 +80,7 @@
                        print "<div id=\"infoBoxTitle\">Search</div>";
                        print "<div class=\"infoBoxContents\">";
 
-                       print "<form id='search_form'>";
+                       print "<form id='search_form'  onsubmit='return false'>";
 
                        #$active_feed_id = db_escape_string($_GET["param"]);
 
                        print "<div id=\"infoBoxTitle\">Create label</div>";
                        print "<div class=\"infoBoxContents\">";
 
-                       print "<form id=\"label_edit_form\">";
+                       print "<form id=\"label_edit_form\" onsubmit='return false'>";
 
                        print "<input type=\"hidden\" name=\"op\" value=\"pref-labels\">";
                        print "<input type=\"hidden\" name=\"subop\" value=\"add\">"; 
                        print "<div id=\"infoBoxTitle\">Create filter</div>";
                        print "<div class=\"infoBoxContents\">";
 
-                       print "<form id=\"filter_add_form\">";
+                       print "<form id=\"filter_add_form\" onsubmit='return false'>";
 
                        print "<input type=\"hidden\" name=\"op\" value=\"pref-filters\">";
                        print "<input type=\"hidden\" name=\"quiet\" value=\"1\">";
                        print "<div id=\"infoBoxTitle\">Edit Tags</div>";
                        print "<div class=\"infoBoxContents\">";
 
-                       print "<form id=\"tag_edit_form\">";
+                       print "<form id=\"tag_edit_form\" onsubmit='return false'>";
 
                        print "Tags for this article (separated by commas):<br>";
 
index b4c1069fe8ea337b6ee9a79d961c2822230c2903..0797b2bbdffcdef9a69e48744b0f4b2f0afcc915 100644 (file)
 
                        print "<div class=\"infoBoxContents\">";
 
-                       print "<form id=\"edit_feed_form\">";   
+                       print "<form id=\"edit_feed_form\" onsubmit=\"return false\">"; 
 
                        print "<input type=\"hidden\" name=\"id\" value=\"$feed_id\">";
                        print "<input type=\"hidden\" name=\"op\" value=\"pref-feeds\">";
 
                                print "<div class=\"prefFeedCatHolder\">";
 
-                               print "<form id=\"feed_cat_edit_form\">";
+                               print "<form id=\"feed_cat_edit_form\" onsubmit=\"return false\">";
 
                                print "<table width=\"100%\" class=\"prefFeedCatList\" 
                                        cellspacing=\"0\" id=\"prefFeedCatList\">";
index e348fe69cb6df6cbe562490b24158d7b19edd5fd..a126a595b3b839c4ffaf6969a27659ca15868523 100644 (file)
@@ -22,7 +22,7 @@
                        print "<div id=\"infoBoxTitle\">Filter editor</div>";
                        print "<div class=\"infoBoxContents\">";
 
-                       print "<form id=\"filter_edit_form\">";
+                       print "<form id=\"filter_edit_form\" onsubmit='return false'>";
 
                        print "<input type=\"hidden\" name=\"op\" value=\"pref-filters\">";
                        print "<input type=\"hidden\" name=\"id\" value=\"$filter_id\">";
index 3b7d7f79f55ded062a663441a32968ffe7a1272b..71d4d1cc8e2d43b5fdfa46924b84945d0415b388 100644 (file)
@@ -27,7 +27,7 @@
                        print "<div id=\"infoBoxTitle\">Label editor</div>";
                        print "<div class=\"infoBoxContents\">";
 
-                       print "<form id=\"label_edit_form\">";
+                       print "<form id=\"label_edit_form\" onsubmit='return false'>";
 
                        print "<input type=\"hidden\" name=\"op\" value=\"pref-labels\">";
                        print "<input type=\"hidden\" name=\"id\" value=\"$label_id\">";
index 66201f8b0419c8b9e15e49965f3603b13b88e192..2185646af56736afab999b0800d663786cf50689 100644 (file)
 
                                print "</form>";
 
-                               print "<form action=\"backend.php\" method=\"POST\" 
+                               print "<form onsubmit=\"return false\" 
                                        name=\"change_pass_form\" id=\"change_pass_form\">";
        
                                print "<table width=\"100%\" class=\"prefPrefsList\">";
index 9835f4c1958f2c9dde5574cfe624e493d580793d..46c7ad4744bf0e1f177edad059094cd1b973e1f5 100644 (file)
@@ -13,7 +13,7 @@
                        
                        print "<div class=\"infoBoxContents\">";
 
-                       print "<form id=\"user_edit_form\">";
+                       print "<form id=\"user_edit_form\" onsubmit='return false'>";
 
                        print "<input type=\"hidden\" name=\"id\" value=\"$id\">";
                        print "<input type=\"hidden\" name=\"op\" value=\"pref-users\">";
index bc337ee3153f6e9cf355c5f77600f326ac23120d..5adb8dbf7450349312cd9418244694e6ef25e79a 100644 (file)
@@ -145,7 +145,7 @@ window.onload = init;
                        </select>
                </div>
 
-               <form id="main_toolbar_form">
+               <form id="main_toolbar_form" onsubmit='return false'>
 
                <?php echo _('Search:') ?>
                <input name="query"