2021-07-27 14:46:32 +02:00
|
|
|
/**
|
|
|
|
* @file
|
2022-07-21 11:40:40 +02:00
|
|
|
* Default JavaScript file for XML Sitemap.
|
2021-07-27 14:46:32 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
(function ($, Drupal) {
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
Drupal.behaviors.xmlsitemapFieldsetSummaries = {
|
|
|
|
attach: function (context) {
|
|
|
|
$('fieldset#edit-xmlsitemap', context).drupalSetSummary(function (context) {
|
|
|
|
var vals = [];
|
|
|
|
|
|
|
|
// Inclusion select field.
|
|
|
|
var status = $('#edit-xmlsitemap-status option:selected').text();
|
|
|
|
vals.push(Drupal.t('Inclusion: @value', {'@value': status}));
|
|
|
|
|
|
|
|
// Priority select field.
|
|
|
|
var priority = $('#edit-xmlsitemap-priority option:selected').text();
|
|
|
|
vals.push(Drupal.t('Priority: @value', {'@value': priority}));
|
|
|
|
|
|
|
|
return vals.join('<br />');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
})(jQuery, Drupal);
|