Make WordPress Core

Changeset 34159


Ignore:
Timestamp:
09/15/2015 01:30:36 AM (9 years ago)
Author:
wonderboymusic
Message:

After [34070], account for the new ID in Quick Edit JS.

Props afercia.
Fixes #33770.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/edit-comments.js

    r34094 r34159  
    541541        $('a.cancel', row).click(function() { return commentReply.revert(); });
    542542        $('a.save', row).click(function() { return commentReply.send(); });
    543         $('input#author, input#author-email, input#author-url', row).keypress(function(e){
     543        $( 'input#author-name, input#author-email, input#author-url', row ).keypress( function( e ) {
    544544            if ( e.which == 13 ) {
    545545                commentReply.send();
     
    642642
    643643        if ( action == 'edit' ) {
    644             $('#author', editRow).val( $('div.author', rowData).text() );
     644            $( '#author-name', editRow ).val( $( 'div.author', rowData ).text() );
    645645            $('#author-email', editRow).val( $('div.author-email', rowData).text() );
    646646            $('#author-url', editRow).val( $('div.author-url', rowData).text() );
Note: See TracChangeset for help on using the changeset viewer.