Drupal.behaviors is the preferred way to attach code that should execute similarly to $(document).ready() in Drupal 6. Leaving the initialization to only $(document).ready() prohibits initialization when the entire DOM is not refreshed and a $(document).ready() event isn't triggered again (loading in content via AJAX/AHAH, for instance).

Attached is a patch that switches the $(document).ready() in theme_views_slideshow_div_js to Drupal.behaviors.views_slideshow_init_slideshow().

Comments

redndahead’s picture

Status: Active » Fixed

I don't think this applies anymore. Have a look at 2.x and see if it still applies.

Status: Fixed » Closed (fixed)

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