timeline delete bug
This commit is contained in:
		| @@ -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') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	