summaryrefslogtreecommitdiff
path: root/modules/system/system.js
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-30 19:32:19 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-30 19:32:19 +0000
commit6ef2ddae21279e50db21fb816442470b449cd1d1 (patch)
tree0e6b5977af05cadc9434eea006d25bd06ad9c37b /modules/system/system.js
parentd455a8d9213962114d25bbade369cc7fe60239f6 (diff)
downloadbrdo-6ef2ddae21279e50db21fb816442470b449cd1d1.tar.gz
brdo-6ef2ddae21279e50db21fb816442470b449cd1d1.tar.bz2
- Patch #199774 by dww, ugerhard, brianV, John Morahan: make it more 'natural' to enable security notification e-mails.
Diffstat (limited to 'modules/system/system.js')
-rw-r--r--modules/system/system.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/system/system.js b/modules/system/system.js
index 7bea58dee..a0f712aec 100644
--- a/modules/system/system.js
+++ b/modules/system/system.js
@@ -2,6 +2,25 @@
(function ($) {
/**
+ * Show/hide the 'Email site administrator when updates are available' checkbox
+ * on the install page.
+ */
+Drupal.hideEmailAdministratorCheckbox = function () {
+ // Make sure the secondary box is shown / hidden as necessary on page load.
+ if ($('#edit-update-status-module-1').is(':checked')) {
+ $('.update-status-module-2-wrapper').show();
+ }
+ else {
+ $('.update-status-module-2-wrapper').hide();
+ }
+
+ // Toggle the display as necessary when the checkbox is clicked.
+ $('#edit-update-status-module-1').change( function () {
+ $('.update-status-module-2-wrapper').toggle();
+ })
+};
+
+/**
* Internal function to check using Ajax if clean URLs can be enabled on the
* settings page.
*
@@ -128,4 +147,6 @@ Drupal.behaviors.poweredByPreview = {
}
};
+
})(jQuery);
+