[FIX] buttons order in dialog confirming actions
bzr revid: xmo@openerp.com-20120117153333-6cuih7w3iuuv1mlk
This commit is contained in:
parent
48d63ff9c6
commit
68c97bd36b
|
@ -1078,17 +1078,17 @@ openerp.web.form.WidgetButton = openerp.web.form.Widget.extend({
|
|||
title: _t('Confirm'),
|
||||
modal: true,
|
||||
buttons: [
|
||||
{text: _t("Cancel"), click: function() {
|
||||
def.resolve();
|
||||
$(this).dialog("close");
|
||||
}
|
||||
},
|
||||
{text: _t("Ok"), click: function() {
|
||||
self.on_confirmed().then(function() {
|
||||
def.resolve();
|
||||
});
|
||||
$(this).dialog("close");
|
||||
}
|
||||
},
|
||||
{text: _t("Cancel"), click: function() {
|
||||
def.resolve();
|
||||
$(this).dialog("close");
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue