mediawiki-extensions-Visual.../modules/ve-mw/init/targets
David Lynch 92c4e231f2 DesktopArticleTarget: consolidate edit tab behavior
What happens when an edit tab is clicked is spread across handlers in
DesktopArticleTarget and DesktopArticleTarget.init. Consolidating the logic
into the handler in DesktopArticleTarget.init makes it easier to understand.

It could be moved further into DesktopArticleTarget, but the init handler has
to exist to activate the target in the first place.

This patches a hole where clicking "edit source" while in visual mode would
sometimes not switch to source mode, because it didn't think it was changing
the current section.

Also, fix a typo in the documentation.

Bug: T198272
Change-Id: I12d958b6af1b9fa9aca68b498eb2a1a2d76b5a82
2018-07-02 16:17:15 -05:00
..
ve.init.mw.DesktopArticleTarget.init.js DesktopArticleTarget: consolidate edit tab behavior 2018-07-02 16:17:15 -05:00
ve.init.mw.DesktopArticleTarget.js DesktopArticleTarget: consolidate edit tab behavior 2018-07-02 16:17:15 -05:00
ve.init.mw.MobileArticleTarget.js MobileArticleTarget: Include placeholder for references 2018-05-24 17:18:50 +00:00