Permalink
Browse files

Fix a couple of linting errors

  • Loading branch information...
philwareham committed Jan 11, 2019
1 parent fcc8005 commit eeca21339be6cd9a2961e436ba53c487f89cfbc8
Showing with 6 additions and 4 deletions.
  1. +6 −4 textpattern/textpattern.js
@@ -1,3 +1,5 @@
/* eslint-env jquery */

/*
* Textpattern Content Management System
* https://textpattern.com/
@@ -417,14 +419,14 @@ jQuery.fn.txpMultiEditForm = function (method, opt) {

function setCookie(name, value, days)
{
var expires = '';

if (days) {
var date = new Date();

date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));

var expires = '; expires=' + date.toGMTString();
} else {
var expires = '';
expires = '; expires=' + date.toGMTString();
}

document.cookie = name + '=' + value + expires + '; path=/';
@@ -1204,7 +1206,7 @@ function txpAsyncLink(event, txpEvent)
});

return this;
};
}

/**
* Creates a UI dialog.

0 comments on commit eeca213

Please sign in to comment.