Merge "Fix confirmThanks() for Diff view"

This commit is contained in:
jenkins-bot 2013-07-09 23:55:27 +00:00 committed by Gerrit Code Review
commit 28b276ea2d

View file

@ -41,6 +41,9 @@
var confirmThanks = function( $thankLink ) {
var recipient = $thankLink.parent().find( '.mw-userlink' ).text();
if ( recipient === '' ) { // for Diff view
recipient = $thankLink.parents( '.diff-ntitle' ).find( '.mw-userlink' ).text();
}
var $dialog = $( '<div>' ).msg( 'thanks-confirmation', mw.user, recipient );
$dialog.dialog( {
autoOpen: false,