From: Prateek Saxena Date: Fri, 24 Mar 2017 10:25:56 +0000 (+0530) Subject: ForeignStructuredUpload.BookletLayout: Use CategoryMultiselectWidget X-Git-Tag: 1.31.0-rc.0~3681^2 X-Git-Url: https://git.heureux-cyclage.org/index.php?a=commitdiff_plain;h=8ca1f5609da8a19791dec087e09a1881207b29bd;p=lhc%2Fweb%2Fwiklou.git ForeignStructuredUpload.BookletLayout: Use CategoryMultiselectWidget ...instead of CategorySelector Bug: T161285 Change-Id: Icd9bb162caa63c5a43f90e31818fc1432c6d66be --- diff --git a/resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js b/resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js index f2b6f5f9c3..8c80cb8ee4 100644 --- a/resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js +++ b/resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js @@ -46,11 +46,11 @@ return mw.ForeignStructuredUpload.BookletLayout.parent.prototype.initialize.call( this ).then( function () { return $.when( - // Point the CategorySelector to the right wiki + // Point the CategoryMultiselectWidget to the right wiki booklet.upload.getApi().then( function ( api ) { // If this is a ForeignApi, it will have a apiUrl, otherwise we don't need to do anything if ( api.apiUrl ) { - // Can't reuse the same object, CategorySelector calls #abort on its mw.Api instance + // Can't reuse the same object, CategoryMultiselectWidget calls #abort on its mw.Api instance booklet.categoriesWidget.api = new mw.ForeignApi( api.apiUrl ); } return $.Deferred().resolve(); @@ -242,7 +242,7 @@ multiline: true, autosize: true } ); - this.categoriesWidget = new mw.widgets.CategorySelector( { + this.categoriesWidget = new mw.widgets.CategoryMultiselectWidget( { // Can't be done here because we don't know the target wiki yet... done in #initialize. // api: new mw.ForeignApi( ... ), $overlay: this.$overlay