Make WordPress Core

Changeset 20542


Ignore:
Timestamp:
04/19/2012 09:58:20 PM (14 years ago)
Author:
nacin
Message:

Revert a piece of [19424], go back to cloning a div for adding images in Press This. props azaozz, fixes #19498 for 3.3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/wp-admin/press-this.php

    r19668 r20542  
    391391                                        jQuery('.close').click(function() {
    392392                                                jQuery('#extra-fields').hide();
    393                                                 jQuery('body').append( jQuery('#photo-add-url-div') );
    394393                                                jQuery('#extra-fields').html('');
    395394                                        });
    396395                                        jQuery('.refresh').click(function() {
    397396                                                photostorage = false;
    398                                                 jQuery('body').append( jQuery('#photo-add-url-div') );
    399397                                                show('photo');
    400398                                        });
    401399                                        jQuery('#photo-add-url').click(function(){
    402                                                 var container = jQuery('#img_container');
    403 
    404                                                 if ( container.children('#photo-add-url-div:visible').length ) {
    405                                                         container.children('a').show();
    406                                                         jQuery('#photo-add-url-div').hide();
    407                                                 } else {
    408                                                         container.children('a').hide();
    409                                                         container.append( jQuery('#photo-add-url-div').show() );
    410                                                 }
     400                                                var form = jQuery('#photo-add-url-div').clone();
     401                                                jQuery('#img_container').empty().append( form.show() );
    411402                                        });
    412403                                        jQuery('#waiting').hide();
Note: See TracChangeset for help on using the changeset viewer.