* [bug#52534,done,0.5h] render drill result.
This commit is contained in:
@@ -287,3 +287,10 @@ window.getHeight = function(height = 800)
|
||||
|
||||
return Math.min(windowHeight - offsetTop - paddingBottom * 2 - 10, height);
|
||||
}
|
||||
|
||||
window.renderDrillResult = function(result, {col, row})
|
||||
{
|
||||
if(col.name == 'name' && row.data.type == 'program') result[0].props.href = $.createLink('program', 'kanban');
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -21,5 +21,6 @@ dtable
|
||||
set::striped(true),
|
||||
set::bordered(true),
|
||||
set::cols($cols),
|
||||
set::data($datas)
|
||||
set::data($datas),
|
||||
set::onRenderCell(jsRaw('window.renderDrillResult'))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user