mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Use findItemFromData instead getItemFromData
Depends-on: Ia2110f71d1642f61451cb8acc7e8a930d0feb31f Bug: T76630 Change-Id: I379da96a42c440c7d2d5dc2f3de2773c03546c04
This commit is contained in:
parent
6e46084b89
commit
ecd663c4a0
|
@ -113,7 +113,7 @@ ve.ui.MWMetaDialog.prototype.getSetupProcess = function ( data ) {
|
|||
isSource = ve.init.target.getSurface().getMode() === 'source';
|
||||
|
||||
visualOnlyPages.forEach( function ( page ) {
|
||||
selectWidget.getItemFromData( page ).setDisabled( isSource );
|
||||
selectWidget.findItemFromData( page ).setDisabled( isSource );
|
||||
} );
|
||||
|
||||
if ( isSource && visualOnlyPages.indexOf( data.page || 'categories' ) !== -1 ) {
|
||||
|
|
Loading…
Reference in a new issue