[FIX] Don't leave button@type=submit in IE

bzr revid: fme@openerp.com-20121119143719-1uu4s71jyudfi5u3
This commit is contained in:
Fabien Meghazi 2012-11-19 15:37:19 +01:00
parent e2da801694
commit 9180d9702b
1 changed files with 1 additions and 1 deletions

View File

@ -1215,7 +1215,7 @@ instance.web.form.FormRenderingEngine = instance.web.form.FormRenderingEngineInt
var doc = $.parseXML('<div class="oe_form">' + xml + '</div>');
$('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);