mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
Merge "Fix confirmThanks() for Diff view"
This commit is contained in:
commit
28b276ea2d
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue