WordPress.org

Plugin Directory

Ticket #1438: admin.js.diff

File admin.js.diff, 489 bytes (added by kingkool68, 2 years ago)

Fix to make Co-Author list sortable so an editor can define the order the authors should be displayed.

  • admin.js

     
    480480                var newCO = coauthors_create_autosuggest('', false); 
    481481                coauthors_add_to_table(newCO); 
    482482        } 
     483         
     484        // Make co-authors sortable so an editor can control the order of the authors   
     485        jQuery('#coauthors-edit').ready(function($) { 
     486        $( "#coauthors-list" ).sortable({ axis: 'y', containment: 'parent'     }); 
     487        }); 
    483488 
    484489});