Hello,
I am having an issue when saving a template as a JavaScript type.
Essentially, when saving the template with the following:
function setCookie(NameOfCookie, value) {
var exdate=new Date();
exdate.setDate(exdate.getDate() + 1);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
[removed] = NameOfCookie + "=" + c_value;
}I get “HTTP 501 Not Implemented/HTTP 505 Version Not Supported”
However, if I just strip it down to:
function setCookie(NameOfCookie, value) {
}It saves just fine.
Any ideas?
My My ExpressionEngine build is 2.2.1