equal
deleted
inserted
replaced
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); |