From 40ceda20ebcb08988bea04a888583f4a1aabf0f6 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Wed, 31 Aug 2016 15:56:34 +0200 Subject: [IMP] web: pivot don't repeat total header 2 times opw-687243 --- addons/web/static/src/js/views/pivot_view.js | 1 - 1 file changed, 1 deletion(-) (limited to 'addons/web/static/src/js') diff --git a/addons/web/static/src/js/views/pivot_view.js b/addons/web/static/src/js/views/pivot_view.js index 8b41efbc3dc..c1752cbe10e 100644 --- a/addons/web/static/src/js/views/pivot_view.js +++ b/addons/web/static/src/js/views/pivot_view.js @@ -679,7 +679,6 @@ var PivotView = View.extend({ if (width > 1) { var total_cell = {width:nbr_measures, height: depth, title:""}; if (nbr_measures === 1) { - total_cell.title = this.measures[this.active_measures[0]].string; total_cell.total = true; } result[0].push(total_cell); -- cgit v1.2.3 From 1bcbca4be3ab2b8270f6ad82a508e12f9b213ec5 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 2 Sep 2016 10:41:58 +0200 Subject: [FIX] web: statusbar click When the statusbar is clicked, a `debounce` function prevents a doucle-click, and therefore making several `write` calls. In debug mode, the click doesn't work anymore. For some mysterious reason, the event is propagated to the parent. The `currentTarget` is not the `li` element, but the parent `ul`. By setting the `immediate` argument to `true` (execute the first function instead of the last), this solves the issue. --- addons/web/static/src/js/views/form_widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js') diff --git a/addons/web/static/src/js/views/form_widgets.js b/addons/web/static/src/js/views/form_widgets.js index 4f652d9bf2a..3b630d4232d 100644 --- a/addons/web/static/src/js/views/form_widgets.js +++ b/addons/web/static/src/js/views/form_widgets.js @@ -1559,7 +1559,7 @@ var FieldStatus = common.AbstractField.extend({ }); } } - }, 300), + }, 300, true), }); var FieldMonetary = FieldFloat.extend({ -- cgit v1.2.3