mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
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:
parent
a5dd438725
commit
96809998f2
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue