jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Florianschmidtwelzow: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I35cd90d776534fddca4a7cd45cf0f641a11925dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Bene <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to