From 5e4e3f73165e89e1081a40a04ff26ec170a0d6e8 Mon Sep 17 00:00:00 2001 From: Kalutka Zhenya Date: Mon, 22 Aug 2022 13:59:34 +0300 Subject: [PATCH] Refactoring --- .../src/app/modules/home/components/widget/lib/flot-widget.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/flot-widget.ts b/ui-ngx/src/app/modules/home/components/widget/lib/flot-widget.ts index 62a4526ebc..428cd7cef2 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/flot-widget.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/flot-widget.ts @@ -1213,9 +1213,9 @@ export class TbFlot { if (this.chartType !== 'pie') { this.options.selection = {mode: 'x'}; this.$element.bind('plotselected', this.flotSelectHandler); + this.$element.bind('dblclick', this.dblclickHandler); } this.$element.bind('plothover', this.flotHoverHandler); - this.$element.bind('dblclick', this.dblclickHandler); this.$element.bind('mousedown', this.mousedownHandler); this.$element.bind('mouseup', this.mouseupHandler); this.$element.bind('mouseleave', this.mouseleaveHandler); @@ -1228,9 +1228,9 @@ export class TbFlot { if (this.chartType !== 'pie') { this.options.selection = {mode: null}; this.$element.unbind('plotselected', this.flotSelectHandler); + this.$element.unbind('dblclick', this.dblclickHandler); } this.$element.unbind('plothover', this.flotHoverHandler); - this.$element.unbind('dblclick', this.dblclickHandler); this.$element.unbind('mousedown', this.mousedownHandler); this.$element.unbind('mouseup', this.mouseupHandler); this.$element.unbind('mouseleave', this.mouseleaveHandler);