summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2012-03-27 13:02:12 +0200
committerFabien Meghazi <fme@openerp.com>2012-03-27 13:02:12 +0200
commit53c88a671c70a4e04c6f36b1e537c3103d65e8a1 (patch)
tree329bbec98801d621695abefd33d28547b25d8bbb /addons/web/static/src/js
parentcd7ee557191acb2e82a2b8736cec24cf31949411 (diff)
[FIX] Wrap xml into a div
jquery eats up <html> tags bzr revid: fme@openerp.com-20120327110212-821anzbjvg2ula3q
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/view_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index 32797273b22..972821e5e02 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -754,7 +754,7 @@ openerp.web.FormRenderingEngine = openerp.web.Class.extend({
// TODO: I know this will save the world and all the kitten for a moment,
// but one day, we will have to get rid of xml2json
var xml = openerp.web.json_node_to_xml(this.fvg.arch);
- this.$form = $(xml);
+ this.$form = $('<div>' + xml + '</div>');
this.to_init = [];
this.process(this.$form);