Make WordPress Core


Ignore:
Timestamp:
01/27/2014 12:27:42 AM (13 years ago)
Author:
azaozz
Message:

Autosave:

  • Move the 'Saving post' and 'Draft saved at...' strings from autosaveL10n to postL10n as they are used only there.
  • Use the custom jQuery events 'before-autosave' and 'after-autosave' to show these messages.
  • Separate autosave.suspend() for local and server so local autosaves can continue while server autosaves are suspended.
  • Remove the recently added autosave.server.disable() and use autosave.server.suspend() instead.
  • Bring back .button.disabled, button-primary.disabled and use .disabled to prevent multiple form submissions.

See #25272.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r27028 r27038  
    431431                        'published' => __('Published'),
    432432                        'comma' => _x( ',', 'tag delimiter' ),
     433                        'saveAlert' => __('The changes you made will be lost if you navigate away from this page.'),
     434                        'savingText' => __('Saving Draft…'),
    433435                ) );
    434436
     
    654656        wp_localize_script( 'autosave', 'autosaveL10n', array(
    655657                'autosaveInterval' => AUTOSAVE_INTERVAL,
    656                 'savingText' => __('Saving Draft…'),
    657                 'saveAlert' => __('The changes you made will be lost if you navigate away from this page.'),
    658658                'blog_id' => get_current_blog_id(),
    659659        ) );
Note: See TracChangeset for help on using the changeset viewer.