Loop on line 8 is grabbing some selectors that don't have a name attr. Causing an error on line 8 "Uncaught TypeError: Cannot call method 'replace' of undefined".
var default_name = $(this).attr('name').replace(/\[value\]/, '[default]');
This error is stopping other javascript on the page to load. Such as ckeditor on field_body.
Provided patch to add a check if the field name is defined.
var input_field = $(this).attr('name');
if(input_field === undefined ) {
return false;
}
var default_name = input_field.replace(/\[value\]/, '[default]');
Comments
Comment #1
travelerttComment #2
travelerttComment #3
travelerttComment #4
travelerttComment #5
damienmckennaThis is exactly the same as #2088299: Open graph breaks CKEditor 4.1 only the patch takes the opposite approach.
Comment #6
damienmckennaA slight tweak for code compliance, and added a comment.
Comment #7
damienmckennaCommitted. Thanks!