Fix custom no results again

Since we added .i18n() call to upstream, it started overwriting
our text from the default data-i18n. Change data-i18n instead.

Bug: T188860
Change-Id: Ib7e9fb9590ace9c2a4ce2e2afb5a740ae4346be6
This commit is contained in:
Niklas Laxström
2018-03-05 14:17:12 +01:00
parent 67d470a9e7
commit 9a6e8a2bc9

View File

@@ -197,7 +197,7 @@
// Customize the message
$defaultTemplate
.find( '.uls-no-results-found-title' )
.text( mw.msg( 'ext-uls-compact-no-results' ) );
.data( 'i18n', 'ext-uls-compact-no-results' );
return $defaultTemplate;
}
} );