mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
preloadparams on other platforms supports numbered indexes
Change-Id: I4f1f5e8758007ab95e342ad5429c909f495d8deb
This commit is contained in:
parent
e6282e9dd8
commit
fed37fcc82
|
@ -97,6 +97,7 @@
|
|||
"oojs-ui-windows",
|
||||
"mediawiki.api",
|
||||
"mediawiki.Title",
|
||||
"mediawiki.Uri",
|
||||
"mediawiki.util",
|
||||
"mediawiki.storage",
|
||||
"mediawiki.String",
|
||||
|
|
|
@ -174,7 +174,8 @@ ReplyLinksController.prototype.parseNewTopicLink = function ( href ) {
|
|||
data.preload = url.searchParams.get( 'preload' );
|
||||
}
|
||||
if ( url.searchParams.getAll( 'preloadparams[]' ).length ) {
|
||||
data.preloadparams = url.searchParams.getAll( 'preloadparams[]' );
|
||||
// Handle numbered array parameters like MediaWiki's PHP code does (T231382)
|
||||
data.preloadparams = new mw.Uri( url.toString(), { arrayParams: true } ).query.preloadparams;
|
||||
}
|
||||
if ( url.searchParams.get( 'preloadtitle' ) ) {
|
||||
data.preloadtitle = url.searchParams.get( 'preloadtitle' );
|
||||
|
|
Loading…
Reference in a new issue