Proposal to move success message to js alert (#95)

* Proposal to move success message to js alert

https://github.com/Nachtzuster/BirdNET-Pi/issues/92

* Align with basic

* Fix advanced.php

https://github.com/Nachtzuster/BirdNET-Pi/pull/95
This commit is contained in:
Alexandre
2024-06-15 14:25:09 +02:00
committed by GitHub
parent cafbf5ab1e
commit 0ab46e3637
2 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -723,10 +723,9 @@ https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}
<button type="submit" id="basicformsubmit" onclick="if(document.getElementById('basicform').checkValidity()){this.innerHTML = 'Updating... please wait.';this.classList.add('disabled')}" name="view" value="Settings">
<?php
if(isset($_GET['status'])){
echo "Success!";
} else {
echo "Update Settings";
echo '<script>alert("Settings successfully updated");</script>';
}
echo "Update Settings";
?>
</button></div>
</form>