Make WordPress Core

Changeset 19664


Ignore:
Timestamp:
01/03/2012 07:05:05 PM (13 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r19662 r19664  
    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.