From cc64d1d3180a56cfef6de073f1889129b82286a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Tue, 20 May 2014 16:18:03 +0200 Subject: [FIX] fix the graphview field selection searchview has been split in two parts, and the inputs are now located in the drawer --- addons/web_graph/static/src/js/graph_widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web_graph/static/src/js/graph_widget.js') diff --git a/addons/web_graph/static/src/js/graph_widget.js b/addons/web_graph/static/src/js/graph_widget.js index d0038452dfb..ae9be9e0844 100644 --- a/addons/web_graph/static/src/js/graph_widget.js +++ b/addons/web_graph/static/src/js/graph_widget.js @@ -86,7 +86,7 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({ get_search_fields: function () { var self = this; - var groupbygroups = _(this.search_view.inputs).select(function (g) { + var groupbygroups = _(this.search_view.drawer.inputs).select(function (g) { return g instanceof openerp.web.search.GroupbyGroup; }); -- cgit v1.2.3 From 6f436a2a0e12f6f7a1469e67e8d02c8e2393c56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 30 May 2014 09:21:30 +0200 Subject: [FIX] correctly compute mouse click coords in graph view, when the user click on the pivot table. It was calculated with pageX, pageY and positioned with 'absolute'. However, the main view is now also positionod, so the dropdown menu was not where it should be. --- addons/web_graph/static/src/js/graph_widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web_graph/static/src/js/graph_widget.js') diff --git a/addons/web_graph/static/src/js/graph_widget.js b/addons/web_graph/static/src/js/graph_widget.js index ae9be9e0844..bbf27daffb0 100644 --- a/addons/web_graph/static/src/js/graph_widget.js +++ b/addons/web_graph/static/src/js/graph_widget.js @@ -320,8 +320,8 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({ this.dropdown = $(QWeb.render('field_selection', {fields:fields, header_id:id})); $(event.target).after(this.dropdown); this.dropdown.css({position:'absolute', - left:event.pageX, - top:event.pageY}); + left:event.originalEvent.layerX, + top:event.originalEvent.layerY}); this.$('.field-selection').next('.dropdown-menu').toggle(); -- cgit v1.2.3