mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Fix two typos + one js integer casting
Change-Id: Ie5c4c39e94e5531dbfa48e8cde7b608967cec0c8
This commit is contained in:
parent
f9a5cc717f
commit
8817b53fe9
|
@ -54,7 +54,7 @@ class EchoUserRightsFormatter extends EchoBasicFormatter {
|
|||
// Set up link parameters based on the destination (or pass to parent)
|
||||
switch ( $destination ) {
|
||||
case 'user-rights-list':
|
||||
$target = SpeicalPage::getTitleFor( 'ListsGroupRights' );
|
||||
$target = SpecialPage::getTitleFor( 'ListGroupRights' );
|
||||
break;
|
||||
default:
|
||||
return parent::getLinkParams( $event, $user, $destination );
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
$li.click( function() {
|
||||
if ( mw.echo.clickThroughEnabled ) {
|
||||
// Log the clickthrough
|
||||
mw.echo.logInteraction( 'notification-link-click', 'flyout', data.id, data.type );
|
||||
mw.echo.logInteraction( 'notification-link-click', 'flyout', +data.id, data.type );
|
||||
}
|
||||
window.location.href = $li.find( '.mw-echo-notification-primary-link' ).attr( 'href' );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue