MinervaNeue/includes/skins
Bartosz Dziewoński 6b0ce86410 Make Minerva section editing more like other skins
Goal: Make skins.minerva.editor not rely on Minerva-specific markup.

SkinMinerva.php:
* Add `class="mw-editsection"` to section edit links in SkinMinerva.
  This is the default behavior in SkinTemplate.
* Tweak the page "Edit" link generated in PHP to be the same as the
  link we were generating in JS: add class="edit-page" and change the
  message for the text.
* (Fix an unrelated code comment that was incorrect.)

skins.minerva.content.styles/hacks.less:
* Remove a hack that was hiding .mw-editsection, since we now use it.

skins.minerva.editor/init.js:
* Stop using the `data-section` attribute on links to decide which
  page section to open in the editor. Instead, use the `href`
  attribute and extract the `section` URL parameter from it.
* Stop using the `edit-page` class to find section edit links.
  Instead, use the `mw-editsection` class.
* Remove super weird code that removed the original "Edit" link from
  the page and generated an identical one to replace it, instead of
  just adding event handlers to the existing one.
* Centralize event handling for all types of edit links.

Bug: T198765
Change-Id: I79639c738ff1c3ec4b48ee2e462d23060151a21b
2018-10-04 14:07:27 -07:00
..
MenuBuilder.php Split MenuEntry to its own file 2018-04-19 23:16:55 +00:00
MenuEntry.php Split MenuEntry to its own file 2018-04-19 23:16:55 +00:00
MinervaTemplate.php Hygiene: replace header and content divs 2018-08-10 20:44:14 +00:00
SkinMinerva.php Make Minerva section editing more like other skins 2018-10-04 14:07:27 -07:00
SkinUserPageHelper.php Simplify SkinUserPageHelper constructor 2018-04-15 16:38:50 -07:00
banners.mustache Minerva is its own skin 2017-07-12 08:12:40 -07:00
footer.mustache Remove horizontal line from popups preview in MinervaNeue skin 2018-01-30 20:06:42 +01:00
history.mustache Hygiene: Refactor Minerva history link generation 2017-11-27 14:27:11 -08:00
minerva.mustache Add a notifications overlay container to the skin 2018-09-06 16:25:19 +00:00
secondaryButton.mustache Notification icon should not show NaN for persian Wikipedia 2017-10-26 20:27:12 +00:00
user_page_links.mustache Prefix icons in Minerva 2018-01-19 15:30:03 -08:00