summaryrefslogtreecommitdiff
path: root/modules/comment/comment-node-form.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment-node-form.js')
-rw-r--r--modules/comment/comment-node-form.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment-node-form.js b/modules/comment/comment-node-form.js
index 0f51884a2..471cb106c 100644
--- a/modules/comment/comment-node-form.js
+++ b/modules/comment/comment-node-form.js
@@ -5,7 +5,7 @@
Drupal.behaviors.commentFieldsetSummaries = {
attach: function (context) {
$('fieldset#edit-comment-settings', context).setSummary(function (context) {
- return Drupal.checkPlain($('input:checked', context).parent().text());
+ return Drupal.checkPlain($('input:checked', context).next('label').text());
});
// Provide the summary for the node type form.
$('fieldset#edit-comment', context).setSummary(function(context) {
@@ -15,7 +15,7 @@ Drupal.behaviors.commentFieldsetSummaries = {
vals.push($("select[name='comment'] option:selected", context).text());
// Threading.
- var threading = $("input[name='comment_default_mode']:checked", context).parent().text();
+ var threading = $("input[name='comment_default_mode']:checked", context).next('label').text();
if (threading) {
vals.push(threading);
}