Closed (fixed)
Project:
Views Slideshow: ImageFlow
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 May 2010 at 14:10 UTC
Updated:
19 Jan 2013 at 20:39 UTC
Hi,
how to use the onclick override? Is it already working? I tried this: function() { window.open(this.url, “_blank”) }
without success..
Comments
Comment #1
aaron commentedi'd have to try, but i suspect you need to return false after that, like:
let me know if that works :D
Comment #2
morf2009 commentedI have same issue - onclick function doesnt work... it digged around, and found fix. Hope this helps:
The problem is in file: views_slideshow_imageflow.js line 39:
if (flow['onClick']) {
_settings['onClick'] = flow['onClick'];
}
I believe you can't have anonymous function handled like variable... so i changed the code like this:
if (flow['onClick']) {
eval("_settings['onClick'] = " + flow['onClick']);
}
Now it works like a charm.
Comment #3
morf2009 commentedPlease can somebody look at my solution one post back and check if it works. Thanks you.
Comment #4
aaron commentedawesome, thanks for the fix, morf2009!
Comment #5
tachobernal commentedmorf2009 YOU ROCK!!! this fixed my problem! thank you :D
Comment #7
Alacar commentedAnd how to open Image in Lightbox2 with the onclick override?
Thanks a lot,
Al.
Comment #8
lionsharz commentedSubs on how to do same for Lightbox