mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 18:21:28 +00:00
fix unneeded submit of create filter form
This commit is contained in:
33
backend.php
33
backend.php
@@ -1567,9 +1567,9 @@
|
|||||||
|
|
||||||
print "<div align='center'>
|
print "<div align='center'>
|
||||||
<input type=\"submit\" class=\"button\"
|
<input type=\"submit\" class=\"button\"
|
||||||
onclick=\"feedEditSave()\" value=\"Save\">
|
onclick=\"return feedEditSave()\" value=\"Save\">
|
||||||
<input type='submit' class='button'
|
<input type='submit' class='button'
|
||||||
onclick=\"feedEditCancel()\" value=\"Cancel\"></div>";
|
onclick=\"return feedEditCancel()\" value=\"Cancel\"></div>";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2667,8 +2667,9 @@
|
|||||||
id=\"fadd_submit_btn\" disabled=\"true\"
|
id=\"fadd_submit_btn\" disabled=\"true\"
|
||||||
type=\"submit\" onclick=\"javascript:qafAdd()\" value=\"Subscribe\">
|
type=\"submit\" onclick=\"javascript:qafAdd()\" value=\"Subscribe\">
|
||||||
<input class=\"button\"
|
<input class=\"button\"
|
||||||
type=\"submit\" onclick=\"javascript:closeInfoBox()\"
|
type=\"submit\" onclick=\"javascript:feedEditCancel()\"
|
||||||
value=\"Cancel\"></td></tr></table>";
|
value=\"Cancel\"></td></tr></table>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($id == "quickDelFeed") {
|
if ($id == "quickDelFeed") {
|
||||||
@@ -2787,21 +2788,25 @@
|
|||||||
|
|
||||||
print "</select>";
|
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 "</td></tr></table>";
|
||||||
|
|
||||||
print "</form>";
|
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>";
|
print "</div>";
|
||||||
|
|||||||
@@ -969,6 +969,7 @@ function closeInfoBox() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enableHotkeys();
|
enableHotkeys();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1032,6 +1033,7 @@ function qaddFilter() {
|
|||||||
xmlhttp.onreadystatechange=infobox_submit_callback;
|
xmlhttp.onreadystatechange=infobox_submit_callback;
|
||||||
xmlhttp.send(null);
|
xmlhttp.send(null);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleSubmitNotEmpty(e, submit_id) {
|
function toggleSubmitNotEmpty(e, submit_id) {
|
||||||
|
|||||||
3
prefs.js
3
prefs.js
@@ -661,6 +661,7 @@ function feedEditCancel() {
|
|||||||
selectPrefRows('feed', false); // cleanup feed selection
|
selectPrefRows('feed', false); // cleanup feed selection
|
||||||
|
|
||||||
active_feed = false;
|
active_feed = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function feedCatEditCancel() {
|
function feedCatEditCancel() {
|
||||||
@@ -704,6 +705,8 @@ function feedEditSave() {
|
|||||||
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||||
xmlhttp.send(query);
|
xmlhttp.send(query);
|
||||||
|
|
||||||
|
return false;
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("feedEditSave", e);
|
exception_error("feedEditSave", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user