Commit 106b3517 authored by rteijeiro's avatar rteijeiro Committed by RenatoG
Browse files

Issue #2490334 by pguillard, rteijeiro, slasher13, amateescu, RenatoG: XML sitemap ESLint errors

parent bf10f1a2
/**
* @file
* Default JavaScript file for XML sitemap.
*/
(function($, Drupal) {
(function ($, Drupal) {
"use strict";
'use strict';
Drupal.behaviors.xmlsitemapFieldsetSummaries = {
attach: function(context) {
$('fieldset#edit-xmlsitemap', context).drupalSetSummary(function(context) {
attach: function (context) {
$('fieldset#edit-xmlsitemap', context).drupalSetSummary(function (context) {
var vals = [];
// Inclusion select field.
......
(function($) {
/**
* @file
* JavaScript file for XML sitemap.
*/
(function ($) {
'use strict';
$.tablesorter.addParser({
// set a unique id
// Set a unique id.
id: 'changefreq',
is: function(s) {
is: function (s) {
return false;
},
format: function(s) {
format: function (s) {
switch (s) {
case 'always':
return 0;
case 'hourly':
return 1;
case 'daily':
return 2;
case 'weekly':
return 3;
case 'monthly':
return 4;
case 'yearly':
return 5;
default:
return 6;
}
......@@ -27,7 +40,7 @@
type: 'numeric'
});
$(document).ready(function() {
$(document).ready(function () {
// Set some location variables.
var h1 = $('h1');
h1.text(h1.text() + ': ' + location);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment