Merge pull request #789 from ljm42/patch-4

SysDevs - fix warn if leave page without saving
This commit is contained in:
tom mortensen
2021-02-19 17:03:29 -08:00
committed by GitHub
+1 -1
View File
@@ -24,7 +24,7 @@ table tr td.thin{line-height:8px;height:8px}
<script>
$(window).bind('beforeunload',function(e){
// warn user if they leave the page with unsaved changes
if (!$('#applycfg').prop('disabled')) return "You have unsaved changes";
if ($('#applycfg') && $('#applycfg').is(":visible") && !$('#applycfg').prop('disabled')) return "You have unsaved changes";
});
$(function(){
$('#t1').load('/webGui/include/SysDevs.php',{table:'t1'});