* task #7563, bug #2481, refresh table statistic information after unlink bug or story in plan page.
This commit is contained in:
@@ -994,7 +994,7 @@ class productModel extends model
|
||||
$allCount = 0;
|
||||
foreach($stories as $key => $story)
|
||||
{
|
||||
if($story->type != $storyType) continue;
|
||||
if(!empty($story->type) && $story->type != $storyType) continue;
|
||||
|
||||
$totalEstimate += $story->estimate;
|
||||
/* When the status is not closed or closedReason is done or postponed then add cases rate..*/
|
||||
|
||||
@@ -341,7 +341,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div class='text'><?php echo $summary;?></div>
|
||||
<div class='table-statistic'><?php echo $summary;?></div>
|
||||
<?php
|
||||
$this->app->rawParams['type'] = 'story';
|
||||
$storyPager->show('right', 'pagerjs');
|
||||
@@ -420,7 +420,7 @@
|
||||
<?php echo html::submitButton($lang->productplan->batchUnlink, '', 'btn');?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div class='text'><?php echo sprintf($lang->productplan->bugSummary, count($planBugs));?></div>
|
||||
<div class='table-statistic'><?php echo sprintf($lang->productplan->bugSummary, count($planBugs));?></div>
|
||||
<?php
|
||||
$this->app->rawParams['type'] = 'bug';
|
||||
$bugPager->show('right', 'pagerjs');
|
||||
|
||||
+16
-6
@@ -329,9 +329,19 @@ function ajaxDelete(url, replaceID, notice)
|
||||
{
|
||||
if(data.result == 'success')
|
||||
{
|
||||
var $table = $('#' + replaceID).closest('[data-ride="table"]');
|
||||
if($table.length)
|
||||
{
|
||||
var table = $table.data('zui.table');
|
||||
if(table)
|
||||
{
|
||||
table.options.replaceId = replaceID;
|
||||
return table.reload();
|
||||
}
|
||||
}
|
||||
$.get(document.location.href, function(data)
|
||||
{
|
||||
if(!($(data).find('#' + replaceID).length))location.reload();
|
||||
if(!($(data).find('#' + replaceID).length)) location.reload();
|
||||
$('#' + replaceID).html($(data).find('#' + replaceID).html());
|
||||
if(typeof sortTable == 'function') sortTable();
|
||||
$('#' + replaceID).find('[data-toggle=modal], a.iframe').modalTrigger();
|
||||
@@ -715,11 +725,11 @@ function bootAlert(message)
|
||||
|
||||
/**
|
||||
* Toggle fold or unfold for parent.
|
||||
*
|
||||
* @param string $form
|
||||
* @param array $unfoldIdList
|
||||
* @param int $objectID
|
||||
* @param string $objectType
|
||||
*
|
||||
* @param string $form
|
||||
* @param array $unfoldIdList
|
||||
* @param int $objectID
|
||||
* @param string $objectType
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
|
||||
+5
-5
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user