diff --git a/wp-admin/css/press-this.css b/wp-admin/css/press-this.css index abae76e9a8..77699a7e8a 100644 --- a/wp-admin/css/press-this.css +++ b/wp-admin/css/press-this.css @@ -34,7 +34,6 @@ img { border-radius-bottomright: 0; border-radius-topleft: 3px; border-radius-topright: 3px; - border-style: solid; border-width: 1px; cursor: pointer; @@ -48,6 +47,7 @@ img { font-size: 10px; line-height: 18px; float: left; + float: left; } @@ -65,7 +65,6 @@ input.text { outline-style: none; outline-width: medium; width: 100%; - } #message { @@ -124,11 +123,9 @@ div.zerosize { font-weight: bold; padding: 7px; margin: 0 0 10px; - background-image: url(../images/postbox-bg.gif); background-position: left top; background-repeat: repeat-x; - font-size: 12px; font-weight: bold; line-height: 1; @@ -221,12 +218,22 @@ h3.tb { margin-top: -19px; position: relative; } +#extra_fields #actions { + clear: both; + position: absolute; + right: 4px; + top: 6px; + margin: 0; +} #actions li { float: left; list-style: none; margin-right: 10px; } +#extra_fields .button { + margin-right: 5px; +} /* Photo Styles */ .photolist { @@ -331,7 +338,7 @@ h3.tb { } #category-add input { - width: 94%; + width: 94%; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; margin: 1px; diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index 23b6bbe9d9..466317735b 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -235,7 +235,6 @@ switch ($_REQUEST['ajax']) { // gather images and load some default JS var last = null var img, img_tag, aspect, w, h, skip, i, strtoappend = ""; - if(!my_src) { var my_src = eval( jQuery.ajax({ type: "GET", @@ -246,7 +245,23 @@ switch ($_REQUEST['ajax']) { dataType : "script" }).responseText ); - } + if(my_src.length == 0) { + var my_src = eval( + jQuery.ajax({ + type: "GET", + url: "", + cache : false, + async : false, + data: "ajax=photo_images&u=", + dataType : "script" + }).responseText + ); + if(my_src.length == 0) { + + strtoappend = ''; + } + } + for (i = 0; i < my_src.length; i++) { img = new Image(); @@ -293,14 +308,19 @@ switch ($_REQUEST['ajax']) { } jQuery(document).ready(function() { - jQuery('#extra_fields').html('

Photo ()

'); + jQuery('#extra_fields').html('

Photo ()

'); jQuery('.close').click(function() { jQuery('#extra_fields').hide(); jQuery('#extra_fields').html(''); }); + jQuery('.refresh').click(function() { + show('photo'); + }); jQuery('#img_container').html(strtoappend); jQuery('#photo_add_url').attr('href', '?ajax=photo_thickbox_url&height=200&width=500'); tb_init('#extra_fields .thickbox'); + + });