version: 3.0b
When using the option "onChange" the argument is suppose to be the gallery element that is about to be displayed but its always "undefined".
"onOpen" works well.
Shadowbox.init({
onOpen: function(o){ ... },
onChange: function(o){
//o = undefined
}
});
My fix:
I replaced the line 462:
S.options.onChange();
with
S.options.onChange(S.getCurrent());