From 9557908875af76d167797a36e980798349fc63b5 Mon Sep 17 00:00:00 2001 From: Stefan Parviainen Date: Thu, 1 Jan 2015 12:32:15 +0100 Subject: Warn about unsaved settings using jquery.areyousure --- view/js/mod_admin.js | 3 +++ view/js/mod_profiles.js | 3 +++ view/js/mod_settings.js | 1 + 3 files changed, 7 insertions(+) create mode 100644 view/js/mod_admin.js create mode 100644 view/js/mod_profiles.js (limited to 'view/js') diff --git a/view/js/mod_admin.js b/view/js/mod_admin.js new file mode 100644 index 000000000..aad2ca902 --- /dev/null +++ b/view/js/mod_admin.js @@ -0,0 +1,3 @@ +$(document).ready(function() { + $('form').areYouSure(); // Warn user about unsaved settings +}); diff --git a/view/js/mod_profiles.js b/view/js/mod_profiles.js new file mode 100644 index 000000000..aad2ca902 --- /dev/null +++ b/view/js/mod_profiles.js @@ -0,0 +1,3 @@ +$(document).ready(function() { + $('form').areYouSure(); // Warn user about unsaved settings +}); diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js index 87c8c3a2b..ff859936a 100644 --- a/view/js/mod_settings.js +++ b/view/js/mod_settings.js @@ -2,6 +2,7 @@ var ispublic = aStr['everybody'] ; $(document).ready(function() { + $('form').areYouSure(); // Warn user about unsaved settings $("a#settings-default-perms-menu").colorbox({ 'inline' : true, -- cgit v1.2.3