]> git.wh0rd.org Git - tt-rss.git/commitdiff
submit behaviour fixes for opera
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 25 Jul 2006 10:47:51 +0000 (11:47 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 25 Jul 2006 10:47:51 +0000 (11:47 +0100)
backend.php
functions.js
prefs.js

index b4b1c6f58c26dbe38e6fcda74ebfd84490fc516e..ff19595f5900da9f74878b41be509a504b3be787 100644 (file)
                                if ($subop == "editCat") {
                                        print "Edit category:&nbsp;
                                                <input type=\"submit\" class=\"button\"
-                                                       onclick=\"javascript:feedCatEditSave()\" value=\"Save\">
+                                                       onclick=\"return feedCatEditSave()\" value=\"Save\">
                                                <input type=\"submit\" class=\"button\"
-                                                       onclick=\"javascript:feedCatEditCancel()\" value=\"Cancel\">";
+                                                       onclick=\"return feedCatEditCancel()\" value=\"Cancel\">";
                                        } else {
                
                                        print "
                                                Selection:&nbsp;
                                        <input type=\"submit\" class=\"button\" disabled=\"true\"
-                                               onclick=\"javascript:editSelectedFeedCat()\" value=\"Edit\">
+                                               onclick=\"return editSelectedFeedCat()\" value=\"Edit\">
                                        <input type=\"submit\" class=\"button\" disabled=\"true\"
-                                               onclick=\"javascript:removeSelectedFeedCats()\" value=\"Remove\">";
+                                               onclick=\"return removeSelectedFeedCats()\" value=\"Remove\">";
        
                                }
        
 
                        print "<input type=\"submit\" 
                                id=\"infobox_submit\"
-                               class=\"button\" onclick=\"filterEditSave()\" 
+                               class=\"button\" onclick=\"return filterEditSave()\" 
                                value=\"Save\"> ";
 
                        print "<input class=\"button\"
-                               type=\"submit\" onclick=\"filterEditCancel()\" 
+                               type=\"submit\" onclick=\"return filterEditCancel()\" 
                                value=\"Cancel\">";
 
                        print "</div>";
 
                print "<input type=\"submit\" 
                        class=\"button\" 
-                       onclick=\"javascript:displayDlg('quickAddFilter', false)\" 
+                       onclick=\"return displayDlg('quickAddFilter', false)\" 
                        id=\"create_filter_btn\"
                        value=\"Create filter\">"; 
 
                        print "
                                        Selection:
                                <input type=\"submit\" class=\"button\" disabled=\"true\"
-                                       onclick=\"javascript:editSelectedFilter()\" value=\"Edit\">
+                                       onclick=\"return editSelectedFilter()\" value=\"Edit\">
                                <input type=\"submit\" class=\"button\" disabled=\"true\"
-                                       onclick=\"javascript:removeSelectedFilters()\" value=\"Remove\">";
+                                       onclick=\"return removeSelectedFilters()\" value=\"Remove\">";
 
                        print "</p>";
 
 
                        print "<input type=\"submit\" 
                                id=\"infobox_submit\"
-                               class=\"button\" onclick=\"qaddFilter()\" 
+                               class=\"button\" onclick=\"return qaddFilter()\" 
                                disabled=\"true\" value=\"Create\"> ";
 
                        print "<input class=\"button\"
-                               type=\"submit\" onclick=\"closeInfoBox()\" 
+                               type=\"submit\" onclick=\"return closeInfoBox()\" 
                                value=\"Cancel\">";
 
                        print "</div>";
                        
                        print "<div align='right'>
                                <input class=\"button\"
-                                       type=\"submit\" onclick=\"javascript:userEditSave()\" value=\"Save\">
+                                       type=\"submit\" onclick=\"return userEditSave()\" 
+                                       value=\"Save\">
                                <input class=\"button\"
-                                       type=\"submit\" onclick=\"javascript:userEditCancel()\" 
+                                       type=\"submit\" onclick=\"return userEditCancel()\" 
                                        value=\"Cancel\"></div>";
 
                        print "</div>";
index 6473e86980c0d3069e36673251f2b4160fa0359e..853f36e1928196f68719d0ffe97c910db1c5fffa 100644 (file)
@@ -1134,6 +1134,7 @@ function closeInfoBox(cleanup) {
 
        enableHotkeys();
 
+       return false;
 }
 
 
@@ -1153,6 +1154,7 @@ function displayDlg(id, param) {
 
        disableHotkeys();
 
+       return false;
 }
 
 function infobox_submit_callback() {
index d73967313f5fbb8695cd837cf931c4b2feec804f..0b15d8a108f304f19b0dca952af34390a95cb3e6 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -454,6 +454,8 @@ function removeSelectedLabels() {
        } else {
                alert("No labels are selected.");
        }
+
+       return false;
 }
 
 function removeSelectedUsers() {
@@ -481,6 +483,8 @@ function removeSelectedUsers() {
        } else {
                alert("No users are selected.");
        }
+
+       return false;
 }
 
 function removeSelectedFilters() {
@@ -507,6 +511,8 @@ function removeSelectedFilters() {
        } else {
                alert("No filters are selected.");
        }
+
+       return false;
 }
 
 
@@ -538,7 +544,8 @@ function removeSelectedFeeds() {
                alert("No feeds are selected.");
 
        }
-
+       
+       return false;
 }
 
 function removeSelectedFeedCats() {
@@ -569,6 +576,7 @@ function removeSelectedFeedCats() {
 
        }
 
+       return false;
 }
 
 function feedEditCancel() {
@@ -582,6 +590,7 @@ function feedEditCancel() {
 
        selectPrefRows('feed', false); // cleanup feed selection
 
+       return false;
 }
 
 function feedCatEditCancel() {
@@ -599,6 +608,7 @@ function feedCatEditCancel() {
        xmlhttp.onreadystatechange=feedlist_callback;
        xmlhttp.send(null);
 
+       return false;
 }
 
 function feedEditSave() {
@@ -647,6 +657,7 @@ function feedCatEditSave() {
 
        active_feed_cat = false;
 
+       return false;
 }
 
 
@@ -663,6 +674,7 @@ function labelTest() {
        xmlhttp.onreadystatechange=infobox_callback;
        xmlhttp.send(null);
 
+       return false;
 }
 
 function displayHelpInfobox(topic_id) {
@@ -692,6 +704,7 @@ function labelEditCancel() {
        xmlhttp.onreadystatechange=labellist_callback;
        xmlhttp.send(null);
 
+       return false;
 }
 
 function userEditCancel() {
@@ -703,6 +716,8 @@ function userEditCancel() {
 
        selectPrefRows('user', false); // cleanup feed selection
        closeInfoBox();
+
+       return false;
 }
 
 function filterEditCancel() {
@@ -716,6 +731,8 @@ function filterEditCancel() {
        
        selectPrefRows('filter', false); // cleanup feed selection
        closeInfoBox();
+
+       return false;
 }
 
 function labelEditSave() {
@@ -752,6 +769,7 @@ function labelEditSave() {
        xmlhttp.onreadystatechange=labellist_callback;
        xmlhttp.send(null);
 
+       return false;
 }
 
 function userEditSave() {
@@ -777,6 +795,8 @@ function userEditSave() {
        xmlhttp.open("GET", "backend.php?" + query, true);                      
        xmlhttp.onreadystatechange=userlist_callback;
        xmlhttp.send(null);
+
+       return false;
 }
 
 
@@ -806,6 +826,7 @@ function filterEditSave() {
        xmlhttp.onreadystatechange=filterlist_callback;
        xmlhttp.send(null);
 
+       return false;
 }
 
 function editSelectedLabel() {