From 9180d9702b11fe0fd6d228037826ccbaa9a31fc5 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Mon, 19 Nov 2012 15:37:19 +0100 Subject: [PATCH] [FIX] Don't leave button@type=submit in IE bzr revid: fme@openerp.com-20121119143719-1uu4s71jyudfi5u3 --- addons/web/static/src/js/view_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index dad622fb7f9..c784b169d12 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -1215,7 +1215,7 @@ instance.web.form.FormRenderingEngine = instance.web.form.FormRenderingEngineInt var doc = $.parseXML('
' + xml + '
'); $('button', doc).each(function() { - $(this).attr('data-button-type', $(this).attr('type')); + $(this).attr('data-button-type', $(this).attr('type')).attr('type', 'button'); }); xml = instance.web.xml_to_str(doc); return $(xml);