Make WordPress Core


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.