groups/modules/commons/commons_topics/js/commons_topics.js
Marton Kiss de51d9b4f0 Upgrade commons modules to upstream version
Upgrade the commons modules to version 3.15, see release notes
here: https://www.drupal.org/node/2292227

The upgrade contains the following custom patches:
- 0001-utility-links-block-install-theme.patch

Change-Id: Ia3f385d56171d3ea0983fb2c39916dd176e0af6d
2014-07-21 15:34:31 +02:00

19 lines
444 B
JavaScript

(function ($) {
Drupal.behaviors.topicsFieldsetSummaries = {
attach: function (context) {
$('fieldset.topics-form-topics', context).drupalSetSummary(function (context) {
var topics = $('.form-item-field-topics-und input.form-text', context).val();
if (topics) {
return Drupal.t('Topics: @topics', { '@topics': topics });
}
else {
return Drupal.t('No topics');
}
});
}
};
})(jQuery);