mediawiki-extensions-Visual.../modules/ve-mw/init
Bartosz Dziewoński 0462b6ed8f ve.init.mw.DesktopArticleTarget: Refactor redirect interface handling
Redirect pages have two extra things not present on normal pages:
* Redirect subtitle: the "Redirect page" shown under the page heading.
* Redirect page content header: the "↳ Foo" at the beginning of content.

Our handling was pretty messy and had some bugs (T161614).

Notable behavior changes:
* Update 'wgIsRedirect' in mw.config after saving the page.
* Use #mw-content-text rather than .mw-jump for inserting the fake .redirectMsg.
  .mw-jump is not guaranteed to exist on the page (it's a skin feature).
* Never replace the real .redirectMsg existing on the page, except by the
  new HTML after a page is saved. Our fake is separate now.

Bug: T161614
Change-Id: I96a5e45a71bf10bf6a2b501dc0cf81e6c37060ec
2017-03-28 17:40:23 +02:00
..
styles Merge "ve.init.mw.DesktopTarget: Use mw-body-content instead of mw-body to match Vector changes" 2017-03-07 18:32:22 +00:00
targets ve.init.mw.DesktopArticleTarget: Refactor redirect interface handling 2017-03-28 17:40:23 +02:00
classListSkipFunction.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.ApiResponseCache.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.ArticleTarget.js Introduce visual differ in the save dialog 2017-03-16 15:33:54 +00:00
ve.init.mw.ArticleTargetEvents.js ArticleTarget: Give users a specific message when HookAborted errors happen 2017-01-11 10:46:30 -08:00
ve.init.mw.ArticleTargetLoader.js ArticleTargetLoader: wikitext switch shouldn't require FullRestbaseURL 2017-03-09 11:30:16 -06:00
ve.init.mw.GalleryImageInfoCache.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.ImageInfoCache.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.LinkCache.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.Platform.init.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.Platform.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.Target.js Update VE core submodule to master (ef5dc965f) 2017-03-16 12:42:42 -07:00
ve.init.mw.trackSubscriber.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.MWEditingTabDialog.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.MWEditModeTool.js Use more specific event name for switching editor from the toolbar 2017-02-28 23:07:54 +00:00
ve.init.MWVESwitchConfirmDialog.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.MWVESwitchPopupWidget.js Use list tool group for editor switching 2017-02-28 15:06:48 +00:00
ve.init.MWWelcomeDialog.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00