Commit graph

4 commits

Author SHA1 Message Date
Inez Korczynski 553f4521a0 VE-2013: Fix problem with PI JS not being executed in preview by using wikipage.content hook
JavaScript for PortableInfoboxes MediaCollections and CollapislbeGroups initialization was executed once while loading the file - so it was working propery for most common case which is displaying article (the view page). However sometimes content is loaded dynamically, after JavaScript already loaded and executed, and for such cases intialization was not happening. In particular such case is loading article preview from within the Classic Editor. Problem is solved by using solid and common MW approach of MediaWiki JavaScript hooks - specifically one named 'wikipage.content' which is meant to be fired whenever wikipage (in any context) is being displayed.
2015-12-04 20:38:10 +00:00
Paul Oslund af4026b386 VE-1996: Create JS to toggle pi-collapse-closed class 2015-10-27 16:52:42 +00:00
Paul Oslund f9055fe97c VE-1961: Handle multiple image collections in infobox 2015-10-21 02:55:23 +00:00
Paul Oslund e6c81a3ea2 VE-1961: Render image collection tabs in infobox 2015-10-20 16:40:56 +00:00