WordPress.org

Make WordPress Core

Changeset 7145


Ignore:
Timestamp:
03/03/08 21:15:34 (6 years ago)
Author:
ryan
Message:

Autosave notice styling from mdawaffe. fixes #6054

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r7139 r7145  
    485485 
    486486    $data = ''; 
    487     $message = '<div class="updated"><p>' . sprintf( __('Saved at %s.'), date( __('g:i:s a'), current_time( 'timestamp', true ) ) ) . '</p></div>'; 
     487    $message = sprintf( __('Draft Saved at %s.'), date( __('g:i:s a'), current_time( 'timestamp', true ) ) ); 
    488488 
    489489    $supplemental = array(); 
  • trunk/wp-admin/edit-form-advanced.php

    r7130 r7145  
    149149    echo "<a href='" . wp_nonce_url("post.php?action=delete&amp;post=$post_ID", 'delete-post_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n  'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n  'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete&nbsp;post') . "</a>"; 
    150150?> 
     151<br class="clear" /> 
    151152<?php if ($post_ID): ?> 
    152 <br /> 
    153153<?php printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); ?> 
    154154<?php endif; ?> 
     155<span id="autosave"></span> 
    155156</p> 
    156157 
     
    197198<?php echo $form_pingback ?> 
    198199<?php echo $form_prevstatus ?> 
    199  
    200 <div id="autosave"></div> 
    201200 
    202201<div id="tagsdiv" class="postbox <?php echo postbox_classes('tagsdiv', 'post'); ?>"> 
  • trunk/wp-admin/edit-page-form.php

    r7130 r7145  
    127127    echo "<a href='" . wp_nonce_url("page.php?action=delete&amp;post=$post_ID", 'delete-page_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n  'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n  'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete&nbsp;page') . "</a>"; 
    128128?> 
     129<br class="clear" /> 
    129130<?php if ($post_ID): ?> 
    130 <br /> 
    131131<?php printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); ?> 
    132132<?php endif; ?> 
     133<span id="autosave"></span> 
    133134</p> 
    134135 
     
    170171</div> 
    171172 
    172 <div id="autosave"></div> 
    173  
    174173<?php do_meta_boxes('page', 'normal', $post); ?> 
    175174 
  • trunk/wp-admin/wp-admin.css

    r7142 r7145  
    10461046    margin-bottom: 10px; 
    10471047    margin-right: 8px; 
    1048 } 
    1049  
    1050 #poststuff #autosave { 
    1051     margin: 0; 
    1052     padding: 0; 
    1053 } 
    1054  
    1055 #poststuff #autosave div.updated, #poststuff #autosave div.error { 
    1056     margin: 0 8px 10px 20px; 
    10571048} 
    10581049 
  • trunk/wp-includes/js/autosave.js

    r7143 r7145  
    104104 
    105105function autosave_loading() { 
    106     jQuery('#autosave').html('<div class="updated"><p>' + autosaveL10n.savingText + '</p></div>'); 
     106    jQuery('#autosave').html(autosaveL10n.savingText); 
    107107} 
    108108 
  • trunk/wp-includes/script-loader.php

    r7130 r7145  
    5454            'previewPostText' => __('View this Post'), 
    5555            'requestFile' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php', 
    56             'savingText' => __('Saving&#8230;') 
     56            'savingText' => __('Saving Draft&#8230;') 
    5757        ) ); 
    5858 
Note: See TracChangeset for help on using the changeset viewer.