always keep confirm in the same location
This commit is contained in:
parent
6d3c617c28
commit
f862838458
8 changed files with 9 additions and 9 deletions
|
@ -18,13 +18,13 @@ define(['dialog', 'globalize'], function (dialog, globalize) {
|
|||
items.push({
|
||||
name: options.cancelText || globalize.translate('ButtonCancel'),
|
||||
id: 'cancel',
|
||||
type: options.primary === 'cancel' ? 'submit' : 'cancel'
|
||||
type: 'cancel'
|
||||
});
|
||||
|
||||
items.push({
|
||||
name: options.confirmText || globalize.translate('ButtonOk'),
|
||||
id: 'ok',
|
||||
type: options.primary === 'cancel' ? 'cancel' : 'delete'
|
||||
type: options.primary === 'delete' ? 'delete' : 'submit'
|
||||
});
|
||||
|
||||
options.buttons = items;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue