Hi guys
Im getting a very odd issue when using Safari (Firefox, Chrome and IE seem to be fine). If i login to the cms, then jump from section to section (Files & Images, Custom ModelAdmin), sometimes I will get a block of JS appear at the top:
his.validate(); } }, '#Form_EditForm 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 $('Form_EditForm').validate(this); } else { return true; } } } }, '#Form_EditForm textarea' : { 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()) { return $('Form_EditForm').validate(this); } } }, '#Form_EditForm select' : { initialise: function() { if(!this.old_onblur) this.old_onblur = function() { return true; } }, onblur : function() { if(this.old_onblur()) { return $('Form_EditForm').validate(this); } } } }); //]]>
I have tracked this down to being inside sapphire/forms/Validator.php, but I cant figure out why it would print to the browser.
Anyone run into this issue or have any ideas?
Screenshot attached.
Thanks
Aaron