From b776fe7071ae97f8e2031c1d203ac425431593b1 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@19664 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 68ce96dbf..4343f19b1 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();