Ticket #25993: 25993.1.diff
File 25993.1.diff, 1.2 KB (added by , 12 years ago) |
---|
-
src/wp-admin/js/plugin-install.js
1 /* global plugininstallL10n */ 2 1 3 /* Plugin Browser Thickbox related JS*/ 2 4 var tb_position; 3 5 jQuery(document).ready(function($) { … … 13 15 tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'}); 14 16 if ( typeof document.body.style.maxWidth != 'undefined' ) 15 17 tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'}); 16 } ;18 } 17 19 18 20 return $('a.thickbox').each( function() { 19 21 var href = $(this).attr('href'); … … 28 30 $(window).resize(function(){ tb_position(); }); 29 31 30 32 $('.plugins').on( 'click', 'a.thickbox', function() { 31 tb_click.call(this);33 window.tb_click.call(this); 32 34 33 35 $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'}); 34 36 $('#TB_ajaxWindowTitle').html('<strong>' + plugininstallL10n.plugin_information + '</strong> ' + $(this).attr('title') ); … … 48 50 }); 49 51 50 52 $('a.install-now').click( function() { 51 return confirm( plugininstallL10n.ays );53 return window.confirm( plugininstallL10n.ays ); 52 54 }); 53 55 });