first import
This commit is contained in:
22
sites/all/modules/xmlsitemap/xmlsitemap.js
Normal file
22
sites/all/modules/xmlsitemap/xmlsitemap.js
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
(function ($) {
|
||||
|
||||
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);
|
||||
Reference in New Issue
Block a user