From e38e4e1046bbbe456f4948c884ca30db905b153f Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 3 Jan 2012 19:05:05 +0000 Subject: [PATCH] Revert a piece of [19424], go back to cloning a div for adding images in Press This. props azaozz, see #19498 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@19664 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/press-this.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index 68ce96dbf1..4343f19b12 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -390,24 +390,15 @@ var photostorage = false; function setup_photo_actions() { jQuery('.close').click(function() { jQuery('#extra-fields').hide(); - jQuery('body').append( jQuery('#photo-add-url-div') ); jQuery('#extra-fields').html(''); }); jQuery('.refresh').click(function() { photostorage = false; - jQuery('body').append( jQuery('#photo-add-url-div') ); show('photo'); }); jQuery('#photo-add-url').click(function(){ - var container = jQuery('#img_container'); - - if ( container.children('#photo-add-url-div:visible').length ) { - container.children('a').show(); - jQuery('#photo-add-url-div').hide(); - } else { - container.children('a').hide(); - container.append( jQuery('#photo-add-url-div').show() ); - } + var form = jQuery('#photo-add-url-div').clone(); + jQuery('#img_container').empty().append( form.show() ); }); jQuery('#waiting').hide(); jQuery('#extra-fields').show();