From 15a965cf800b9803e22118ed54037437ef534fc5 Mon Sep 17 00:00:00 2001
From: ryan
Date: Fri, 24 Oct 2008 17:20:06 +0000
Subject: [PATCH] Press This updates from noel. see #7949
git-svn-id: http://svn.automattic.com/wordpress/trunk@9326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/css/press-this.css | 12 +++---------
wp-admin/press-this.php | 35 +++++++++++++++++++----------------
2 files changed, 22 insertions(+), 25 deletions(-)
diff --git a/wp-admin/css/press-this.css b/wp-admin/css/press-this.css
index 8dae35d90e..da41db075d 100644
--- a/wp-admin/css/press-this.css
+++ b/wp-admin/css/press-this.css
@@ -10,7 +10,7 @@ img { border: 0; }
/* Header */
#wphead{border-top:none;padding-top:8px; background: #444 !important;}
-.button{font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif;padding:3px 5px;font-size:12px;line-height:1.5em;border-width:1px;border-style:solid;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;margin-left:5px;text-decoration:none;}
+#poststuff #edButtonPreview, #poststuff #edButtonHTML, .button{font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif;padding:3px 5px;font-size:12px;line-height:1.5em;border-width:1px;border-style:solid;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;margin-left:5px;text-decoration:none;}
.howto {
font-size: 11px;
@@ -47,14 +47,8 @@ position:absolute;
width:0;
}
-#poststuff #edButtonPreview, #poststuff #edButtonHTML {
- display: block;
- height: 20px;
- padding: 5px 5px 1px;
- margin: 5px 8px 0 0;
- float: right;
- cursor: pointer;
-}
+
+#poststuff #edButtonPreview.active, #poststuff #edButtonHTML.active { display: none; }
.posting {
margin-right: 228px;
diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php
index f302b13bb7..2e228b3b2d 100644
--- a/wp-admin/press-this.php
+++ b/wp-admin/press-this.php
@@ -116,9 +116,12 @@ switch ($_REQUEST['ajax']) {
@@ -273,6 +276,7 @@ switch ($_REQUEST['ajax']) {
src = jQuery('#this_photo').val();
pick(src, desc);
jQuery('#extra_fields').hide();
+ jQuery('#extra_fields').html('');
return false;
}
@@ -280,6 +284,7 @@ switch ($_REQUEST['ajax']) {
jQuery('#extra_fields').html('Photo ()
');
jQuery('.close').click(function() {
jQuery('#extra_fields').hide();
+ jQuery('#extra_fields').html('');
});
jQuery('#img_container').html(strtoappend);
jQuery('#photo_add_url').attr('href', '?ajax=photo_thickbox_url&height=200&width=500');
@@ -351,6 +356,7 @@ die;
switch(tab_name) {
case 'video' :
+ jQuery('#extra_fields').html('');
jQuery('#extra_fields').show();
jQuery('#extra_fields').load('', { ajax: 'video', s: ''}, function() {
');
jQuery.ajax({
@@ -389,9 +395,7 @@ die;
jQuery('#waiting').remove();
}
});
- } else {
- jQuery('#extra_fields').hide();
- }
+
return false;
break;
}
@@ -499,21 +503,20 @@ die;
-
+
+
+
+
+