Changeset 8275

Show
Ignore:
Timestamp:
07/07/08 21:44:55 (5 months ago)
Author:
mdawaffe
Message:

crazyhorse: fix JS posting from quickpress dashboard widget

Files:

Legend:

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

    r8274 r8275  
    380380    var act = $('#quickpost-action'); 
    381381    var t = $('#quick-press').submit( function() { 
    382         var head = $('#dashboard_quick_press div.dashboard-widget').children( 'div').hide().end().children('h3'); 
    383         head.html( '<span>' + head.html() + '</span><img src="images/loading.gif" style="margin-top: 6px; float: right" /><br class="clear" />' ); 
     382        var head = $('#dashboard_quick_press div.dashboard-widget').children( 'div').hide().end().find('h3 small'); 
     383        head.prepend( '<img src="images/loading.gif" style="margin: 0 6px 0 0; vertical-align: middle" />' ); 
    384384 
    385385        if ( 'post' == act.val() ) { act.val( 'post-quickpress-publish' ); } 
     
    390390        } 
    391391 
    392         $('#dashboard_quick_press').load( t.attr( 'action' ) + ' #dashboard_quick_press div.dashboard-widget', t.serializeArray(), function() { 
     392        $('#dashboard_quick_press').load( t.attr( 'action' ) + ' #dashboard_quick_press > *', t.serializeArray(), function() { 
    393393            if ( 'undefined' != typeof wpTeenyMCEInit && $.isFunction( wpTeenyMCEInit ) ) { wpTeenyMCEInit(); } 
    394394            quickPressLoad($);