diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-02 15:09:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-02 15:09:16 +0000 |
commit | 99833c6289339e863a6e3b04432bf8f335351736 (patch) | |
tree | 0cf0a9d143d3ecd9c4bca17129cc3f241e376968 /modules/comment/comment-node-form.js | |
parent | 92760988b9decb01831ba89bcc54056a702c3836 (diff) | |
download | brdo-99833c6289339e863a6e3b04432bf8f335351736.tar.gz brdo-99833c6289339e863a6e3b04432bf8f335351736.tar.bz2 |
- Patch #558928 by brandonojc, mgifford, Owen Barton, Everett Zufelt: improved consistency, flexibility and accessibility of form element labels.
Diffstat (limited to 'modules/comment/comment-node-form.js')
-rw-r--r-- | modules/comment/comment-node-form.js | 4 |
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); } |