diff --git a/src/js/_enqueues/vendor/thickbox/thickbox.js b/src/js/_enqueues/vendor/thickbox/thickbox.js
index 55c66caaf3..62ffb4b941 100644
|
a
|
b
|
function tb_show(caption, url, imageGroup) {//function called when the user clic |
| 49 | 49 | jQuery("html").css("overflow","hidden"); |
| 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 | } |
| 60 | 60 | } |
| … |
… |
function tb_show(caption, url, imageGroup) {//function called when the user clic |
| 141 | 141 | TB_HEIGHT = imageHeight + 60; |
| 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 === "")) { |
| 147 | 147 | function goPrev(){ |
| … |
… |
function tb_show(caption, url, imageGroup) {//function called when the user clic |
| 151 | 151 | tb_show(TB_PrevCaption, TB_PrevURL, imageGroup); |
| 152 | 152 | return false; |
| 153 | 153 | } |
| 154 | | jQuery("#TB_prev").trigger( 'click', goPrev ); |
| | 154 | jQuery("#TB_prev").on( 'click', goPrev ); |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | if (!(TB_NextHTML === "")) { |
| … |
… |
function tb_show(caption, url, imageGroup) {//function called when the user clic |
| 161 | 161 | tb_show(TB_NextCaption, TB_NextURL, imageGroup); |
| 162 | 162 | return false; |
| 163 | 163 | } |
| 164 | | jQuery("#TB_next").trigger( 'click', goNext ); |
| | 164 | jQuery("#TB_next").on( 'click', goNext ); |
| 165 | 165 | |
| 166 | 166 | } |
| 167 | 167 | |
| … |
… |
function tb_show(caption, url, imageGroup) {//function called when the user clic |
| 185 | 185 | |
| 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 | }; |
| 191 | 191 | |
| … |
… |
function tb_show(caption, url, imageGroup) {//function called when the user clic |
| 225 | 225 | } |
| 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){ |
| 231 | 231 | jQuery("#TB_ajaxContent").append(jQuery('#' + params['inlineId']).children()); |