summaryrefslogtreecommitdiff
path: root/modules/system/system.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-24 03:11:34 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-24 03:11:34 +0000
commitbf9c6341231cf2bc17895d54e41bc824eb742b7a (patch)
tree52ee004d1ad1cddf529552462f3e0ab7bf098add /modules/system/system.js
parent03a5563b899bf47d29914c812c5153fd725d6d46 (diff)
downloadbrdo-bf9c6341231cf2bc17895d54e41bc824eb742b7a.tar.gz
brdo-bf9c6341231cf2bc17895d54e41bc824eb742b7a.tar.bz2
#550572 by sun and c960657: Fixed CSS+JS regressions related to form-item-[name].
Diffstat (limited to 'modules/system/system.js')
-rw-r--r--modules/system/system.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/system/system.js b/modules/system/system.js
index 7637109e4..e9c505de4 100644
--- a/modules/system/system.js
+++ b/modules/system/system.js
@@ -8,15 +8,15 @@
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();
+ $('.form-item-update-status-module-2').show();
}
else {
- $('.update-status-module-2-wrapper').hide();
+ $('.form-item-update-status-module-2').hide();
}
// Toggle the display as necessary when the checkbox is clicked.
$('#edit-update-status-module-1').change( function () {
- $('.update-status-module-2-wrapper').toggle();
+ $('.form-item-update-status-module-2').toggle();
})
};
@@ -196,7 +196,7 @@ Drupal.behaviors.machineReadableValue = {
// Build selector for the machine readable name.
var target = '#edit-' + settings.target;
// Build selector for the wrapper element around the target field.
- var wrapper = '.' + settings.target + '-wrapper';
+ var wrapper = '.form-item-' + settings.target;
// Do not process the element if we got an error or the given name and the
// machine readable name are identical or the machine readable name is