Hi all,
Pages based on the BlogEntry template have a large lump of JavaScript code inserted right after the body tag. Where the heck does this come from?
The code looks like this:
<script type="text/javascript" src="http://www.XXXX.se/jsparty/behaviour.js?m=1236331738"></script><script type="text/javascript" src="http://www.typodesign.se/jsparty/prototype.js?m=1236331861"></script><script type="text/javascript" src="http://www.typodesign.se/jsparty/scriptaculous/effects.js?m=1236331863"></script><script type="text/javascript" src="http://www.typodesign.se/cms/javascript/PageCommentInterface.js?m=1236332021"></script><script type="text/javascript" src="http://www.typodesign.se/sapphire/javascript/Validator.js?m=1236331701"></script><script type="text/javascript" src="http://www.typodesign.se/jsparty/prototype_improvements.js?m=1236331862"></script><script type="text/javascript" src="http://www.typodesign.se/sapphire/javascript/i18n.js?m=1236331699"></script><script type="text/javascript" src="http://www.typodesign.se/cms/javascript/lang/en_US.js?m=1236332020"></script><script type="text/javascript" src="http://www.typodesign.se/sapphire/javascript/lang/en_US.js?m=1236331699"></script><script type="text/javascript">//<![CDATA[
Behaviour.register({
'#PageCommentInterface_Form_PostCommentForm': {
validate : function(fromAnOnBlur) {
initialiseForm(this, fromAnOnBlur);
var error = hasHadFormError();
if(!error && fromAnOnBlur) clearErrorMessage(fromAnOnBlur);
return !error;
},
onsubmit : function() {
if(typeof this.bypassValidation == 'undefined' || !this.bypassValidation) return this.validate();
}
},
'#PageCommentInterface_Form_PostCommentForm input' : {
initialise: function() {
if(!this.old_onblur) this.old_onblur = function() { return true; }
if(!this.old_onfocus) this.old_onfocus = function() { return true; }
},
onblur : function() {
if(this.old_onblur()) {
// Don't perform instant validation for CalendarDateField fields; it creates usability wierdness.
if(this.parentNode.className.indexOf('calendardate') == -1 || this.value) {
return $('PageCommentInterface_Form_PostCommentForm').validate(this);
} else {
return true;
}
}
}
},
'#PageCommentInterface_Form_PostCommentForm select' : {
initialise: function() {
if(!this.old_onblur) this.old_onblur = function() { return true; }
},
onblur : function() {
if(this.old_onblur()) {
return $('PageCommentInterface_Form_PostCommentForm').validate(this);
}
}
}
});
//]]></script>