Set flags for confirm dialog buttons for switching to source mode

"Yes, switch" isn't constructive; make it primary instead.
"No, cancel" isn't destructive; make it neutral (no flags) instead.

Change-Id: I841cbed4a81eaed679a8c7da89942c6b030a1217
This commit is contained in:
Roan Kattouw 2014-05-19 13:49:52 -07:00
parent a5dd438725
commit 96809998f2

View file

@ -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 () {