ec_common.module, ec_common_preprocess_page() function:
It deletes the original ahah.js and tabledrag.js links, but it doesn't create the self links.
Sort fix: Comment out this line:
//$variables['scripts'] = drupal_get_js('header', $scripts);

Comments

gordon’s picture

Version: master » 6.x-4.x-dev
Status: Active » Postponed (maintainer needs more info)

It does do this, it is 3 lines above the one that you say to comment out.

foripepe’s picture

I have tested this code, and
$variables['scripts'] = drupal_get_js('header', $scripts)
doesn't put the new sources of scripts to my environment, just delete them.

I will test it later, and I will write some details.

foripepe’s picture

Title: ec delete js files » ec js files

Ok, I have tested, and I was wrong. The ec doesn't delete the js files.
What I see now, if I turn on the eC Common module, it brokes CCK / FileField / ImageField ahah function.
I tried to replace the ec_common/js files with the misc files, but I get the same error.

Short fix:
//$variables['scripts'] = drupal_get_js('header', $scripts);

burningdog’s picture

@foripepe: so to clarify, if you turn on the ec Common module, it breaks the FileField and ImageField ahah functions? What happens when you use those widgets - do they simply stop working?

gordon’s picture

Status: Postponed (maintainer needs more info) » Fixed

This has now been fixed in dev.

Status: Fixed » Closed (fixed)

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