PressThis fixes for window resizing and Chrome bugs from Noel, see #7949

git-svn-id: http://svn.automattic.com/wordpress/trunk@9838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-11-21 23:31:59 +00:00
parent d0180451c4
commit e289acf038
3 changed files with 5 additions and 9 deletions

View File

@ -445,10 +445,6 @@ margin-top: 3px;
-khtml-border-radius: 11px;
-webkit-border-radius: 11px;
border-radius: 11px;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
-khtml-box-sizing: content-box;
box-sizing: content-box;
}
.button-primary {
background:#21759B url(../images/button-grad.png) repeat-x scroll left top;

View File

@ -412,10 +412,10 @@ die;
break;
}
}
jQuery(document).ready(function() {
//resize screen
top.resizeTo(720-screen.width+screen.availWidth,660-screen.height+screen.availHeight);
window.resizeTo(720,570);
jQuery('#photo_button').click(function() { show('photo'); return false; });
jQuery('#video_button').click(function() { show('video'); return false; });
jQuery('#visual_mode_button').click(function() {
@ -448,7 +448,7 @@ die;
<?php wp_nonce_field('press-this') ?>
<input type="hidden" name="post_type" id="post_type" value="text"/>
<input type="hidden" name="autosave" id="autosave" />
<!-- This div holds the photo metadata -->
<div class="photolist"></div>
@ -543,7 +543,7 @@ die;
<div class="editor-container">
<textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15">
<?php if ($selection) echo wp_richedit_pre(htmlspecialchars_decode($selection)); ?>
<?php if ($url) { echo '<p>'; if($selection) _e('via '); echo "<a href='$url'>$title</a>"; echo '</p>'; } ?>
<?php if ($url) { echo '<p>'; if($selection) _e('via '); echo "<a href='$url'>$title</a>."; echo '</p>'; } ?>
</textarea>
</div>

View File

@ -1379,7 +1379,7 @@ function get_shortcut_link() {
e=encodeURIComponent,
g=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=2';
function a(){
if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=700,height=500')){
if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=720,height=570')){
l.href=g;
}
}";