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:
parent
41fe934ca5
commit
88d2bae7aa
@ -34,7 +34,6 @@ img {
|
|||||||
border-radius-bottomright: 0;
|
border-radius-bottomright: 0;
|
||||||
border-radius-topleft: 3px;
|
border-radius-topleft: 3px;
|
||||||
border-radius-topright: 3px;
|
border-radius-topright: 3px;
|
||||||
|
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@ -48,6 +47,7 @@ img {
|
|||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
float: left;
|
float: left;
|
||||||
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -65,7 +65,6 @@ input.text {
|
|||||||
outline-style: none;
|
outline-style: none;
|
||||||
outline-width: medium;
|
outline-width: medium;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#message {
|
#message {
|
||||||
@ -124,11 +123,9 @@ div.zerosize {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
margin: 0 0 10px;
|
margin: 0 0 10px;
|
||||||
|
|
||||||
background-image: url(../images/postbox-bg.gif);
|
background-image: url(../images/postbox-bg.gif);
|
||||||
background-position: left top;
|
background-position: left top;
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
@ -221,12 +218,22 @@ h3.tb {
|
|||||||
margin-top: -19px;
|
margin-top: -19px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
#extra_fields #actions {
|
||||||
|
clear: both;
|
||||||
|
position: absolute;
|
||||||
|
right: 4px;
|
||||||
|
top: 6px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#actions li {
|
#actions li {
|
||||||
float: left;
|
float: left;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
#extra_fields .button {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Photo Styles */
|
/* Photo Styles */
|
||||||
.photolist {
|
.photolist {
|
||||||
@ -331,7 +338,7 @@ h3.tb {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#category-add input {
|
#category-add input {
|
||||||
width: 94%;
|
width: 94%;
|
||||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
margin: 1px;
|
margin: 1px;
|
||||||
|
@ -235,7 +235,6 @@ switch ($_REQUEST['ajax']) {
|
|||||||
// gather images and load some default JS
|
// gather images and load some default JS
|
||||||
var last = null
|
var last = null
|
||||||
var img, img_tag, aspect, w, h, skip, i, strtoappend = "";
|
var img, img_tag, aspect, w, h, skip, i, strtoappend = "";
|
||||||
if(!my_src) {
|
|
||||||
var my_src = eval(
|
var my_src = eval(
|
||||||
jQuery.ajax({
|
jQuery.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
@ -246,7 +245,23 @@ switch ($_REQUEST['ajax']) {
|
|||||||
dataType : "script"
|
dataType : "script"
|
||||||
}).responseText
|
}).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++) {
|
for (i = 0; i < my_src.length; i++) {
|
||||||
img = new Image();
|
img = new Image();
|
||||||
@ -293,14 +308,19 @@ switch ($_REQUEST['ajax']) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
jQuery(document).ready(function() {
|
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('.close').click(function() {
|
||||||
jQuery('#extra_fields').hide();
|
jQuery('#extra_fields').hide();
|
||||||
jQuery('#extra_fields').html('');
|
jQuery('#extra_fields').html('');
|
||||||
});
|
});
|
||||||
|
jQuery('.refresh').click(function() {
|
||||||
|
show('photo');
|
||||||
|
});
|
||||||
jQuery('#img_container').html(strtoappend);
|
jQuery('#img_container').html(strtoappend);
|
||||||
jQuery('#photo_add_url').attr('href', '?ajax=photo_thickbox_url&height=200&width=500');
|
jQuery('#photo_add_url').attr('href', '?ajax=photo_thickbox_url&height=200&width=500');
|
||||||
tb_init('#extra_fields .thickbox');
|
tb_init('#extra_fields .thickbox');
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
<?php break;
|
<?php break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user