From bf9c6341231cf2bc17895d54e41bc824eb742b7a Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 24 Aug 2009 03:11:34 +0000 Subject: #550572 by sun and c960657: Fixed CSS+JS regressions related to form-item-[name]. --- modules/system/system-rtl.css | 5 ----- modules/system/system.css | 5 ----- modules/system/system.js | 8 ++++---- 3 files changed, 4 insertions(+), 14 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system-rtl.css b/modules/system/system-rtl.css index 511143a04..21563a6ca 100644 --- a/modules/system/system-rtl.css +++ b/modules/system/system-rtl.css @@ -66,11 +66,6 @@ html.js fieldset.collapsed legend a { background-position: 98% 50%; } -div.teaser-button-wrapper { - float: left; - padding-right: 0; - padding-left: 5%; -} .teaser-checkbox div.form-item { float: left; margin: 0 0 0 5%; diff --git a/modules/system/system.css b/modules/system/system.css index 531ae65ed..fe9fa5d76 100644 --- a/modules/system/system.css +++ b/modules/system/system.css @@ -409,11 +409,6 @@ a.tabledrag-handle-hover .handle { .teaser-checkbox { padding-top: 1px; } -div.teaser-button-wrapper { - float: right; /* LTR */ - padding-right: 5%; /* LTR */ - margin: 0; -} .teaser-checkbox div.form-item { float: right; /* LTR */ margin: 0 5% 0 0; /* LTR */ 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 -- cgit v1.2.3