Use findItemFromData instead getItemFromData

Depends-on: Ia2110f71d1642f61451cb8acc7e8a930d0feb31f
Bug: T76630
Change-Id: I379da96a42c440c7d2d5dc2f3de2773c03546c04
This commit is contained in:
Prateek Saxena 2017-12-28 11:53:29 +05:30
parent 6e46084b89
commit ecd663c4a0

View file

@ -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 ) {