Changeset 50410
- Timestamp:
- 02/23/2021 10:52:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/vendor/thickbox/thickbox.js
r50383 r50410 50 50 if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6 51 51 jQuery("body").append("<iframe id='TB_HideSelect'>"+thickboxL10n.noiframes+"</iframe><div id='TB_overlay'></div><div id='TB_window' class='thickbox-loading'></div>"); 52 jQuery("#TB_overlay"). trigger( 'click', tb_remove );52 jQuery("#TB_overlay").on( 'click', tb_remove ); 53 53 } 54 54 }else{//all others 55 55 if(document.getElementById("TB_overlay") === null){ 56 56 jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window' class='thickbox-loading'></div>"); 57 jQuery("#TB_overlay"). trigger( 'click', tb_remove );57 jQuery("#TB_overlay").on( 'click', tb_remove ); 58 58 jQuery( 'body' ).addClass( 'modal-open' ); 59 59 } … … 142 142 jQuery("#TB_window").append("<a href='' id='TB_ImageOff'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon'></span></button></div>"); 143 143 144 jQuery("#TB_closeWindowButton"). trigger( 'click', tb_remove );144 jQuery("#TB_closeWindowButton").on( 'click', tb_remove ); 145 145 146 146 if (!(TB_PrevHTML === "")) { … … 152 152 return false; 153 153 } 154 jQuery("#TB_prev"). trigger( 'click', goPrev );154 jQuery("#TB_prev").on( 'click', goPrev ); 155 155 } 156 156 … … 162 162 return false; 163 163 } 164 jQuery("#TB_next"). trigger( 'click', goNext );164 jQuery("#TB_next").on( 'click', goNext ); 165 165 166 166 } … … 186 186 tb_position(); 187 187 jQuery("#TB_load").remove(); 188 jQuery("#TB_ImageOff"). trigger( 'click', tb_remove );188 jQuery("#TB_ImageOff").on( 'click', tb_remove ); 189 189 jQuery("#TB_window").css({'visibility':'visible'}); //for safari using css instead of show 190 190 }; … … 226 226 } 227 227 228 jQuery("#TB_closeWindowButton"). trigger( 'click', tb_remove );228 jQuery("#TB_closeWindowButton").on( 'click', tb_remove ); 229 229 230 230 if(url.indexOf('TB_inline') != -1){
Note: See TracChangeset
for help on using the changeset viewer.