/*! * VisualEditor UserInterface MediaWiki WikitextWarningCommand class. * * @copyright See AUTHORS.txt */ /** * Wikitext warning command. * * @class * @extends ve.ui.Command * * @constructor */ ve.ui.MWWikitextWarningCommand = function VeUiMWWikitextWarningCommand() { // Parent constructor ve.ui.MWWikitextWarningCommand.super.call( this, 'mwWikitextWarning' ); this.warning = null; }; /* Inheritance */ OO.inheritClass( ve.ui.MWWikitextWarningCommand, ve.ui.Command ); /* Methods */ /** * @inheritdoc */ ve.ui.MWWikitextWarningCommand.prototype.execute = function () { if ( this.warning && this.warning.isOpen ) { return false; } // eslint-disable-next-line no-jquery/no-html var $message = $( '