* productplan: refactor.

This commit is contained in:
sunhao
2023-11-20 09:41:42 +08:00
parent b2b56895e4
commit 00a153af5d
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ window.showLink = function(type, params, onlyUpdateTable)
const url = $.createLink('productplan', type === 'story' ? 'linkStory' : 'linkBug', 'planID=' + planID + (params || '&browseType=&param='));
if(onlyUpdateTable)
{
loadComponent($('#' + (type === 'story' ? 'stories' : 'bugs')).find('.dtable').attr('id'), {url: url, component: 'dtable'});
loadComponent($('#' + (type === 'story' ? 'stories' : 'bugs')).find('.dtable').attr('id'), {url: url, component: 'dtable', partial: true});
return;
}
loadTarget({url: url, target: type === 'story' ? 'stories' : 'bugs'});
-4
View File
@@ -199,8 +199,6 @@ detailBody
set::icon('link'),
set::text($lang->productplan->linkStory),
bind::click("window.showLink('story')")
// set::url(inlink('linkStory', "planID={$plan->id}" . (($link == 'true' && $type == 'story') ? $decodeParam : "&browseType=&param=") . "&orderBy={$orderBy}")),
// setData(array('load' => 'target', 'target' => '#stories'))
) : null
),
dtable
@@ -243,8 +241,6 @@ detailBody
set::icon('link'),
set::text($lang->productplan->linkBug),
bind::click("window.showLink('bug')")
// set::url(inlink('linkBug', "planID={$plan->id}" . (($link == 'true' && $type == 'bug') ? $decodeParam : "&browseType=&param=") . "&orderBy={$orderBy}")),
// setData(array('load' => 'target', 'target' => '#bugs'))
) : null
),
dtable