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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user