Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Guest Authors: Always show the display name when deleting, as the PHP…

… will fall back to rendering user_login if the display name isn't available

Also, when a user has selected a guest author to reassign to, trigger the click event for the radio button

See #30
  • Loading branch information...
commit 0bf7077f87353c166e8ffb8d21c31d0d6a1b17aa 1 parent db5857d
@danielbachhuber danielbachhuber authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 js/guest-authors.js
View
11 js/guest-authors.js
@@ -20,13 +20,12 @@ jQuery(document).ready(function($){
}
},
formatResult: function( object, container, query ) {
- if ( object.display_name )
- return object.display_name;
- else
- return object.user_login;
+ return object.display_name;
},
formatSelection: function( object, container ) {
- return object.user_login;
- },
+ return object.display_name;
+ }
+ }).on('change', function() {
+ $('#reassign-another').trigger('click');
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.