Make WordPress Core

Changeset 9838


Ignore:
Timestamp:
11/21/2008 11:31:59 PM (16 years ago)
Author:
azaozz
Message:

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

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/press-this.css

    r9787 r9838  
    446446    -webkit-border-radius: 11px;
    447447    border-radius: 11px;
    448     -moz-box-sizing: content-box;
    449     -webkit-box-sizing: content-box;
    450     -khtml-box-sizing: content-box;
    451     box-sizing: content-box;
    452448}
    453449.button-primary {
  • trunk/wp-admin/press-this.php

    r9787 r9838  
    413413        }
    414414    }
    415 
    416415    jQuery(document).ready(function() {
    417416        //resize screen
    418         top.resizeTo(720-screen.width+screen.availWidth,660-screen.height+screen.availHeight);
     417        window.resizeTo(720,570);
     418       
    419419        jQuery('#photo_button').click(function() { show('photo'); return false; });
    420420        jQuery('#video_button').click(function() { show('video'); return false; });
     
    449449            <?php wp_nonce_field('press-this') ?>
    450450            <input type="hidden" name="post_type" id="post_type" value="text"/>
    451        
     451        <input type="hidden" name="autosave" id="autosave" />
    452452            <!-- This div holds the photo metadata -->
    453453            <div class="photolist"></div>
     
    544544                    <textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15">
    545545                    <?php if ($selection) echo wp_richedit_pre(htmlspecialchars_decode($selection)); ?>
    546                     <?php if ($url) { echo '<p>'; if($selection) _e('via '); echo "<a href='$url'>$title</a>"; echo '</p>'; } ?>
     546                    <?php if ($url) { echo '<p>'; if($selection) _e('via '); echo "<a href='$url'>$title</a>."; echo '</p>'; } ?>
    547547                    </textarea>
    548548                </div>
  • trunk/wp-includes/link-template.php

    r9831 r9838  
    13801380            g=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=2';
    13811381            function a(){
    1382                 if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=700,height=500')){
     1382                if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=720,height=570')){
    13831383                    l.href=g;
    13841384                }
Note: See TracChangeset for help on using the changeset viewer.