diff --git a/module/program/config/dtable.php b/module/program/config/dtable.php index ebe985b2c3..ce32240377 100644 --- a/module/program/config/dtable.php +++ b/module/program/config/dtable.php @@ -64,13 +64,14 @@ $config->program->productview->dtable->fieldList = array(); $config->program->productview->dtable->fieldList['name']['name'] = 'name'; $config->program->productview->dtable->fieldList['name']['title'] = $lang->nameAB; -$config->program->productview->dtable->fieldList['name']['type'] = 'title'; +$config->program->productview->dtable->fieldList['name']['type'] = 'link'; $config->program->productview->dtable->fieldList['name']['iconRender'] = 'RAWJSRAWJS'; -$config->program->productview->dtable->fieldList['name']['link'] = array('module' => 'product', 'method' => 'browse', 'params' => 'productID={id}'); +$config->program->productview->dtable->fieldList['name']['link'] = "RAWJSRAWJS"; $config->program->productview->dtable->fieldList['name']['nestedToggle'] = true; $config->program->productview->dtable->fieldList['name']['checkbox'] = true; $config->program->productview->dtable->fieldList['name']['show'] = true; $config->program->productview->dtable->fieldList['name']['sortType'] = true; +$config->program->productview->dtable->fieldList['name']['minWidth'] = 350; $config->program->productview->dtable->fieldList['name']['group'] = 'g1'; $config->program->productview->dtable->fieldList['PM']['name'] = 'PM'; @@ -195,7 +196,7 @@ $config->program->projectView->dtable->fieldList['name']['name'] = 'name $config->program->projectView->dtable->fieldList['name']['title'] = $lang->nameAB; $config->program->projectView->dtable->fieldList['name']['width'] = 200; $config->program->projectView->dtable->fieldList['name']['type'] = 'link'; -$config->program->projectView->dtable->fieldList['name']['link'] = "RAWJSRAWJS"; +$config->program->projectView->dtable->fieldList['name']['link'] = "RAWJSprogram->projectView->dtable->fieldList['name']['nestedToggle'] = true; $config->program->projectView->dtable->fieldList['name']['checkbox'] = true; @@ -329,7 +330,7 @@ $config->program->browse->dtable->fieldList['name']['name'] = 'name'; $config->program->browse->dtable->fieldList['name']['title'] = $lang->nameAB; $config->program->browse->dtable->fieldList['name']['width'] = 200; $config->program->browse->dtable->fieldList['name']['type'] = 'link'; -$config->program->browse->dtable->fieldList['name']['link'] = "RAWJSRAWJS"; +$config->program->browse->dtable->fieldList['name']['link'] = "RAWJSprogram->browse->dtable->fieldList['name']['nestedToggle'] = true; $config->program->browse->dtable->fieldList['name']['checkbox'] = true; diff --git a/module/program/js/productview.ui.js b/module/program/js/productview.ui.js index 882a426fb1..03f3eae9d3 100644 --- a/module/program/js/productview.ui.js +++ b/module/program/js/productview.ui.js @@ -15,23 +15,6 @@ window.renderCellProductView = function(result, {col, row}) if(row.data.latestReleaseDate === '') return ['']; } - if(col.name == 'name' && row.data.type !== 'product') - { - /* Remove class of checkbox. */ - result.splice(result.length - 1); - - /* Remove checkbox. */ - result.forEach(function(ele, idx) - { - if(!ele.props.class) return; - if(ele.props.class.includes('checkbox')) result.splice(idx, 1); - }); - - result[result.length - 1] = row.data.name; - - return result; - } - if(col.name == 'totalProjects' && row.data.type !== 'product') { return [row.data.totalProjects]; diff --git a/module/program/ui/productview.html.php b/module/program/ui/productview.html.php index 031ec6f68b..0fe93aef9e 100644 --- a/module/program/ui/productview.html.php +++ b/module/program/ui/productview.html.php @@ -305,6 +305,7 @@ dtable set::nested(true), set::className('shadow rounded'), set::footPager(usePager()), + set::canRowCheckable(jsRaw("function(rowID){return this.getRowInfo(rowID).data.type == 'product';}")), set::onRenderCell(jsRaw('window.renderCellProductView')), set::footToolbar(array (