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:
parent
21dbfa40b6
commit
b776fe7071
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue