Fixed problems with checks for leaving pages without saving.
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 29 Feb 2016 21:52:42 +0000 (16:52 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 29 Feb 2016 21:52:42 +0000 (16:52 -0500)
views/admin/management/index.html
views/admin/member/memberEdit.html
views/admin/member/memberInfo.html

index c804501..c7f380b 100644 (file)
             // If submit is required and we're laving the page, alert the user
             $(window).bind('beforeunload', function() {
                 if (glmSubmitRequired) {
-alert(1);                    
-                    var message = 'Are you sure you want to leave?';
-                    e.returnValue = message;
-                    return message;
+                    return true;
                 }
-                return;
             });
 
         });
index d3d9e76..b576dbd 100644 (file)
             // If submit is required and we're laving the page, alert the user
             $(window).bind('beforeunload', function() {
                 if (glmSubmitRequired) {
-                    return 'Are you sure you want to leave?';
+                    return true;
                 }
-                return '';
             });
             
 
index 6f69703..7a7c97c 100644 (file)
             // If submit is required and we're laving the page, alert the user
             $(window).bind('beforeunload', function() {
                 if (glmSubmitRequired) {
-                    return 'Are you sure you want to leave?';
+                    return true;
                 }
-                return '';
             });