More PressThis updates from Noel, see #7949

git-svn-id: http://svn.automattic.com/wordpress/trunk@9867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-11-25 02:06:52 +00:00
parent 9c3332c2d2
commit 1f84059485
2 changed files with 16 additions and 10 deletions

View File

@ -47,11 +47,8 @@ img {
font-size: 10px;
line-height: 18px;
float: left;
float: left;
}
.howto {
margin-top: 2px;
margin-bottom: 3px;
@ -436,8 +433,20 @@ ul.categorychecklist li {
position: absolute;
}
#content {
width: 96% !important;
margin-left: 1%;
margin-bottom: 10px;
border: 1px solid #f1f1f1;
}
/* Submit */
#saving {
display: inline;
padding-top: 5px;
}
.submit input,
.button,
.button-primary,

View File

@ -127,10 +127,8 @@ switch ($_REQUEST['ajax']) {
<div class="postbox">
<h2><label for="embed-code"><?php _e('Embed Code') ?></label></h2>
<div class="inside">
<textarea name="embed-code" id="embed-code" rows="8" cols="40"><?php echo format_to_edit($selection, true); ?></textarea>
<p id="options"><a href="#" class="select button"><?php _e('Insert Video'); ?></a> <a href="#" class="close button"><?php _e('Cancel'); ?></a></p>
<p id="options"><a href="#" class="select button"><?php _e('Insert Video'); ?></a> <a href="#" class="close button"><?php _e('Cancel'); ?></a></p>
</div>
</div>
<?php break;
@ -140,7 +138,6 @@ switch ($_REQUEST['ajax']) {
jQuery('.cancel').click(function() {
tb_remove();
});
jQuery('.select').click(function() {
image_selector();
});
@ -297,7 +294,7 @@ switch ($_REQUEST['ajax']) {
if(length == 0) length = 1;
jQuery('.photolist').append('<input name="photo_src[' + length + ']" value="' + img +'" type="hidden"/>');
jQuery('.photolist').append('<input name="photo_description[' + length + ']" value="' + desc +'" type="hidden"/>');
insert_editor( "\n\n" + '<p style="text-align: center;"><a href="<?php echo $url; ?>"><img src="' + img +'" alt="' + desc + '" /></a></p>');
insert_editor( "\n\n" + encodeURI('<p style="text-align: center;"><a href="<?php echo $url; ?>"><img src="' + img +'" alt="' + desc + '" /></a></p>'));
}
return false;
}
@ -385,7 +382,7 @@ die;
}
function insert_editor(text) {
if ( '' != text && tinyMCE.activeEditor && ! tinyMCE.activeEditor.isHidden()) {
tinyMCE.execCommand('mceInsertContent', false, '<p>' + tinymce.DOM.decode(text) + '</p>', {format : 'raw'});
tinyMCE.execCommand('mceInsertContent', false, '<p>' + decodeURI(tinymce.DOM.decode(text)) + '</p>', {format : 'raw'});
} else {
insert_plain_editor(text);
}
@ -457,7 +454,7 @@ die;
show('photo');
<?php } ?>
jQuery('#publish, #save').click(function() { alert('test'); jQuery('#saving').css('display', 'inline'); });
jQuery('#publish, #save').click(function() { jQuery('#saving').css('display', 'inline'); });
});
</script>
</head>