diff options
author | RedMatrix <info@friendica.com> | 2015-01-02 12:10:27 +1100 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2015-01-02 12:10:27 +1100 |
commit | db811ca975e6880ff6540a61c216e7e2432ea75e (patch) | |
tree | cd643f63d36936d7b9d475547cf6acb58df5aaff /view | |
parent | b54235234fdba83bc4505672e65ad94fbdbccb62 (diff) | |
parent | 9557908875af76d167797a36e980798349fc63b5 (diff) | |
download | volse-hubzilla-db811ca975e6880ff6540a61c216e7e2432ea75e.tar.gz volse-hubzilla-db811ca975e6880ff6540a61c216e7e2432ea75e.tar.bz2 volse-hubzilla-db811ca975e6880ff6540a61c216e7e2432ea75e.zip |
Merge pull request #804 from pafcu/areyousure
Warn about unsaved settings using jquery.areyousure
Diffstat (limited to 'view')
-rw-r--r-- | view/js/mod_admin.js | 3 | ||||
-rw-r--r-- | view/js/mod_profiles.js | 3 | ||||
-rw-r--r-- | view/js/mod_settings.js | 1 | ||||
-rw-r--r-- | view/php/theme_init.php | 1 |
4 files changed, 8 insertions, 0 deletions
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, diff --git a/view/php/theme_init.php b/view/php/theme_init.php index f28f9aa8d..33b7e87dc 100644 --- a/view/php/theme_init.php +++ b/view/php/theme_init.php @@ -44,6 +44,7 @@ head_add_js('docready.js'); head_add_js('library/colorbox/jquery.colorbox-min.js'); head_add_js('library/bootstrap-tagsinput/bootstrap-tagsinput.js'); +head_add_js('library/jquery.AreYouSure/jquery.are-you-sure.js'); /** * Those who require this feature will know what to do with it. * Those who don't, won't. |