Phoenix303 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/210274
Change subject: List only x other groups in the group selector
......................................................................
List only x other groups in the group selector
Return indexes not found in the groupList.
Change-Id: I8eab5af400d65cc5ae70ba2dcf412eab7f9e82d2
---
M resources/js/ext.translate.special.searchtranslations.js
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate
refs/changes/74/210274/1
diff --git a/resources/js/ext.translate.special.searchtranslations.js
b/resources/js/ext.translate.special.searchtranslations.js
index f2b8641..e20e35c 100644
--- a/resources/js/ext.translate.special.searchtranslations.js
+++ b/resources/js/ext.translate.special.searchtranslations.js
@@ -266,7 +266,10 @@
}
};
groups = $.map( resultGroups, function ( value, index )
{
- return index;
+ // Return groups not in groupList
+ if ( $.inArray( index, groupList ) === -1 ) {
+ return index;
+ }
} );
$grouSelectorTrigger.msggroupselector(
options,
--
To view, visit https://gerrit.wikimedia.org/r/210274
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8eab5af400d65cc5ae70ba2dcf412eab7f9e82d2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Phoenix303 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits