* Modify tabs close.

This commit is contained in:
曹延义
2022-12-22 05:12:28 +00:00
parent dd0a0a8dc9
commit 1349eb9d11
@@ -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)
};
}