mediawiki-skins-MinervaNeue/resources/skins.minerva.scripts
Bartosz Dziewoński a1e75213da Fix posting talk page replies on pages with subsections
The MobileFrontend section numbers that were used here only count
top-level sections, but this value was passed to code in
MobileFrontend's TalkSectionOverlay#onSaveClick, which uses an API
expecting the standard MediaWiki section numbers.

Extract the section number from the section edit link, like we do
in mobile.init/editor.js in MobileFrontend.

Also, disable the special talk page view unless we're viewing the
latest revision of the page. That could also lead to posting in the
wrong section, as sections are often added and removed, which changes
the numbers.

Bug: T252828
Change-Id: I553a508658804dd8672f2268b7118f77458a9dba
2020-05-14 22:57:00 +02:00
..
page-issues Use document.body and document.documentElement as jQuery selector 2020-01-06 14:33:44 +01:00
AB.js Curtail use of mw.mobileFrontend in Minerva 2019-10-01 14:54:59 +00:00
addPortletLink.js setAttribute takes a string not an array 2020-03-02 12:05:42 -08:00
ctaDrawers.js Remove redundant click handling from Minerva drawers.js 2020-01-14 11:59:30 -08:00
downloadPageAction.js Remove eslint "valid-jsdoc" rules/fix linting errors 2020-02-07 13:59:24 -07:00
drawers.js Remove redundant click handling from Minerva drawers.js 2020-01-14 11:59:30 -08:00
errorLogging.js Remove wgMinervaErrorLogSamplingRate 2019-10-03 14:57:14 +00:00
initMobile.js Replacing instances of toast.show() with mw.notify() 2020-05-13 16:59:07 +05:30
menu.js Simplify menu code 2019-12-19 12:14:13 -08:00
mobileRedirect.js Update amc outreach code to reflect new drawer changes 2020-01-14 02:04:57 +00:00
preInit.js Dev: Address some FIXMEs 2020-02-03 08:43:18 +00:00
references.js Do not add the navigation-enabled class to body tag for drawers 2020-01-14 01:20:40 +00:00
search.js Curtail use of mw.mobileFrontend in Minerva 2019-10-01 14:54:59 +00:00
searchSuggestReveal.js Make MobileFrontend dependency a soft one 2020-01-17 14:02:23 -08:00
setup.js Remove obsolete fallback CSS classes 2020-03-26 17:52:58 -07:00
styles.less Use .text-overflow() mixin from 'mediawiki.mixins' 2020-04-21 11:49:30 -07:00
TabScroll.js Use document.body and document.documentElement as jQuery selector 2020-01-06 14:33:44 +01:00
talk.js Fix posting talk page replies on pages with subsections 2020-05-14 22:57:00 +02:00
TitleUtil.js mediawiki.RegExp (deprecated) -> mediawiki.util 2019-09-09 18:10:35 +00:00
Toolbar.js Rename several icons to WikimediaUI naming 2020-03-31 11:48:57 -07:00
UriUtil.js Embrace packageFiles 2019-07-16 18:04:10 +00:00
watchstar.js Use core watchstar code 2019-10-15 15:33:25 -07:00