From d2aaf2c2cf07e16ad673ea692a92694464677d3d Mon Sep 17 00:00:00 2001 From: cutls Date: Sat, 13 Jun 2020 01:40:32 +0900 Subject: [PATCH] timeline delete bug --- app/js/ui/layout.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/js/ui/layout.js b/app/js/ui/layout.js index 4dd62c9a..cf62bdff 100644 --- a/app/js/ui/layout.js +++ b/app/js/ui/layout.js @@ -646,11 +646,15 @@ function removeColumn(tlid) { if (result.value) { var multi = localStorage.getItem('column') var obj = JSON.parse(multi) + var data = obj[tlid] obj.splice(tlid, 1) var json = JSON.stringify(obj) localStorage.setItem('column', json) sortLoad() $('#timeline_box_' + tlid + '_box').remove() + if(!data.left_fold) { + $('#timeline_box_' + tlid + '_parentBox').remove() + } } $('#sort-box').removeClass('hide') $('#sort-box').addClass('show')