* adjust for project task page.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user