From 5c7f2d7a66ff756f1114dfdaabe7bbbf669a3d4c Mon Sep 17 00:00:00 2001 From: Dries Date: Tue, 8 Jan 2013 11:48:16 -0500 Subject: [PATCH] =?UTF-8?q?-=20Issue=20#1882252=20by=20G=C3=A1bor=20Hojtsy?= =?UTF-8?q?:=20Fixed=20Regression:=20Block=20visibility=20summaries=20are?= =?UTF-8?q?=20broken.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/modules/block/block.js | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/core/modules/block/block.js b/core/modules/block/block.js index 96ce31034ccc..a37c07d9fe33 100644 --- a/core/modules/block/block.js +++ b/core/modules/block/block.js @@ -26,12 +26,12 @@ Drupal.behaviors.blockSettingsSummary = { return $.map(vals, $.trim).join(', '); } - $('#edit-node-type').drupalSetSummary(checkboxesSummary); - $('#edit-language').drupalSetSummary(checkboxesSummary); - $('#edit-role').drupalSetSummary(checkboxesSummary); + $('#edit-visibility-node-type').drupalSetSummary(checkboxesSummary); + $('#edit-visibility-language').drupalSetSummary(checkboxesSummary); + $('#edit-visibility-role').drupalSetSummary(checkboxesSummary); - $('#edit-path').drupalSetSummary(function (context) { - var $pages = $(context).find('textarea[name="pages"]'); + $('#edit-visibility-path').drupalSetSummary(function (context) { + var $pages = $(context).find('textarea[name="visibility[path][pages]"]'); if (!$pages.val()) { return Drupal.t('Not restricted'); } @@ -39,16 +39,6 @@ Drupal.behaviors.blockSettingsSummary = { return Drupal.t('Restricted to certain pages'); } }); - - $('#edit-user').drupalSetSummary(function (context) { - var $radio = $(context).find('input[name="custom"]:checked'); - if ($radio.val() === 0) { - return Drupal.t('Not customizable'); - } - else { - return $radio.next('label').text(); - } - }); } };