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
@@ -580,10 +580,9 @@ foreach($formats as $format){
<button onclick="if(<?php print($newconfig['PRIVACY_THRESHOLD']);?> != document.getElementById('privacy_threshold').value){return confirm('This will take about 90 seconds.')} collectrtspUrls();" type="submit" name="submit" value="advanced">
<?php
if(isset($_GET['submit'])){
echo "Success!";
} else {
echo "Update Settings";
echo '<script>alert("Settings successfully updated");</script>';
}
echo "Update Settings";
?>
</button></div>
</form>