Hi,
how to use the onclick override? Is it already working? I tried this: function() { window.open(this.url, “_blank”) }

without success..

Comments

aaron’s picture

Status: Active » Postponed (maintainer needs more info)

i'd have to try, but i suspect you need to return false after that, like:

function() { window.open(this.url, “_blank”); return false; }

let me know if that works :D

morf2009’s picture

I 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.

morf2009’s picture

Category: task » bug
Status: Postponed (maintainer needs more info) » Needs work

Please can somebody look at my solution one post back and check if it works. Thanks you.

aaron’s picture

Status: Needs work » Fixed

awesome, thanks for the fix, morf2009!

tachobernal’s picture

morf2009 YOU ROCK!!! this fixed my problem! thank you :D

Status: Fixed » Closed (fixed)

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

Alacar’s picture

And how to open Image in Lightbox2 with the onclick override?
Thanks a lot,
Al.

lionsharz’s picture

Subs on how to do same for Lightbox