[FIX] Don't leave button@type=submit in IE
bzr revid: fme@openerp.com-20121119143719-1uu4s71jyudfi5u3
This commit is contained in:
parent
e2da801694
commit
9180d9702b
|
@ -1215,7 +1215,7 @@ instance.web.form.FormRenderingEngine = instance.web.form.FormRenderingEngineInt
|
||||||
|
|
||||||
var doc = $.parseXML('<div class="oe_form">' + xml + '</div>');
|
var doc = $.parseXML('<div class="oe_form">' + xml + '</div>');
|
||||||
$('button', doc).each(function() {
|
$('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);
|
xml = instance.web.xml_to_str(doc);
|
||||||
return $(xml);
|
return $(xml);
|
||||||
|
|
Loading…
Reference in New Issue