mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Fix inserting images, uploader buttons add Press This nag after submitting in Quick Press
git-svn-id: http://svn.automattic.com/wordpress/trunk@10125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5426f43c7d
commit
34a17a5188
@ -308,6 +308,7 @@ function wp_dashboard_quick_press() {
|
||||
if ( $drafts_query->posts )
|
||||
$drafts =& $drafts_query->posts;
|
||||
}
|
||||
printf('<p class="textright">' . __('You can also try %s, easy blogging from anywhere on the Web.') . '</p>', '<a href="tools.php">' . __('Press This') . '</a>' );
|
||||
$_REQUEST = array(); // hack for get_default_post_to_edit()
|
||||
}
|
||||
|
||||
@ -328,6 +329,8 @@ function wp_dashboard_quick_press() {
|
||||
<div class="textarea-wrap">
|
||||
<textarea name="content" id="content" class="mceEditor" rows="3" cols="15" tabindex="2"><?php echo $post->post_content; ?></textarea>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">edCanvas = document.getElementById('content');edInsertContent = null;</script>
|
||||
|
||||
<h4><label for="tags-input"><?php _e('Tags') ?></label></h4>
|
||||
<div class="input-text-wrap">
|
||||
|
@ -1,4 +1,3 @@
|
||||
var edCanvas;
|
||||
|
||||
jQuery( function($) {
|
||||
|
||||
@ -38,6 +37,8 @@ var quickPressLoad = function() {
|
||||
$('#dashboard_quick_press ul').find('li').each( function() {
|
||||
$('#dashboard_recent_drafts ul').prepend( this );
|
||||
} ).end().remove();
|
||||
$(this).find('.hide-if-no-js').removeClass('hide-if-no-js');
|
||||
tb_init('a.thickbox');
|
||||
quickPressLoad();
|
||||
} );
|
||||
return false;
|
||||
@ -45,7 +46,6 @@ var quickPressLoad = function() {
|
||||
|
||||
$('#publish').click( function() { act.val( 'post-quickpress-publish' ); } );
|
||||
|
||||
edCanvas = jQuery('#content');
|
||||
};
|
||||
quickPressLoad();
|
||||
|
||||
|
@ -1048,7 +1048,7 @@ div.comment-item:hover .row-actions {
|
||||
display: block;
|
||||
height: 1.6em;
|
||||
line-height: 1.6em;
|
||||
padding: 0 0.7em;
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
#adminmenu li span.count-0,
|
||||
@ -2263,9 +2263,9 @@ fieldset {
|
||||
|
||||
#replyrow #ed_reply_toolbar input {
|
||||
margin: 1px 2px 1px 1px;
|
||||
min-width: 26px;
|
||||
min-width: 24px;
|
||||
padding: 3px 4px;
|
||||
font-size: 12px;
|
||||
font-size: 11px;
|
||||
-moz-border-radius: 3px;
|
||||
-khtml-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
|
@ -269,7 +269,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'farbtastic', '/wp-admin/js/farbtastic.js', array('jquery'), '1.2' );
|
||||
|
||||
$scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox' ), '20081016' );
|
||||
$scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox' ), '20081208' );
|
||||
|
||||
$scripts->add( 'hoverIntent', '/wp-includes/js/hoverIntent.js', array('jquery'), '20081109' );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user