From 86572c270d0f1db45032fdeb0f900fd30727b1f2 Mon Sep 17 00:00:00 2001 From: Romuald du Song Date: Thu, 15 Jul 2021 15:12:09 +0200 Subject: [PATCH] add same activate/desactivate behavior for line tool --- public/javascripts/spacedeck_sections.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/javascripts/spacedeck_sections.js b/public/javascripts/spacedeck_sections.js index 6758a8c..9c3d0d7 100644 --- a/public/javascripts/spacedeck_sections.js +++ b/public/javascripts/spacedeck_sections.js @@ -2580,7 +2580,11 @@ var SpacedeckSections = { start_drawing_line: function(evt) { this.deselect(); - this.active_tool = "line"; + if (this.active_tool == "line") { + this.active_tool = "pointer"; + } else { + this.active_tool = "line"; + } this.opened_dialog = "none"; },