Bene has uploaded a new change for review.
https://gerrit.wikimedia.org/r/234675
Change subject: Allow to use custom displayTitle in search
......................................................................
Allow to use custom displayTitle in search
Bug: T85368
Change-Id: I35cd90d776534fddca4a7cd45cf0f641a11925dd
---
M resources/mobile.search/SearchApi.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/75/234675/1
diff --git a/resources/mobile.search/SearchApi.js
b/resources/mobile.search/SearchApi.js
index f3fa82b..813787a 100644
--- a/resources/mobile.search/SearchApi.js
+++ b/resources/mobile.search/SearchApi.js
@@ -86,7 +86,7 @@
_getPageData: function ( query, info ) {
return {
id: info.pageid,
- displayTitle: this._highlightSearchTerm(
info.title, query ),
+ displayTitle: this._highlightSearchTerm(
info.displayTitle || info.title, query ),
title: info.title,
url: mw.util.getUrl( info.title ),
thumbnail: info.thumbnail
--
To view, visit https://gerrit.wikimedia.org/r/234675
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I35cd90d776534fddca4a7cd45cf0f641a11925dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Bene <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits