??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/am1atec.co.uk/wp-admin/js/media.js
⬅ Kembali
/**
* Creates a dialog containing posts that can have a particular media attached
* to it.
*
* @since 2.7.0
* @output wp-admin/js/media.js
*
* @namespace findPosts
*
* @requires jQuery
*/
/* global ajaxurl, _wpMediaGridSettings, showNotice, findPosts, ClipboardJS */
( function( $ ){
window.findPosts = {
/**
* Opens a dialog to attach media to a post.
*
* Adds an overlay prior to retrieving a list of posts to attach the media to.
*
* @since 2.7.0
*
* @memberOf findPosts
*
* @param {string} af_name The name of the affected element.
* @param {string} af_val The value of the affected post element.
*
* @return {boolean} Always returns false.
*/
open: function( af_name, af_val ) {
var overlay = $( '.ui-find-overlay' );
if ( overlay.length === 0 ) {
$( 'body' ).append( '<div class="ui-find-overlay"></div>' );
findPosts.overlay();
}
overlay.show();
if ( af_name && af_val ) {
// #affected is a hidden input field in the dialog that keeps track of which media should be attached.
$( '#affected' ).attr( 'name', af_name ).val( af_val );
}
$( '#find-posts' ).show();
// Close the dialog when the escape key is pressed.
$('#find-posts-input').trigger( 'focus' ).on( 'keyup', function( event ){
if ( event.which == 27 ) {
findPosts.close();
}
});
// Retrieves a list of applicable posts for media attachment and shows them.
findPosts.send();
return false;
},
/**
* Clears the found posts lists before hiding the attach media dialog.
*
* @since 2.7.0
*
* @memberOf findPosts
*
* @return {void}
*/
close: function() {
$('#find-posts-response').empty();
$('#find-posts').hide();
$( '.ui-find-overlay' ).hide();
},
/**
* Binds a click event listener to the overlay which closes the attach media
* dialog.
*
* @since 3.5.0
*
* @memberOf findPosts
*
* @return {void}
*/
overlay: function() {
$( '.ui-find-overlay' ).on( 'click', function () {
findPosts.close();
});
},
/**
* Retrieves and displays posts based on the search term.
*
* Sends a post request to the admin_ajax.php, requesting posts based on the
* search term provided by the user. Defaults to all posts if no search term is
* provided.
*
* @since 2.7.0
*
* @memberOf findPosts
*
* @return {void}
*/
send: function() {
var post = {
ps: $( '#find-posts-input' ).val(),
action: 'find_posts',
_ajax_nonce: $('#_ajax_nonce').val()
},
spinner = $( '.find-box-search .spinner' );
spinner.addClass( 'is-active' );
/**
* Send a POST request to admin_ajax.php, hide the spinner and replace the list
* of posts with the response data. If an error occurs, display it.
*/
$.ajax( ajaxurl, {
type: 'POST',
data: post,
dataType: 'json'
}).always( function() {
spinner.removeClass( 'is-active' );
}).done( function( x ) {
if ( ! x.success ) {
$( '#find-posts-response' ).text( wp.i18n.__( 'An error has occurred. Please reload the page and try again.' ) );
}
$( '#find-posts-response' ).html( x.data );
}).fail( function() {
$( '#find-posts-response' ).text( wp.i18n.__( 'An error has occurred. Please reload the page and try again.' ) );
});
}
};
/**
* Initializes the file once the DOM is fully loaded and attaches events to the
* various form elements.
*
* @return {void}
*/
$( function() {
var settings,
$mediaGridWrap = $( '#wp-media-grid' ),
copyAttachmentURLClipboard = new ClipboardJS( '.copy-attachment-url.media-library' ),
copyAttachmentURLSuccessTimeout,
previousSuccessElement = null;
// Opens a manage media frame into the grid.
if ( $mediaGridWrap.length && window.wp && window.wp.media ) {
settings = _wpMediaGridSettings;
var frame = window.wp.media({
frame: 'manage',
container: $mediaGridWrap,
library: settings.queryVars
}).open();
// Fire a global ready event.
$mediaGridWrap.trigger( 'wp-media-grid-ready', frame );
}
// Prevents form submission if no post has been selected.
$( '#find-posts-submit' ).on( 'click', function( event ) {
if ( ! $( '#find-posts-response input[type="radio"]:checked' ).length )
event.preventDefault();
});
// Submits the search query when hitting the enter key in the search input.
$( '#find-posts .find-box-search :input' ).on( 'keypress', function( event ) {
if ( 13 == event.which ) {
findPosts.send();
return false;
}
});
// Binds the click event to the search button.
$( '#find-posts-search' ).on( 'click', findPosts.send );
// Binds the close dialog click event.
$( '#find-posts-close' ).on( 'click', findPosts.close );
// Binds the bulk action events to the submit buttons.
$( '#doaction' ).on( 'click', function( event ) {
/*
* Handle the bulk action based on its value.
*/
$( 'select[name="action"]' ).each( function() {
var optionValue = $( this ).val();
if ( 'attach' === optionValue ) {
event.preventDefault();
findPosts.open();
} else if ( 'delete' === optionValue ) {
if ( ! showNotice.warn() ) {
event.preventDefault();
}
}
});
});
/**
* Enables clicking on the entire table row.
*
* @return {void}
*/
$( '.find-box-inside' ).on( 'click', 'tr', function() {
$( this ).find( '.found-radio input' ).prop( 'checked', true );
});
/**
* Handles media list copy media URL button.
*
* @since 6.0.0
*
* @param {MouseEvent} event A click event.
* @return {void}
*/
copyAttachmentURLClipboard.on( 'success', function( event ) {
var triggerElement = $( event.trigger ),
successElement = $( '.success', triggerElement.closest( '.copy-to-clipboard-container' ) );
// Clear the selection and move focus back to the trigger.
event.clearSelection();
// Checking if the previousSuccessElement is present, adding the hidden class to it.
if ( previousSuccessElement ) {
previousSuccessElement.addClass( 'hidden' );
}
// Show success visual feedback.
clearTimeout( copyAttachmentURLSuccessTimeout );
successElement.removeClass( 'hidden' );
// Hide success visual feedback after 3 seconds since last success and unfocus the trigger.
copyAttachmentURLSuccessTimeout = setTimeout( function() {
successElement.addClass( 'hidden' );
// No need to store the previous success element further.
previousSuccessElement = null;
}, 3000 );
previousSuccessElement = successElement;
// Handle success audible feedback.
wp.a11y.speak( wp.i18n.__( 'The file URL has been copied to your clipboard' ) );
} );
});
})( jQuery );
Nama
Tipe
Ukuran
Diubah
Aksi
📁 widgets
dir
—
2026-06-25 05:13
📜 accordion.js
js
2.9 KB
2024-10-13 19:09
📜 accordion.min.js
js
758 B
2025-02-06 17:27
📜 application-passwords.js
js
6.2 KB
2023-09-17 22:51
📜 application-passwords.min.js
js
3 KB
2025-02-06 17:27
📜 auth-app.js
js
5.7 KB
2021-02-23 19:45
📜 auth-app.min.js
js
2 KB
2025-02-06 17:27
📜 code-editor.js
js
17.5 KB
2026-05-19 12:24
📜 code-editor.min.js
js
3.5 KB
2026-05-19 12:24
📜 color-picker.js
js
9.5 KB
2021-03-18 19:01
📜 color-picker.min.js
js
3.4 KB
2025-02-06 17:27
📜 comment.js
js
2.9 KB
2024-02-11 19:14
📜 comment.min.js
js
1.3 KB
2022-04-08 20:07
📜 common.js
js
61.3 KB
2026-02-27 23:57
📜 common.min.js
js
23.2 KB
2026-02-27 23:57
📜 custom-background.js
js
3.4 KB
2021-03-18 19:01
📜 custom-background.min.js
js
1.2 KB
2025-02-06 17:27
📜 custom-header.js
js
2 KB
2021-02-23 19:45
📜 customize-controls.js
js
288.4 KB
2025-09-19 19:57
📜 customize-controls.min.js
js
109.7 KB
2025-09-19 19:57
📜 customize-nav-menus.js
js
111.5 KB
2025-09-30 16:28
📜 customize-nav-menus.min.js
js
47.1 KB
2025-09-30 16:28
📜 customize-widgets.js
js
70 KB
2024-06-21 18:17
📜 customize-widgets.min.js
js
27.4 KB
2025-02-06 17:27
📜 dashboard.js
js
27 KB
2025-03-16 19:40
📜 dashboard.min.js
js
8.7 KB
2025-03-16 19:40
📜 edit-comments.js
js
37.2 KB
2026-05-08 02:21
📜 edit-comments.min.js
js
15.2 KB
2026-05-08 02:21
📜 editor-expand.js
js
41.6 KB
2024-04-12 17:47
📜 editor-expand.min.js
js
13.1 KB
2025-02-06 17:27
📜 editor.js
js
44 KB
2025-09-28 23:40
📜 editor.min.js
js
12.8 KB
2025-09-28 23:40
📜 farbtastic.js
js
7.7 KB
2023-07-17 22:03
📜 gallery.js
js
5.4 KB
2023-10-09 21:31
📜 gallery.min.js
js
3.7 KB
2023-10-09 21:31
📜 image-edit.js
js
40 KB
2024-08-28 16:45
📜 image-edit.min.js
js
15.2 KB
2025-02-06 17:27
📜 inline-edit-post.js
js
20.2 KB
2026-05-08 15:59
📜 inline-edit-post.min.js
js
9.4 KB
2026-05-08 15:59
📜 inline-edit-tax.js
js
7.6 KB
2021-03-18 19:01
📜 inline-edit-tax.min.js
js
2.9 KB
2025-02-06 17:27
📜 iris.min.js
js
23.1 KB
2021-11-03 19:40
📜 language-chooser.js
js
890 B
2021-02-23 19:45
📜 language-chooser.min.js
js
423 B
2021-02-23 19:45
📜 link.js
js
4.8 KB
2026-02-27 22:49
📜 link.min.js
js
2.3 KB
2026-02-27 22:49
📜 media-gallery.js
js
1.3 KB
2021-02-23 19:45
📜 media-gallery.min.js
js
611 B
2022-04-08 20:07
📜 media-upload.js
js
3.4 KB
2021-01-22 12:32
📜 media-upload.min.js
js
1.1 KB
2025-02-06 17:27
📜 media.js
js
6.6 KB
2024-10-07 02:49
📜 media.min.js
js
2.4 KB
2025-02-06 17:27
📜 nav-menu.js
js
61.1 KB
2025-10-20 20:31
📜 nav-menu.min.js
js
30.1 KB
2025-10-20 20:31
📜 password-strength-meter.js
js
4.1 KB
2021-01-22 12:32
📜 password-strength-meter.min.js
js
1.1 KB
2025-02-06 17:27
📜 password-toggle.js
js
1.3 KB
2023-06-23 23:09
📜 password-toggle.min.js
js
847 B
2025-02-06 17:27
📜 plugin-install.js
js
6.9 KB
2021-03-18 19:01
📜 plugin-install.min.js
js
2.3 KB
2023-02-02 16:36
📜 post.js
js
39.5 KB
2026-04-27 02:24
📜 post.min.js
js
19 KB
2026-04-27 02:24
📜 postbox.js
js
18.5 KB
2025-03-16 19:40
📜 postbox.min.js
js
6.6 KB
2025-03-16 19:40
📜 privacy-tools.js
js
10.7 KB
2024-06-21 18:17
📜 privacy-tools.min.js
js
5 KB
2024-06-21 18:17
📜 revisions.js
js
33.9 KB
2024-10-13 20:49
📜 revisions.min.js
js
18 KB
2025-02-06 17:27
📜 set-post-thumbnail.js
js
876 B
2020-07-07 18:55
📜 set-post-thumbnail.min.js
js
620 B
2020-07-07 18:55
📜 site-health.js
js
13.6 KB
2026-02-11 21:10
📜 site-health.min.js
js
6.3 KB
2026-02-11 21:10
📜 site-icon.js
js
6.1 KB
2024-08-23 22:47
📜 site-icon.min.js
js
2.2 KB
2025-02-06 17:27
📜 svg-painter.js
js
3.2 KB
2024-09-07 22:44
📜 svg-painter.min.js
js
1.5 KB
2025-02-06 17:27
📜 tags-box.js
js
10.9 KB
2021-03-18 19:01
📜 tags-box.min.js
js
3 KB
2025-02-06 17:27
📜 tags-suggest.js
js
5.6 KB
2024-02-18 22:16
📜 tags-suggest.min.js
js
2.2 KB
2025-02-06 17:27
📜 tags.js
js
6 KB
2025-09-01 21:22
📜 tags.min.js
js
2.4 KB
2025-09-01 21:22
📜 theme-plugin-editor.js
js
25.6 KB
2026-02-04 07:03
📜 theme-plugin-editor.min.js
js
11.8 KB
2026-02-04 07:03
📜 theme.js
js
54.9 KB
2025-09-28 23:40
📜 theme.min.js
js
26.5 KB
2025-09-28 23:40
📜 updates.js
js
109.4 KB
2025-10-21 11:01
📜 updates.min.js
js
47.3 KB
2025-10-21 11:01
📜 user-profile.js
js
17.9 KB
2025-10-20 19:49
📜 user-profile.min.js
js
7.8 KB
2025-10-20 19:49
📜 user-suggest.js
js
2.2 KB
2021-03-18 19:01
📜 user-suggest.min.js
js
676 B
2025-02-06 17:27
📜 widgets.js
js
22.6 KB
2021-03-18 19:01
📜 widgets.min.js
js
12.3 KB
2025-02-06 17:27
📜 word-count.js
js
7.5 KB
2020-07-27 23:35
📜 word-count.min.js
js
1.5 KB
2025-02-06 17:27
📜 xfn.js
js
740 B
2021-03-18 19:01
📜 xfn.min.js
js
458 B
2021-03-18 19:01