From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- srcs/wordpress/wp-admin/js/media-gallery.js | 41 ----------------------------- 1 file changed, 41 deletions(-) delete mode 100644 srcs/wordpress/wp-admin/js/media-gallery.js (limited to 'srcs/wordpress/wp-admin/js/media-gallery.js') diff --git a/srcs/wordpress/wp-admin/js/media-gallery.js b/srcs/wordpress/wp-admin/js/media-gallery.js deleted file mode 100644 index 725d2be..0000000 --- a/srcs/wordpress/wp-admin/js/media-gallery.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * This file is used on media-upload.php which has been replaced by media-new.php and upload.php - * - * @deprecated 3.5.0 - * @output wp-admin/js/media-gallery.js - */ - - /* global ajaxurl */ -jQuery(function($) { - /** - * Adds a click event handler to the element with a 'wp-gallery' class. - */ - $( 'body' ).bind( 'click.wp-gallery', function(e) { - var target = $( e.target ), id, img_size; - - if ( target.hasClass( 'wp-set-header' ) ) { - // Opens the image to preview it full size. - ( window.dialogArguments || opener || parent || top ).location.href = target.data( 'location' ); - e.preventDefault(); - } else if ( target.hasClass( 'wp-set-background' ) ) { - // Sets the image as background of the theme. - id = target.data( 'attachment-id' ); - img_size = $( 'input[name="attachments[' + id + '][image-size]"]:checked').val(); - - /** - * This AJAX action has been deprecated since 3.5.0, see custom-background.php - */ - jQuery.post(ajaxurl, { - action: 'set-background-image', - attachment_id: id, - size: img_size - }, function() { - var win = window.dialogArguments || opener || parent || top; - win.tb_remove(); - win.location.reload(); - }); - - e.preventDefault(); - } - }); -}); -- cgit