https://bugzilla.wikimedia.org/show_bug.cgi?id=52064
--- Comment #3 from Matthew Flaschen <[email protected]> --- Using SkinTemplateNavigation is an option. However, since it only works with JS anyway, it might be simpler to just use mw.util.addPortletLink. You can use https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FVisualEditor.git/0e1ad8a1bbe161741ca43a406f7d36d1a38cf26b/modules%2Fve-mw%2Finit%2Ftargets%2Fve.init.mw.ViewPageTarget.init.js#L175 as a starting point. You don't need to use a URL parameter the way they're doing (veaction=edit), though you can (it would be a little more work, but it allows bookmarking the annotation view). The simpler approach is to just use a click listener. When it is clicked, load the annotations, and mark the tab selected (there is a 'selected' class you should add to the new tab and remove from the others). If they are in annotation view, and click ca-view, or a tab starting with ca-nstab- (e.g. "Page" on annotator.wmflabs.org), select that, unselect the annotator tab, and destroy the annotations. For the nstab one, I think you can use $( '[id^="ca-nstab-"]' ). This part means it won't trigger a reload when they want to leave annotation view. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
