mirror of
https://github.com/unraid/webgui.git
synced 2026-04-29 22:39:20 -05:00
Merge pull request #789 from ljm42/patch-4
SysDevs - fix warn if leave page without saving
This commit is contained in:
@@ -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'});
|
||||
|
||||
Reference in New Issue
Block a user