submit behaviour fixes for opera
This commit is contained in:
parent
48c6406b57
commit
90ac84dff8
27
backend.php
27
backend.php
|
@ -1882,17 +1882,17 @@
|
|||
if ($subop == "editCat") {
|
||||
print "Edit category:
|
||||
<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:
|
||||
<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\">";
|
||||
|
||||
}
|
||||
|
||||
|
@ -1988,11 +1988,11 @@
|
|||
|
||||
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>";
|
||||
|
@ -2076,7 +2076,7 @@
|
|||
|
||||
print "<input type=\"submit\"
|
||||
class=\"button\"
|
||||
onclick=\"javascript:displayDlg('quickAddFilter', false)\"
|
||||
onclick=\"return displayDlg('quickAddFilter', false)\"
|
||||
id=\"create_filter_btn\"
|
||||
value=\"Create filter\">";
|
||||
|
||||
|
@ -2173,9 +2173,9 @@
|
|||
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>";
|
||||
|
||||
|
@ -2644,11 +2644,11 @@
|
|||
|
||||
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>";
|
||||
|
@ -3112,9 +3112,10 @@
|
|||
|
||||
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>";
|
||||
|
|
|
@ -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() {
|
||||
|
|
21
prefs.js
21
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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -539,6 +545,7 @@ function removeSelectedFeeds() {
|
|||
|
||||
}
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue