From 3bd3290296076afb9adf9f4444736f38e7fba7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Montero=20Lamas?= Date: Fri, 4 Feb 2022 13:34:09 +0100 Subject: [PATCH] update on click add type --- modules/ui/zones-editor.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/ui/zones-editor.js b/modules/ui/zones-editor.js index f8c15aa1..3f7f0a5d 100644 --- a/modules/ui/zones-editor.js +++ b/modules/ui/zones-editor.js @@ -560,15 +560,10 @@ function editZones() { $("#zonesTypes").dialog({ title: "Add zones and types", width: fitContent(), - close: closeZoneTypesEditor, position: {my: "center", at: "center", of: "svg"}, }); zonesTypesAddLines(); } - - function closeZoneTypesEditor() { - zonesEditorAddLines(); - } function addZonesType() { let zoneType = zonesNewTypeInput.value; @@ -576,6 +571,7 @@ function editZones() { zonesNewTypeInput.value = ""; zonesTypesAddLines(); zonesTypesFooterNumber.innerHTML = zoneTypes.length; + zonesEditorAddLines(); } function removeZoneType(zoneType) {