[wp-trac] [WordPress Trac] #8812: javascript error in thickbox viewing updatable plugins (TB_WIDTH is undefined)

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 6 21:02:32 GMT 2009


#8812: javascript error in thickbox viewing updatable plugins (TB_WIDTH is
undefined)
--------------------------+-------------------------------------------------
 Reporter:  tsimmons      |       Owner:  anonymous                            
     Type:  defect (bug)  |      Status:  new                                  
 Priority:  normal        |   Milestone:  2.7.1                                
Component:  General       |     Version:  2.7                                  
 Severity:  normal        |    Keywords:  thickbox, TB_WIDTH, javascript, error
--------------------------+-------------------------------------------------
 When you view the plugins settings page in wp-admin and one of your
 plugins has an available update, if you click the link to view the plugin
 update details (which should display in a thickbox) you get a javascript
 error in IE7:

 {{{
 TB_WIDTH is undefined
 }}}

 on line 284 of /wp-includes/js/thickbox/thickbox.js in the function
 tb_position()

 {{{
 function tb_position() {
 >>> jQuery("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH /
 2),10) + 'px', width: TB_WIDTH + 'px'});
         if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { //
 take away IE6
                 jQuery("#TB_window").css({marginTop: '-' +
 parseInt((TB_HEIGHT / 2),10) + 'px'});
         }
 }
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8812>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list