Closed (fixed)
Project:
Views Slideshow
Version:
6.x-2.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2009 at 19:36 UTC
Updated:
3 Oct 2009 at 06:50 UTC
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().
| Comment | File | Size | Author |
|---|---|---|---|
| views_slideshow_javascript_behaviors.patch | 771 bytes | bmcmurray |
Comments
Comment #1
redndahead commentedI don't think this applies anymore. Have a look at 2.x and see if it still applies.