diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-08-28 14:49:11 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-08-28 14:49:11 +0200 |
| commit | d0f132b297e88cc79251a9ddf1a2deb66de415ac (patch) | |
| tree | 30e5f946334aff4c0b116ff96ac4258542bcaad4 /addons/web/static/src/js/views/graph/graph_controller.js | |
| parent | b3b6267cf001b04ec0aae1573d47f16070803715 (diff) | |
| parent | 4ac347735d4de252678b557afab7cac3c3eb75de (diff) | |
[MERGE] forward port branch saas-16 up to 4ac347735d4
Diffstat (limited to 'addons/web/static/src/js/views/graph/graph_controller.js')
| -rw-r--r-- | addons/web/static/src/js/views/graph/graph_controller.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/graph/graph_controller.js b/addons/web/static/src/js/views/graph/graph_controller.js index d68808bac1d..77e3f1e7a40 100644 --- a/addons/web/static/src/js/views/graph/graph_controller.js +++ b/addons/web/static/src/js/views/graph/graph_controller.js @@ -102,10 +102,20 @@ var GraphController = AbstractController.extend({ }); }, /** + * @private + */ + _update: function () { + this._updateButtons(); + return this._super.apply(this, arguments); + }, + /** * makes sure that the buttons in the control panel matches the current * state (so, correct active buttons and stuff like that) */ _updateButtons: function () { + if (!this.$buttons) { + return; + } var state = this.model.get(); this.$buttons.find('.o_graph_button').removeClass('active'); this.$buttons |
