diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-11-05 19:47:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-11-05 19:47:20 +0000 |
commit | ae85abb9833e0600afa0595a912be8065f8bccab (patch) | |
tree | 93940d8f28f7f5c63c07ecab9d94bdf20544fbbe /modules/comment/comment-node-form.js | |
parent | e920fe34ef16d30af0f4fb8e33b565e572ab30c8 (diff) | |
download | brdo-ae85abb9833e0600afa0595a912be8065f8bccab.tar.gz brdo-ae85abb9833e0600afa0595a912be8065f8bccab.tar.bz2 |
- Patch #955610 by casey: impossible to have multiple node forms on one page due to fixed IDs.
Diffstat (limited to 'modules/comment/comment-node-form.js')
-rw-r--r-- | modules/comment/comment-node-form.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/comment/comment-node-form.js b/modules/comment/comment-node-form.js index 59edf6d48..3550d6ee7 100644 --- a/modules/comment/comment-node-form.js +++ b/modules/comment/comment-node-form.js @@ -4,24 +4,25 @@ Drupal.behaviors.commentFieldsetSummaries = { attach: function (context) { - $('fieldset#edit-comment-settings', context).drupalSetSummary(function (context) { - return Drupal.checkPlain($('input:checked', context).next('label').text()); + $('fieldset.comment-node-settings-form', context).drupalSetSummary(function (context) { + return Drupal.checkPlain($('.form-item-comment input:checked', context).next('label').text()); }); + // Provide the summary for the node type form. - $('fieldset#edit-comment', context).drupalSetSummary(function(context) { + $('fieldset.comment-node-type-settings-form', context).drupalSetSummary(function(context) { var vals = []; // Default comment setting. - vals.push($("select[name='comment'] option:selected", context).text()); + vals.push($(".form-item-comment select option:selected", context).text()); // Threading. - var threading = $("input[name='comment_default_mode']:checked", context).next('label').text(); + var threading = $(".form-item-comment-default-mode input:checked", context).next('label').text(); if (threading) { vals.push(threading); } // Comments per page. - var number = $("select[name='comment_default_per_page'] option:selected", context).val(); + var number = $(".form-item-comment-default-per-page select option:selected", context).val(); vals.push(Drupal.t('@number comments per page', {'@number': number})); return Drupal.checkPlain(vals.join(', ')); |