2013-09-27 15:34:47 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Attaches comment behaviors to the entity form.
|
|
|
|
*/
|
|
|
|
|
|
|
|
(function ($) {
|
|
|
|
|
2014-01-27 21:41:32 +00:00
|
|
|
"use strict";
|
2013-09-27 15:34:47 +00:00
|
|
|
|
2014-01-27 21:41:32 +00:00
|
|
|
Drupal.behaviors.commentFieldsetSummaries = {
|
|
|
|
attach: function (context) {
|
|
|
|
var $context = $(context);
|
|
|
|
$context.find('fieldset.comment-entity-settings-form').drupalSetSummary(function (context) {
|
|
|
|
return Drupal.checkPlain($(context).find('.form-item-comment input:checked').next('label').text());
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
2013-09-27 15:34:47 +00:00
|
|
|
|
|
|
|
})(jQuery);
|