From 99833c6289339e863a6e3b04432bf8f335351736 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 2 Dec 2009 15:09:16 +0000 Subject: - Patch #558928 by brandonojc, mgifford, Owen Barton, Everett Zufelt: improved consistency, flexibility and accessibility of form element labels. --- modules/comment/comment-node-form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/comment') 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); } -- cgit v1.2.3