X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/5aa86a9053fb0fa15846bb60aac2fb8fdfff524a..8f374b7233bc2815ccc387e448d208c5434eb961:/wp-admin/press-this.php diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index 0c36dbf7..facae8a8 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -304,7 +304,7 @@ die; //','uid':'ID; ?>','time':''}; -var ajaxurl = '', pagenow = 'press-this', isRtl = ; +var ajaxurl = '', pagenow = 'press-this', isRtl = ; var photostorage = false; //]]> @@ -351,12 +351,12 @@ var photostorage = false; '; } elseif ( preg_match("/vimeo\.com\/[0-9]+/i", $url) ) { - list($domain, $video_id) = split(".com/", $url); + list($domain, $video_id) = explode(".com/", $url); $video_id = esc_attr($video_id); $content = ''; @@ -376,24 +376,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(); @@ -432,7 +423,7 @@ var photostorage = false; show('video'); show('video'); - + show('photo'); jQuery('#title').unbind(); @@ -444,7 +435,11 @@ var photostorage = false; }); -
+ +