MediaWiki talk:Gadget-morebits.js

This is an old revision of this page, as edited by MSGJ (talk | contribs) at 10:14, 19 May 2011 (IndexOf x $.inArray: re). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 14 years ago by MSGJ in topic IndexOf x $.inArray

Could a friendly admin please copy the contents of User:This, that and the other/temp/MediaWiki:Gadget-morebits.js to this page? I am currently in the process of testing this gadget script. — This, that, and the other (talk) 08:09, 16 May 2011 (UTC)Reply

Friendly admin gladly complies. Amalthea 10:10, 16 May 2011 (UTC)Reply


IndexOf x $.inArray

Wouldn't be better to change

mw.config.get( 'wgUserGroups' ).indexOf( group ) !== -1

to

$.inArray(group, mw.config.get( 'wgUserGroups' ))

to ensure cross-browser support? Helder 13:55, 18 May 2011 (UTC)Reply

I have no idea. But as there is no opposition I have made the change for you. — Martin (MSGJ · talk) 10:14, 19 May 2011 (UTC)Reply