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