From 1349eb9d1175734b083dcac151b9943d087253fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=BB=B6=E4=B9=89?= Date: Thu, 22 Dec 2022 05:12:28 +0000 Subject: [PATCH] * Modify tabs close. --- module/repo/view/ajaxgeteditorcontent.html.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/module/repo/view/ajaxgeteditorcontent.html.php b/module/repo/view/ajaxgeteditorcontent.html.php index 16f7db3708..b99f92b8ec 100644 --- a/module/repo/view/ajaxgeteditorcontent.html.php +++ b/module/repo/view/ajaxgeteditorcontent.html.php @@ -167,12 +167,11 @@ function getRelation(commit) function setTab(titleObj) { return { - id: titleObj.type + '-' + titleObj.id, - title: titleObj.title, - icon: titleObj.type == 'story' ? 'icon-lightbulb' : (titleObj.type == 'task' ? 'icon-check-sign' : 'icon-bug'), - type: 'iframe', - url: createLink('repo', 'ajaxGetRelationInfo', 'objectID=' + titleObj.id + '&objectType=' + titleObj.type), - forbidClose: true + id: titleObj.type + '-' + titleObj.id, + title: titleObj.title, + icon: titleObj.type == 'story' ? 'icon-lightbulb' : (titleObj.type == 'task' ? 'icon-check-sign' : 'icon-bug'), + type: 'iframe', + url: createLink('repo', 'ajaxGetRelationInfo', 'objectID=' + titleObj.id + '&objectType=' + titleObj.type) }; }