By drupal4peter on
Hi,
i'm using the thickbox module with views and i wanted to change the behaviour that the image get opens on double click, not on a single click.
I'm trying to patch thickbox.js and this works:
//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
// $(domChunk).click(function(){
$(domChunk).mouseover(function(){
var t = this.title || this.name || null;
var a = this.href || this.alt;
var g = this.rel || false;
tb_show(t,a,g);
this.blur();
return false;
});
}
but this not
//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
// $(domChunk).click(function(){
$(domChunk).dblclick(function(){
var t = this.title || this.name || null;
var a = this.href || this.alt;
var g = this.rel || false;
tb_show(t,a,g);
this.blur();
return false;
});
}
The image get opens in a blank window.
Any hints ? Thank you.