mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Restore a way to delete transclusions on mobile
For most nodes, isDeletable() returns false on desktop and true on
mobile. Change e0bbf0b979
meant to
change the desktop version to depend on the new config settings, but
accidentally changed mobile too.
Bug: T298828
Change-Id: I8ec5e8031a27eee18c16dfcd267937cc76722c50
This commit is contained in:
parent
835464802a
commit
65d723b62b
|
@ -68,7 +68,7 @@ ve.ui.MWTransclusionContextItem.static.isCompatibleWith =
|
|||
*/
|
||||
ve.ui.MWTransclusionContextItem.prototype.isDeletable = function () {
|
||||
var veConfig = mw.config.get( 'wgVisualEditorConfig' );
|
||||
return veConfig.transclusionDialogBackButton;
|
||||
return veConfig.transclusionDialogBackButton || ve.ui.MWTransclusionContextItem.super.prototype.isDeletable.call( this );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue