add_entry fix

This commit is contained in:
Michael Wain 2024-07-07 04:50:18 +03:00
parent 81b1e781e5
commit 3e2bd20a63

View File

@ -62,7 +62,11 @@ function add_entry() {
}
function edit_submit_entry() {
$.post("/api/remove_entry", "section=actions&entry_id="+($.urlParam("script_id")), function(data, status) {
if ($.urlParam("script_id") != "-1") {
$.post("/api/remove_entry", "section=actions&entry_id="+($.urlParam("script_id")), function(data, status) {
add_entry();
});
} else {
add_entry();
});
}
}