* adjust for project task page.

This commit is contained in:
wangyidong
2018-04-28 14:16:46 +08:00
parent 00f29bee8a
commit 1c7af1e85f
3 changed files with 4 additions and 11 deletions
+3 -8
View File
@@ -23,7 +23,7 @@ $(function()
if($('#taskList thead th.w-name').width() < 150) $('#taskList thead th.w-name').width(150);
$(document).on('click', "#taskList tbody tr", function(){showCheckedSummary();});
$(document).on('click', "#taskList tbody tr, .table-footer .check-all, #taskList thead .check-all", function(){showCheckedSummary();});
$(document).on('change', "#taskList :checkbox", function(){showCheckedSummary();});
$(document).on('click', "#datatable-taskList table tr", function(){showCheckedSummary();});
});
@@ -36,12 +36,7 @@ function setQueryBar(queryID, title)
function showCheckedSummary()
{
var $summary = $('tfoot .table-actions .text:last');
if(!$summary.hasClass('readed'))
{
taskSummary = $summary.html();
$summary.addClass('readed');
}
var $summary = $('#main #mainContent form.main-table .table-header .table-statistic');
var checkedTotal = 0;
var checkedWait = 0;
@@ -70,7 +65,7 @@ function showCheckedSummary()
.replace('%estimate%', checkedEstimate)
.replace('%consumed%', checkedConsumed)
.replace('%left%', checkedLeft);
$('tfoot .table-actions .text:last').html(summary);
$summary.html(summary);
}
else
{
-2
View File
@@ -148,8 +148,6 @@ js::set('browseType', $browseType);
<div class="cell">
<?php echo $moduleTree;?>
<div class="text-center">
<?php common::printLink('project', 'edit', "projectID=$projectID", $lang->edit, '', "class='btn btn-info btn-wide'");?>
<?php common::printLink('project', 'delete', "projectID=$projectID&confirm=no", $lang->delete, 'hiddenwin', "class='btn btn-info btn-wide'");?>
<?php common::printLink('tree', 'browsetask', "rootID=$projectID&productID=0", $lang->tree->manage, '', "class='btn btn-info btn-wide'");?>
<hr class="space-sm" />
</div>
+1 -1
View File
@@ -197,5 +197,5 @@ $config->task->datatable->fieldList['lastEditedDate']['required'] = 'no';
$config->task->datatable->fieldList['actions']['title'] = 'actions';
$config->task->datatable->fieldList['actions']['fixed'] = 'right';
$config->task->datatable->fieldList['actions']['width'] = '156';
$config->task->datatable->fieldList['actions']['width'] = '160';
$config->task->datatable->fieldList['actions']['required'] = 'yes';