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.

CommentFileSizeAuthor
#1 jquery16-1183358-1.patch581 bytesmshick

Comments

mshick’s picture

Status: Needs review » Patch (to be ported)
StatusFileSize
new581 bytes

I rolled a patch for this. It seems like a good, backward compatible solution. I've tested with jQuery 1.7 and 1.3.2.

OneExtra’s picture

Thanks a lot! Worked for me.