From 68c97bd36b6d2d103f058ddedc298306de6370cb Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 16:33:33 +0100 Subject: [PATCH] [FIX] buttons order in dialog confirming actions bzr revid: xmo@openerp.com-20120117153333-6cuih7w3iuuv1mlk --- addons/web/static/src/js/view_form.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 4fda331540b..ebcbfc18100 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -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"); - } } ] });