wp/wp-admin/js/media-upload.js
changeset 18 be944660c56a
parent 16 a86126ab1dd4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
   106 			$(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 - adminbar_height ) );
   106 			$(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 - adminbar_height ) );
   107 		});
   107 		});
   108 	};
   108 	};
   109 
   109 
   110 	// Add handler to recalculates the ThickBox position when the window is resized.
   110 	// Add handler to recalculates the ThickBox position when the window is resized.
   111 	$(window).resize(function(){ tb_position(); });
   111 	$(window).on( 'resize', function(){ tb_position(); });
   112 
   112 
   113 })(jQuery);
   113 })(jQuery);