Commit 5c7f2d7a authored by Dries's avatar Dries

- Issue #1882252 by Gábor Hojtsy: Fixed Regression: Block visibility summaries are broken.

parent 595459b3
......@@ -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();
}
});
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment