Closed (fixed)
Project:
Shadowbox
Version:
6.x-3.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2009 at 10:06 UTC
Updated:
12 Dec 2009 at 07:00 UTC
Is there somebody who knows how to implement Shadowbox options?
I tried something like this:
drupal_add_js('
Shadowbox.open({
options: {onOpen: alert("test")}
});
', 'inline', 'footer');
However, this alerts "test" already when only the page is loaded. Anybody knows why that is?
Comments
Comment #1
hamsterbacke42 commentedNevermind, found that this works:
Not really a Drupal issue
Comment #2
hamsterbacke42 commented