diff options
| author | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-11-17 11:41:36 +0530 |
|---|---|---|
| committer | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-11-17 11:41:36 +0530 |
| commit | 7a71c2c821fd0548edc4e819d91b1b07a4ead8db (patch) | |
| tree | 4371e93ed104325545f91033d0c220ac8280e40f | |
| parent | 1d76679c4ac1cf2130c589346d87670be877d231 (diff) | |
[IMP] vieweditor :- improve some small issue.
bzr revid: ysa@tinyerp.com-20111117061136-h4eh9ksi2kydqaz5
| -rw-r--r-- | addons/web/static/src/js/view_editor.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/addons/web/static/src/js/view_editor.js b/addons/web/static/src/js/view_editor.js index 8747e597b79..ae1d8e9c2ed 100644 --- a/addons/web/static/src/js/view_editor.js +++ b/addons/web/static/src/js/view_editor.js @@ -569,7 +569,7 @@ openerp.web.ViewEditor = openerp.web.Widget.extend({ var list_obj_xml = _.zip(children_list, obj.child_id); if (id) { if (obj.id == id) { - var id; + var id = false;; var index = _.indexOf(child_list, obj); if (move_direct == "down") { var next = $(arch1).next(); @@ -594,10 +594,8 @@ openerp.web.ViewEditor = openerp.web.Widget.extend({ var parent = $(arch1).parents(); var convert_to_utf = QWeb.tools.xml_node_to_string(parent[parent.length-1]); convert_to_utf = convert_to_utf.replace('xmlns="http://www.w3.org/1999/xhtml"', ""); - convert_to_utf = '<?xml version="1.0"?>' + convert_to_utf; - arch.arch = convert_to_utf; - this.dataset.write(parseInt(view_id),{"arch":convert_to_utf}, function(r) { - }); + arch.arch = '<?xml version="1.0"?>' + convert_to_utf; + this.dataset.write(parseInt(view_id), {"arch":convert_to_utf}); } if (obj.level <= level) { _.each(list_obj_xml, function(child_node) { |
