I updated Colorbox.min.js file from v1.3.19 to v1.4.6 and some of my colorboxes doesn't work. I don't get any error on page and Chrome's console.
I checked for changelog but I didn't find the anser. Can you help please?
(I use jQuery 1.7.2)
<a href="#" onclick="emailDialog()">e-mail</a>
function emailDialog(){  
    $.fn.colorbox({  
        width:"700px", height:"550px",  
        iframe:true, href:"/contact",  
        opacity:0.6  
    });  
}
<a href="http://example.com/1.jpeg" class="colorbox-avatar" title="some title" rel="nofollow" >photo</a>
$(document).ready(function() {  
    $(".colorbox-avatar").colorbox({  
        rel:'colorbox-avatar',  
        scrolling: false,  
        current: "",  
        slideshow:true, slideshowAuto:false,  
        opacity:0.6,  
        width:"60%" , height:"60%"  
    });  
}  
call it without the .fn ... so $.colorbox({...}) 
($.fn is used for developing jQuery plugins and is really just shorthand for $.prototype).
function emailDialog(){
    $.colorbox({
        width:"700px", height:"550px",
        iframe:true, href:"/contact",
        opacity:0.6
    });   
}
jsfiddle demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With