diff -r 490d5cc509ed -r cf61fcea0001 wp/wp-includes/js/thickbox/thickbox.js
--- a/wp/wp-includes/js/thickbox/thickbox.js Tue Jun 09 11:14:17 2015 +0000
+++ b/wp/wp-includes/js/thickbox/thickbox.js Mon Oct 14 17:39:30 2019 +0200
@@ -18,9 +18,16 @@
imgLoader.src = tb_pathToImage;
});
-//add thickbox to href & area elements that have a class of .thickbox
+/*
+ * Add thickbox to href & area elements that have a class of .thickbox.
+ * Remove the loading indicator when content in an iframe has loaded.
+ */
function tb_init(domChunk){
- jQuery('body').on('click', domChunk, tb_click);
+ jQuery( 'body' )
+ .on( 'click', domChunk, tb_click )
+ .on( 'thickbox:iframe:loaded', function() {
+ jQuery( '#TB_window' ).removeClass( 'thickbox-loading' );
+ });
}
function tb_click(){
@@ -34,17 +41,19 @@
function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
+ var $closeBtn;
+
try {
if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
jQuery("body","html").css({height: "100%", width: "100%"});
jQuery("html").css("overflow","hidden");
if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
- jQuery("body").append("