[Wikitech-l] Registering JavaScript vars for only a certain resource loader module in php

2012-06-22 Thread Daniel Werner
I was wondering whether it is possible somehow to register a javascript var for a certain resource loader module in php? There is the OuputPage::addJsConfigVars function but I didn't find anything to only load a var only conditionally when a module is loaded. Right now I am registering a variable

Re: [Wikitech-l] Registering JavaScript vars for only a certain resource loader module in php

2012-06-22 Thread Ori Livneh
Try this: https://gist.github.com/2974946 (Caveat: I'm new to MediaWiki development so this could be wrong or suboptimal.) On Friday, June 22, 2012 at 12:19 PM, Daniel Werner wrote: I was wondering whether it is possible somehow to register a javascript var for a certain resource loader

Re: [Wikitech-l] Registering JavaScript vars for only a certain resource loader module in php

2012-06-22 Thread Roan Kattouw
On Fri, Jun 22, 2012 at 12:19 PM, Daniel Werner daniel.wer...@wikimedia.de wrote: I was wondering whether it is possible somehow to register a javascript var for a certain resource loader module in php? This is a feature I've been wanting to have in ResourceLoader for a while, but I haven't