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
This commit is contained in:
nacin 2012-01-03 19:05:05 +00:00
parent 21dbfa40b6
commit b776fe7071
1 changed files with 2 additions and 11 deletions

View File

@ -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();