X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5aa86a9053fb0fa15846bb60aac2fb8fdfff524a..refs/tags/wordpress-3.4:/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; }); - + +
@@ -533,7 +528,7 @@ var photostorage = false; labels->parent_item_colon; ?> 'category', 'hide_empty' => 0, 'name' => 'newcategory_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —', 'tab_index' => 3 ) ); ?> - +

@@ -605,7 +600,7 @@ var photostorage = false; $content = ''; if ( $selection ) - $content .= $selection; + $content .= $selection; if ( $url ) { $content .= '

';