equal
deleted
inserted
replaced
1 /* global plugininstallL10n, tb_click, tb_remove */ |
|
2 |
|
3 /** |
1 /** |
4 * Functionality for the plugin install screens. |
2 * @file Functionality for the plugin install screens. |
|
3 * |
|
4 * @output wp-admin/js/plugin-install.js |
5 */ |
5 */ |
6 var tb_position; |
6 |
|
7 /* global plugininstallL10n, tb_click, tb_remove, tb_position */ |
|
8 |
7 jQuery( document ).ready( function( $ ) { |
9 jQuery( document ).ready( function( $ ) { |
8 |
10 |
9 var tbWindow, |
11 var tbWindow, |
10 $iframeBody, |
12 $iframeBody, |
11 $tabbables, |
13 $tabbables, |
14 $focusedBefore = $(), |
16 $focusedBefore = $(), |
15 $uploadViewToggle = $( '.upload-view-toggle' ), |
17 $uploadViewToggle = $( '.upload-view-toggle' ), |
16 $wrap = $ ( '.wrap' ), |
18 $wrap = $ ( '.wrap' ), |
17 $body = $( document.body ); |
19 $body = $( document.body ); |
18 |
20 |
19 tb_position = function() { |
21 window.tb_position = function() { |
20 var width = $( window ).width(), |
22 var width = $( window ).width(), |
21 H = $( window ).height() - ( ( 792 < width ) ? 60 : 20 ), |
23 H = $( window ).height() - ( ( 792 < width ) ? 60 : 20 ), |
22 W = ( 792 < width ) ? 772 : width - 20; |
24 W = ( 792 < width ) ? 772 : width - 20; |
23 |
25 |
24 tbWindow = $( '#TB_window' ); |
26 tbWindow = $( '#TB_window' ); |