summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2015-10-13 00:33:01 -0400
committerDavid Rothstein <drothstein@gmail.com>2015-10-13 00:33:01 -0400
commitd3e02219e85bc9335aef13ad7cb668025a7cba11 (patch)
tree825e46dceea774dcc8d3f86b073db967d92a866f /modules
parent63358dff31f8ecdd9eb00a61de1122123ff6f1d7 (diff)
downloadbrdo-d3e02219e85bc9335aef13ad7cb668025a7cba11.tar.gz
brdo-d3e02219e85bc9335aef13ad7cb668025a7cba11.tar.bz2
Issue #2513646 by pwolanin, naveenvalecha, alexpott: Role name is unescaped on block admin via JS
Diffstat (limited to 'modules')
-rw-r--r--modules/block/block.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/block/block.js b/modules/block/block.js
index acd3f5ae2..721dedf12 100644
--- a/modules/block/block.js
+++ b/modules/block/block.js
@@ -24,7 +24,7 @@ Drupal.behaviors.blockSettingsSummary = {
$('fieldset#edit-node-type', context).drupalSetSummary(function (context) {
var vals = [];
$('input[type="checkbox"]:checked', context).each(function () {
- vals.push($.trim($(this).next('label').text()));
+ vals.push($.trim($(this).next('label').html()));
});
if (!vals.length) {
vals.push(Drupal.t('Not restricted'));
@@ -35,7 +35,7 @@ Drupal.behaviors.blockSettingsSummary = {
$('fieldset#edit-role', context).drupalSetSummary(function (context) {
var vals = [];
$('input[type="checkbox"]:checked', context).each(function () {
- vals.push($.trim($(this).next('label').text()));
+ vals.push($.trim($(this).next('label').html()));
});
if (!vals.length) {
vals.push(Drupal.t('Not restricted'));
@@ -49,7 +49,7 @@ Drupal.behaviors.blockSettingsSummary = {
return Drupal.t('Not customizable');
}
else {
- return $radio.next('label').text();
+ return $radio.next('label').html();
}
});
}