From 1196a1ed7d4c82d7322caad6d6c2c46f9978cf42 Mon Sep 17 00:00:00 2001 From: Roshan Sameer Date: Fri, 1 Jun 2018 14:49:30 +0545 Subject: [PATCH 1/2] Fix - nav error while saving setting form --- assets/js/admin/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/admin/settings.js b/assets/js/admin/settings.js index ae68c4a859c..886e008bda4 100644 --- a/assets/js/admin/settings.js +++ b/assets/js/admin/settings.js @@ -85,7 +85,7 @@ } }); - $( '.submit input' ).click( function() { + $( '.submit button' ).click( function() { window.onbeforeunload = ''; }); }); From b73930a0e9e73b3cd85d672a5b9eeff988a74973 Mon Sep 17 00:00:00 2001 From: Roshan Sameer Date: Sat, 2 Jun 2018 01:14:03 +0545 Subject: [PATCH 2/2] Use :input so it works for both types --- assets/js/admin/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/admin/settings.js b/assets/js/admin/settings.js index 886e008bda4..cd8686097ca 100644 --- a/assets/js/admin/settings.js +++ b/assets/js/admin/settings.js @@ -85,7 +85,7 @@ } }); - $( '.submit button' ).click( function() { + $( '.submit :input' ).click( function() { window.onbeforeunload = ''; }); });