timeline delete bug

This commit is contained in:
cutls 2020-06-13 01:40:32 +09:00
parent 8386cd675c
commit d2aaf2c2cf

View File

@ -646,11 +646,15 @@ function removeColumn(tlid) {
if (result.value) { if (result.value) {
var multi = localStorage.getItem('column') var multi = localStorage.getItem('column')
var obj = JSON.parse(multi) var obj = JSON.parse(multi)
var data = obj[tlid]
obj.splice(tlid, 1) obj.splice(tlid, 1)
var json = JSON.stringify(obj) var json = JSON.stringify(obj)
localStorage.setItem('column', json) localStorage.setItem('column', json)
sortLoad() sortLoad()
$('#timeline_box_' + tlid + '_box').remove() $('#timeline_box_' + tlid + '_box').remove()
if(!data.left_fold) {
$('#timeline_box_' + tlid + '_parentBox').remove()
}
} }
$('#sort-box').removeClass('hide') $('#sort-box').removeClass('hide')
$('#sort-box').addClass('show') $('#sort-box').addClass('show')