PressThis css fixes from Noel, see #7949

git-svn-id: https://develop.svn.wordpress.org/trunk@9857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-11-24 04:29:35 +00:00
parent 41fe934ca5
commit 88d2bae7aa
2 changed files with 35 additions and 8 deletions

View File

@ -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;

View File

@ -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: "<?php echo clean_url($_SERVER['PHP_SELF']); ?>",
cache : false,
async : false,
data: "ajax=photo_images&u=<?php echo urlencode($url); ?>",
dataType : "script"
}).responseText
);
if(my_src.length == 0) {
strtoappend = '<?php _e('Unable to retrieve images or no images on page.'); ?>';
}
}
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('<div class="postbox"><h2>Photo <small id="photo_directions">(<?php _e("click images to select") ?>)</small></h2><ul id="actions"><li><a href="#" id="photo_add_url" class="thickbox button"><?php _e("Add from URL") ?> +</a></li></ul><div class="inside"><div class="titlewrap"><div id="img_container"></div></div><p id="options"><a href="#" class="close button"><?php _e('Cancel'); ?></a></p></div>');
jQuery('#extra_fields').html('<div class="postbox"><h2>Photo <small id="photo_directions">(<?php _e("click images to select") ?>)</small></h2><ul id="actions"><li><a href="#" id="photo_add_url" class="thickbox button"><?php _e("Add from URL") ?> +</a></li></ul><div class="inside"><div class="titlewrap"><div id="img_container"></div></div><p id="options"><a href="#" class="close button"><?php _e('Cancel'); ?></a><a href="#" class="refresh button"><?php _e('Refresh'); ?></a></p></div>');
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');
});
<?php break;
}