summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph_widget.js
diff options
context:
space:
mode:
authorged-odoo <ged@odoo.com>2014-06-12 16:27:11 +0200
committerged-odoo <ged@odoo.com>2014-06-12 16:27:11 +0200
commit74168c4e9d1527cfdd62aae5e37ca3bfd4f584c3 (patch)
tree6f11de511ecebc37aa539be6eb99ee8e7085e7ab /addons/web_graph/static/src/js/graph_widget.js
parent64b78b34d6427a4756dd652b21ab24c291a0110e (diff)
parentc73736694e7f99cbd5052de278c88c9efd160add (diff)
Merge pull request #272 from odoo-dev/master-inline-searchview-ged
[MERGP] Inline Searchview This task split the searchview in two parts: SearchView and SearchViewDrawer. The drawer is displayed inside the main view and the searchview stays in place. It also changes the scrolling behavior of the web client: the main view area can scroll without affecting the UI (so the various menus stays in place) Because of this, other large changes have been made: the drawer has been redesigned, the Custom Filter widget has been split in two (Custom Report and SaveCurrentFilter), the main view is now scrollable, so the UI stays in place and only the view can change The text 'Group By...' has been changed into 'Group By' (most addons had to be modified) bootstrap classes are used when it makes sense (for example, badge) the left menu is also scrollable (separately from the main view) It is likely that some stupid bugs have been introduced. Please don't hurt me.
Diffstat (limited to 'addons/web_graph/static/src/js/graph_widget.js')
-rw-r--r--addons/web_graph/static/src/js/graph_widget.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_graph/static/src/js/graph_widget.js b/addons/web_graph/static/src/js/graph_widget.js
index d0038452dfb..bbf27daffb0 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;
});
@@ -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();