/
home
/
techb158
/
public_html
/
wp-admin
/
js
/
/home/techb158/public_html/wp-admin/js
mkdir
upload
Name
Size
Mode
Actions
widgets/
-
0777
rm
accordion.js
2933
0666
edit
dl
rm
accordion.min.js
758
0666
edit
dl
rm
application-passwords.js
6394
0666
edit
dl
rm
application-passwords.min.js
3024
0666
edit
dl
rm
auth-app.js
5796
0666
edit
dl
rm
auth-app.min.js
2084
0666
edit
dl
rm
code-editor.js
17963
0666
edit
dl
rm
code-editor.min.js
3543
0666
edit
dl
rm
color-picker.js
9768
0666
edit
dl
rm
color-picker.min.js
3486
0666
edit
dl
rm
comment.js
5205
0666
edit
dl
rm
comment.min.js
2081
0666
edit
dl
rm
common.js
70421
0666
edit
dl
rm
common.min.js
26210
0666
edit
dl
rm
custom-background.js
3435
0666
edit
dl
rm
custom-background.min.js
1206
0666
edit
dl
rm
custom-header.js
2023
0666
edit
dl
rm
customize-controls.js
295905
0666
edit
dl
rm
customize-controls.min.js
112538
0666
edit
dl
rm
customize-nav-menus.js
114134
0666
edit
dl
rm
customize-nav-menus.min.js
48272
0666
edit
dl
rm
customize-widgets.js
71727
0666
edit
dl
rm
customize-widgets.min.js
28065
0666
edit
dl
rm
dashboard.js
27562
0666
edit
dl
rm
dashboard.min.js
8711
0666
edit
dl
rm
edit-comments.js
38139
0666
edit
dl
rm
edit-comments.min.js
15515
0666
edit
dl
rm
editor-expand.js
42606
0666
edit
dl
rm
editor-expand.min.js
13451
0666
edit
dl
rm
editor.js
45055
0666
edit
dl
rm
editor.min.js
13085
0666
edit
dl
rm
farbtastic.js
7849
0666
edit
dl
rm
gallery.js
5543
0666
edit
dl
rm
gallery.min.js
3741
0666
edit
dl
rm
image-edit.js
40936
0666
edit
dl
rm
image-edit.min.js
15515
0666
edit
dl
rm
inline-edit-post.js
20676
0666
edit
dl
rm
inline-edit-post.min.js
9586
0666
edit
dl
rm
inline-edit-tax.js
7797
0666
edit
dl
rm
inline-edit-tax.min.js
2997
0666
edit
dl
rm
iris.min.js
23643
0666
edit
dl
rm
language-chooser.js
890
0666
edit
dl
rm
language-chooser.min.js
423
0666
edit
dl
rm
link.js
4873
0666
edit
dl
rm
link.min.js
2319
0666
edit
dl
rm
media-gallery.js
1303
0666
edit
dl
rm
media-gallery.min.js
611
0666
edit
dl
rm
media-upload.js
3465
0666
edit
dl
rm
media-upload.min.js
1152
0666
edit
dl
rm
media.js
6765
0666
edit
dl
rm
media.min.js
2439
0666
edit
dl
rm
nav-menu.js
62617
0666
edit
dl
rm
nav-menu.min.js
30785
0666
edit
dl
rm
password-strength-meter.js
4236
0666
edit
dl
rm
password-strength-meter.min.js
1123
0666
edit
dl
rm
password-toggle.js
1339
0666
edit
dl
rm
password-toggle.min.js
847
0666
edit
dl
rm
plugin-install.js
7086
0666
edit
dl
rm
plugin-install.min.js
2403
0666
edit
dl
rm
post.js
40494
0666
edit
dl
rm
post.min.js
19415
0666
edit
dl
rm
postbox.js
18937
0666
edit
dl
rm
postbox.min.js
6761
0666
edit
dl
rm
privacy-tools.js
11146
0666
edit
dl
rm
privacy-tools.min.js
5189
0666
edit
dl
rm
revisions.js
34729
0666
edit
dl
rm
revisions.min.js
18401
0666
edit
dl
rm
set-post-thumbnail.js
876
0666
edit
dl
rm
set-post-thumbnail.min.js
620
0666
edit
dl
rm
site-health.js
13880
0666
edit
dl
rm
site-health.min.js
6474
0666
edit
dl
rm
site-icon.js
6853
0666
edit
dl
rm
site-icon.min.js
2532
0666
edit
dl
rm
svg-painter.js
3280
0666
edit
dl
rm
svg-painter.min.js
1567
0666
edit
dl
rm
tags-box.js
11140
0666
edit
dl
rm
tags-box.min.js
3077
0666
edit
dl
rm
tags-suggest.js
5771
0666
edit
dl
rm
tags-suggest.min.js
2269
0666
edit
dl
rm
tags.js
7839
0666
edit
dl
rm
tags.min.js
3111
0666
edit
dl
rm
theme-plugin-editor.js
26176
0666
edit
dl
rm
theme-plugin-editor.min.js
12104
0666
edit
dl
rm
theme.js
57350
0666
edit
dl
rm
theme.min.js
27530
0666
edit
dl
rm
updates.js
111999
0666
edit
dl
rm
updates.min.js
48443
0666
edit
dl
rm
user-profile.js
18161
0666
edit
dl
rm
user-profile.min.js
7914
0666
edit
dl
rm
user-suggest.js
2301
0666
edit
dl
rm
user-suggest.min.js
676
0666
edit
dl
rm
widgets.js
23098
0666
edit
dl
rm
widgets.min.js
12609
0666
edit
dl
rm
word-count.js
7696
0666
edit
dl
rm
word-count.min.js
1530
0666
edit
dl
rm
xfn.js
740
0666
edit
dl
rm
xfn.min.js
458
0666
edit
dl
rm
Edit:
/home/techb158/public_html/wp-admin/js/media-upload.js
(3465B)
/** * Contains global functions for the media upload within the post edit screen. * * Updates the ThickBox anchor href and the ThickBox's own properties in order * to set the size and position on every resize event. Also adds a function to * send HTML or text to the currently active editor. * * @file * @since 2.5.0 * @output wp-admin/js/media-upload.js * * @requires jQuery */ /* global tinymce, QTags, wpActiveEditor, tb_position */ /** * Sends the HTML passed in the parameters to TinyMCE. * * @since 2.5.0 * * @global * * @param {string} html The HTML to be sent to the editor. * @return {void|boolean} Returns false when both TinyMCE and QTags instances * are unavailable. This means that the HTML was not * sent to the editor. */ window.send_to_editor = function( html ) { var editor, hasTinymce = typeof tinymce !== 'undefined', hasQuicktags = typeof QTags !== 'undefined'; // If no active editor is set, try to set it. if ( ! wpActiveEditor ) { if ( hasTinymce && tinymce.activeEditor ) { editor = tinymce.activeEditor; window.wpActiveEditor = editor.id; } else if ( ! hasQuicktags ) { return false; } } else if ( hasTinymce ) { editor = tinymce.get( wpActiveEditor ); } // If the editor is set and not hidden, // insert the HTML into the content of the editor. if ( editor && ! editor.isHidden() ) { editor.execCommand( 'mceInsertContent', false, html ); } else if ( hasQuicktags ) { // If quick tags are available, insert the HTML into its content. QTags.insertContent( html ); } else { // If neither the TinyMCE editor and the quick tags are available, // add the HTML to the current active editor. document.getElementById( wpActiveEditor ).value += html; } // If the old thickbox remove function exists, call it. if ( window.tb_remove ) { try { window.tb_remove(); } catch( e ) {} } }; (function($) { /** * Recalculates and applies the new ThickBox position based on the current * window size. * * @since 2.6.0 * * @global * * @return {Object[]} Array containing jQuery objects for all the found * ThickBox anchors. */ window.tb_position = function() { var tbWindow = $('#TB_window'), width = $(window).width(), H = $(window).height(), W = ( 833 < width ) ? 833 : width, adminbar_height = 0; if ( $('#wpadminbar').length ) { adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 ); } if ( tbWindow.length ) { tbWindow.width( W - 50 ).height( H - 45 - adminbar_height ); $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height ); tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'}); if ( typeof document.body.style.maxWidth !== 'undefined' ) tbWindow.css({'top': 20 + adminbar_height + 'px', 'margin-top': '0'}); } /** * Recalculates the new height and width for all links with a ThickBox class. * * @since 2.6.0 */ return $('a.thickbox').each( function() { var href = $(this).attr('href'); if ( ! href ) return; href = href.replace(/&width=[0-9]+/g, ''); href = href.replace(/&height=[0-9]+/g, ''); $(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 - adminbar_height ) ); }); }; // Add handler to recalculates the ThickBox position when the window is resized. $(window).on( 'resize', function(){ tb_position(); }); })(jQuery);
Save
cmd:
run