* productplan: refactor.
This commit is contained in:
@@ -33,7 +33,7 @@ window.showLink = function(type, params, onlyUpdateTable)
|
||||
const url = $.createLink('productplan', type === 'story' ? 'linkStory' : 'linkBug', 'planID=' + planID + (params || '&browseType=¶m='));
|
||||
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'});
|
||||
|
||||
@@ -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=¶m=") . "&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=¶m=") . "&orderBy={$orderBy}")),
|
||||
// setData(array('load' => 'target', 'target' => '#bugs'))
|
||||
) : null
|
||||
),
|
||||
dtable
|
||||
|
||||
Reference in New Issue
Block a user