WordPress.org

Make WordPress Core

Changeset 8482


Ignore:
Timestamp:
07/29/2008 01:06:06 AM (10 years ago)
Author:
mdawaffe
Message:

crazyhorse: save and continue from quickpress should go to edit post screen. This code needs cleaning up

Location:
branches/crazyhorse/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-admin/includes/dashboard.php

    r8465 r8482  
    388388    var act = $('#quickpost-action');
    389389    var t = $('#quick-press').submit( function() {
     390        if ( 'post-quickpress-save-cont' == act.val() ) {
     391            return true;
     392        }
     393
    390394        var head = $('#dashboard_quick_press div.dashboard-widget').children( 'div').hide().end().find('h3 small');
    391395        head.prepend( '<img src="images/loading.gif" style="margin: 0 6px 0 0; vertical-align: middle" />' );
     
    406410
    407411    $('#publish').click( function() { act.val( 'post-quickpress-publish' ); } );
    408     $('#save-cont').click( function() { act.val( 'post-quickpress-save-cont' ); } );
     412    $('#save-cont').click( function() { act.val( 'post-quickpress-save-cont' ); t.attr( 'action', 'post.php' ); } );
    409413};
    410414jQuery( quickPressLoad );
  • branches/crazyhorse/wp-admin/post.php

    r8446 r8482  
    7575    }
    7676
    77     if ( 0 === strpos( $action, 'post-quickpress' ) ) {
     77    if ( 'post-quickpress-save-cont' != $action && 0 === strpos( $action, 'post-quickpress' ) ) {
    7878        $_POST['post_ID'] = $post_ID;
    7979        // output the quickpress dashboard widget
Note: See TracChangeset for help on using the changeset viewer.