//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
- jQuery(domChunk).live('click', tb_click);
+ jQuery('body').on('click', domChunk, tb_click);
}
function tb_click(){
jQuery("#TB_window").css({'visibility':'visible'});
}else if(url.indexOf('TB_iframe') != -1){
tb_position();
- if(jQuery.browser.safari){//safari needs help because it will not fire iframe onload
- jQuery("#TB_load").remove();
- jQuery("#TB_window").css({'visibility':'visible'});
- }
+ jQuery("#TB_load").remove();
+ jQuery("#TB_window").css({'visibility':'visible'});
}else{
jQuery("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
tb_position();