There is a suggestion to use drupal_add_js() to conditionally add js to the theme. I lazily copy-pasted that and realized that the path to the js-file is not from the root of the site as it should be.

Patch for both D6 and D6 that adds a drupal_get_path() to the suggestion.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

barraponto’s picture

Status: Needs review » Reviewed & tested by the community

Patches apply cleanly. Thanks.

JohnAlbin’s picture

Title: README-file in the js folder suggests code that does not work » Fix code error in js/README.txt
Status: Reviewed & tested by the community » Fixed

Thanks, Camilla!

(And thanks Capi for the review!)

Status: Fixed » Closed (fixed)

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