fix unneeded submit of create filter form
This commit is contained in:
parent
5a4ef316b7
commit
c14b556666
3 changed files with 25 additions and 15 deletions
33
backend.php
33
backend.php
|
@ -1567,9 +1567,9 @@
|
|||
|
||||
print "<div align='center'>
|
||||
<input type=\"submit\" class=\"button\"
|
||||
onclick=\"feedEditSave()\" value=\"Save\">
|
||||
onclick=\"return feedEditSave()\" value=\"Save\">
|
||||
<input type='submit' class='button'
|
||||
onclick=\"feedEditCancel()\" value=\"Cancel\"></div>";
|
||||
onclick=\"return feedEditCancel()\" value=\"Cancel\"></div>";
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2667,8 +2667,9 @@
|
|||
id=\"fadd_submit_btn\" disabled=\"true\"
|
||||
type=\"submit\" onclick=\"javascript:qafAdd()\" value=\"Subscribe\">
|
||||
<input class=\"button\"
|
||||
type=\"submit\" onclick=\"javascript:closeInfoBox()\"
|
||||
type=\"submit\" onclick=\"javascript:feedEditCancel()\"
|
||||
value=\"Cancel\"></td></tr></table>";
|
||||
|
||||
}
|
||||
|
||||
if ($id == "quickDelFeed") {
|
||||
|
@ -2787,21 +2788,25 @@
|
|||
|
||||
print "</select>";
|
||||
|
||||
print "</td></tr><tr><td colspan=\"2\" align=\"right\">";
|
||||
|
||||
print "<input type=\"submit\"
|
||||
id=\"infobox_submit\"
|
||||
class=\"button\" onclick=\"javascript:qaddFilter()\"
|
||||
disabled=\"true\" value=\"Create\"> ";
|
||||
|
||||
print "<input class=\"button\"
|
||||
type=\"submit\" onclick=\"javascript:closeInfoBox()\"
|
||||
value=\"Cancel\">";
|
||||
|
||||
print "</td></tr></table>";
|
||||
|
||||
print "</form>";
|
||||
|
||||
print "<div align='right'>";
|
||||
|
||||
print "<input type=\"submit\"
|
||||
id=\"infobox_submit\"
|
||||
class=\"button\" onclick=\"qaddFilter()\"
|
||||
disabled=\"true\" value=\"Create\"> ";
|
||||
|
||||
print "<input class=\"button\"
|
||||
type=\"submit\" onclick=\"closeInfoBox()\"
|
||||
value=\"Cancel\">";
|
||||
|
||||
print "</div>";
|
||||
|
||||
// print "</td></tr></table>";
|
||||
|
||||
}
|
||||
|
||||
print "</div>";
|
||||
|
|
|
@ -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) {
|
||||
|
|
3
prefs.js
3
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue