fix unneeded submit of create filter form

master
Andrew Dolgov 19 years ago
parent 5a4ef316b7
commit c14b556666

@ -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,20 +2788,24 @@
print "</select>";
print "</td></tr><tr><td colspan=\"2\" align=\"right\">";
print "</td></tr></table>";
print "</form>";
print "<div align='right'>";
print "<input type=\"submit\"
id=\"infobox_submit\"
class=\"button\" onclick=\"javascript:qaddFilter()\"
class=\"button\" onclick=\"qaddFilter()\"
disabled=\"true\" value=\"Create\"> ";
print "<input class=\"button\"
type=\"submit\" onclick=\"javascript:closeInfoBox()\"
type=\"submit\" onclick=\"closeInfoBox()\"
value=\"Cancel\">";
print "</td></tr></table>";
print "</div>";
print "</form>";
// print "</td></tr></table>";
}

@ -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) {

@ -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…
Cancel
Save