I don't know if you guys will care about this at all, but it is a small fix so i thought i would mention it.
I recently updated my jQuery version to 1.6.1 despite the fact that this is most likely unsupported.
I encountered one small issue with the CCK module which resided in the content.js file.
I just changed the last line of the jQuery.fn.contentPopulateOptions function from this:
$(this)
.html(html)
.attr('disabled', disabled ? 'disabled' : '');
to this:
$(this).html(html);
if (disabled)
$(this).attr('disabled', 'disabled');
else
$(this).removeAttr('disabled');
The reason is that that [the new] jQuery does not remove the attribute when you set it's value to an empty string, so you end up with something like this: <input disabled='' ... > which is still disabled.
This was effecting the ability to add fields to a content type.
Thanks,
Hope that helps someone.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | jquery16-1183358-1.patch | 581 bytes | mshick |
Comments
Comment #1
mshick commentedI rolled a patch for this. It seems like a good, backward compatible solution. I've tested with jQuery 1.7 and 1.3.2.
Comment #2
OneExtra commentedThanks a lot! Worked for me.