mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-09-06 00:51:22 +00:00
Initial commit
This commit is contained in:
commit
c5e731d8ae
2773 changed files with 600767 additions and 0 deletions
32
drupal7/web/modules/comment/comment-node-form.js
Normal file
32
drupal7/web/modules/comment/comment-node-form.js
Normal file
|
@ -0,0 +1,32 @@
|
|||
|
||||
(function ($) {
|
||||
|
||||
Drupal.behaviors.commentFieldsetSummaries = {
|
||||
attach: function (context) {
|
||||
$('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.comment-node-type-settings-form', context).drupalSetSummary(function(context) {
|
||||
var vals = [];
|
||||
|
||||
// Default comment setting.
|
||||
vals.push($(".form-item-comment select option:selected", context).text());
|
||||
|
||||
// Threading.
|
||||
var threading = $(".form-item-comment-default-mode input:checked", context).next('label').text();
|
||||
if (threading) {
|
||||
vals.push(threading);
|
||||
}
|
||||
|
||||
// Comments per page.
|
||||
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(', '));
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery);
|
Loading…
Add table
Add a link
Reference in a new issue