Revision 40f146c5
Added by Phil Davis over 9 years ago
src/usr/local/www/diag_backup.php | ||
---|---|---|
799 | 799 |
}); |
800 | 800 |
|
801 | 801 |
$('#conffile').change(function () { |
802 |
$('.restore').prop('disabled', false); |
|
802 |
if (document.getElementById("conffile").value) { |
|
803 |
$('.restore').prop('disabled', false); |
|
804 |
} else { |
|
805 |
$('.restore').prop('disabled', true); |
|
806 |
} |
|
803 | 807 |
}); |
804 | 808 |
// ---------- On initial page load ------------------------------------------------------------ |
805 | 809 |
|
Also available in: Unified diff
Only enable Restore Configuration if a file is selected
If the user clicks "Choose File" and then cancels the file selection dialog, disable the "Restore Configuration" button.