I don't know why there *is* an overridden AHAH.js in the ec_common module, nor what the diffed patch does, exactly, but it solves this problem:

The AHAH.js given with ecommerce causes a problem where image uploaded into ImageField cannot be removed by clicking Remove button. Similarly Upload button also fails. There is an error shown in Firebug console which leads to AHAH.js.

I've attached the diff below, actual full file is also attached for those suffering from this problem and don't know how to apply the patch. This diff is against 6.x-4.0-rc11, I've not yet tried out the dev version, since I don't know whether it is ready or not.

CommentFileSizeAuthor
ahah.js.txt10.01 KBdhirajgupta
ecommerce_ahah_js.patch2.08 KBdhirajgupta

Comments

gordon’s picture

Version: 6.x-4.0-rc11 » 6.x-4.x-dev
Status: Active » Fixed

This code was here to help with some of the more advanced JS requirements and was going to be submitted into Drupal 7, However @merlinofchaos bet me to it and submitted even better code.

This has now been replaced with ctools to handle these aspects.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.