xmlsitemap.js 619 B

12345678910111213141516171819202122
  1. (function ($) {
  2. Drupal.behaviors.xmlsitemapFieldsetSummaries = {
  3. attach: function (context) {
  4. $('fieldset#edit-xmlsitemap', context).drupalSetSummary(function (context) {
  5. var vals = [];
  6. // Inclusion select field.
  7. var status = $('#edit-xmlsitemap-status option:selected').text();
  8. vals.push(Drupal.t('Inclusion: @value', { '@value': status }));
  9. // Priority select field.
  10. var priority = $('#edit-xmlsitemap-priority option:selected').text();
  11. vals.push(Drupal.t('Priority: @value', { '@value': priority }));
  12. return vals.join('<br />');
  13. });
  14. }
  15. };
  16. })(jQuery);