From ecd663c4a03670d18c9b10ea271f0c920688c619 Mon Sep 17 00:00:00 2001 From: Prateek Saxena Date: Thu, 28 Dec 2017 11:53:29 +0530 Subject: [PATCH] Use findItemFromData instead getItemFromData Depends-on: Ia2110f71d1642f61451cb8acc7e8a930d0feb31f Bug: T76630 Change-Id: I379da96a42c440c7d2d5dc2f3de2773c03546c04 --- modules/ve-mw/ui/dialogs/ve.ui.MWMetaDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWMetaDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWMetaDialog.js index a0520d27f7..bad496b590 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWMetaDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWMetaDialog.js @@ -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 ) {