diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js index 4a418e8104..24323715b1 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js @@ -897,7 +897,9 @@ ve.init.mw.ViewPageTarget.prototype.editSource = function () { confirmDialog.open( { 'prompt': ve.msg( 'visualeditor-mweditmodesource-warning' ), 'okLabel': ve.msg( 'visualeditor-mweditmodesource-warning-switch' ), - 'cancelLabel': ve.msg( 'visualeditor-mweditmodesource-warning-cancel' ) + 'okFlags': [ 'primary' ], + 'cancelLabel': ve.msg( 'visualeditor-mweditmodesource-warning-cancel' ), + 'cancelFlags': [] } ); confirmDialog.connect( this, { 'ok': function () {