Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/67340
Change subject: Return watch list star to search results
......................................................................
Return watch list star to search results
Change-Id: Ia4cf3b74694f6e0f43dc80fcfc30cac197827478
---
M includes/Resources.php
M javascripts/modules/mf-watchstar.js
2 files changed, 4 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/40/67340/1
diff --git a/includes/Resources.php b/includes/Resources.php
index 34a6535..cd8e692 100644
--- a/includes/Resources.php
+++ b/includes/Resources.php
@@ -404,10 +404,10 @@
'javascripts/modules/mf-toggle.js',
'javascripts/modules/mf-cleanuptemplates.js',
'javascripts/modules/mf-last-modified.js',
- 'javascripts/modules/mf-watchstar.js',
'javascripts/modules/mf-photo.js',
'javascripts/modules/mainmenutweaks.js',
'javascripts/modules/search-2.js',
+ 'javascripts/modules/mf-watchstar.js',
'javascripts/modules/mf-references.js'
),
'messages' => array(
diff --git a/javascripts/modules/mf-watchstar.js
b/javascripts/modules/mf-watchstar.js
index bb5c1e0..aa98d5f 100644
--- a/javascripts/modules/mf-watchstar.js
+++ b/javascripts/modules/mf-watchstar.js
@@ -2,6 +2,7 @@
var api = M.require( 'api' ), w = ( function() {
var popup = M.require( 'notifications' ),
+ searchOverlay = M.require( 'search' ).overlay,
CtaDrawer = M.require( 'CtaDrawer' ),
drawer = new CtaDrawer( {
content: mw.msg( 'mobile-frontend-watchlist-cta' ),
@@ -219,8 +220,8 @@
}
function upgradeUI() {
- M.on( 'search-results', function( $ul ) {
- initWatchListIconList( $ul );
+ searchOverlay.on( 'write-results', function( overlay ) {
+ initWatchListIconList( overlay.$( 'ul' ) );
} );
}
--
To view, visit https://gerrit.wikimedia.org/r/67340
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia4cf3b74694f6e0f43dc80fcfc30cac197827478
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits