[FIX] buttons order in dialog confirming actions

bzr revid: xmo@openerp.com-20120117153333-6cuih7w3iuuv1mlk
This commit is contained in:
Xavier Morel 2012-01-17 16:33:33 +01:00
parent 48d63ff9c6
commit 68c97bd36b
1 changed files with 5 additions and 5 deletions

View File

@ -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");
}
}
]
});