From 16ce45707f2d97bbccc73b67fff0d7f285099d66 Mon Sep 17 00:00:00 2001 From: Boris Sekachev <40690378+bsekachev@users.noreply.github.com> Date: Fri, 28 Sep 2018 18:04:03 +0300 Subject: [PATCH] Bug has been fixed: impossible to close points after editing (#98) --- cvat/apps/engine/static/engine/js/shapes.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cvat/apps/engine/static/engine/js/shapes.js b/cvat/apps/engine/static/engine/js/shapes.js index baa7bac1..5006b6c6 100644 --- a/cvat/apps/engine/static/engine/js/shapes.js +++ b/cvat/apps/engine/static/engine/js/shapes.js @@ -2862,12 +2862,18 @@ class PolyShapeView extends ShapeView { this._hideShapeText(); } this._uis.shape.addClass('hidden'); + if (this._uis.points) { + this._uis.points.addClass('hidden'); + } // Run edit mode PolyShapeView.editor.edit(this._controller.type.split('_')[1], this._uis.shape.attr('points'), this._color, index, e, (points) => { this._uis.shape.removeClass('hidden'); + if (this._uis.points) { + this._uis.points.removeClass('hidden'); + } if (points) { this._uis.shape.attr('points', points); this._controller.updatePosition(window.cvat.player.frames.current, this._buildPosition());