Fix incorrect uses of context

Change-Id: Ib8b2dd12db567e9373b633c5c7a0b2990c638d97
This commit is contained in:
Ed Sanders 2024-05-01 12:41:46 +01:00
parent 92b82c67fe
commit c360e550de
2 changed files with 4 additions and 2 deletions

View file

@ -35,6 +35,8 @@ OO.inheritClass( ve.ui.MWMobileSaveDialog, ve.ui.MWSaveDialog );
* @inheritdoc
*/
ve.ui.MWMobileSaveDialog.prototype.initialize = function () {
var dialog = this;
// Parent method
ve.ui.MWMobileSaveDialog.super.prototype.initialize.call( this );
@ -45,7 +47,7 @@ ve.ui.MWMobileSaveDialog.prototype.initialize = function () {
var licenseMsg = req( 'mobile.startup' ).license();
if ( licenseMsg ) {
// eslint-disable-next-line no-jquery/no-html
this.$license.html( licenseMsg );
dialog.$license.html( licenseMsg );
}
} );
};

View file

@ -409,7 +409,7 @@ ve.ui.MWSettingsPage.prototype.teardown = function ( data ) {
isSelected = metaItemCheckbox.fieldLayout.getField().isSelected();
if ( currentItem && !isSelected ) {
this.fragment.removeMeta( currentItem );
settingsPage.fragment.removeMeta( currentItem );
} else if ( !currentItem && isSelected ) {
settingsPage.fragment.insertMeta( { type: metaItemCheckbox.metaName } );
}