mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Fix incorrect uses of context
Change-Id: Ib8b2dd12db567e9373b633c5c7a0b2990c638d97
This commit is contained in:
parent
92b82c67fe
commit
c360e550de
|
@ -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 );
|
||||
}
|
||||
} );
|
||||
};
|
||||
|
|
|
@ -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 } );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue