]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/media-gallery.dev.js
Wordpress 3.5
[autoinstalls/wordpress.git] / wp-admin / js / media-gallery.dev.js
diff --git a/wp-admin/js/media-gallery.dev.js b/wp-admin/js/media-gallery.dev.js
deleted file mode 100644 (file)
index 38e4f7b..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-jQuery(function($){
-       $( 'body' ).bind( 'click.wp-gallery', function(e){
-               var target = $( e.target ), id, img_size;
-
-               if ( target.hasClass( 'wp-set-header' ) ) {
-                       ( window.dialogArguments || opener || parent || top ).location.href = target.data( 'location' );
-                       e.preventDefault();
-               } else if ( target.hasClass( 'wp-set-background' ) ) {
-                       id = target.data( 'attachment-id' );
-                       img_size = $( 'input[name="attachments[' + id + '][image-size]"]:checked').val();
-
-                       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();
-               }
-       });
-});