* Fix bug for checkedSummary.
This commit is contained in:
@@ -391,7 +391,7 @@ foreach($stories as $story)
|
||||
|
||||
jsVar('cases', $storyCases);
|
||||
jsVar('summary', $summary);
|
||||
jsVar('checkedSummary', str_replace('%storyCommon%', $lang->SRCommon, $lang->product->checkedSRSummary));
|
||||
jsVar('checkedSummary', $lang->product->checkedSRSummary);
|
||||
dtable
|
||||
(
|
||||
setClass('shadow rounded'),
|
||||
|
||||
@@ -462,7 +462,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php js::set('checkedSummary', $lang->product->checkedSummary);?>
|
||||
<?php js::set('executionID', $execution->id);?>
|
||||
<?php js::set('orderBy', $orderBy)?>
|
||||
<script>
|
||||
@@ -473,7 +472,7 @@ $(function()
|
||||
|
||||
/* Update table summary text. */
|
||||
<?php $storyCommon = $lang->SRCommon;?>
|
||||
var checkedSummary = '<?php echo str_replace('%storyCommon%', $storyCommon, $lang->product->checkedSummary)?>';
|
||||
var checkedSummary = '<?php echo $lang->product->checkedSRSummary?>';
|
||||
$('#executionStoryForm').table(
|
||||
{
|
||||
statisticCreator: function(table)
|
||||
|
||||
@@ -218,9 +218,9 @@ $lang->product->aclTips['open'] = "Users with privileges to {$lang->productCo
|
||||
$lang->product->aclTips['private'] = "{$lang->executionCommon} team members only";
|
||||
|
||||
$lang->product->storySummary = "Total <strong>%s</strong> %s on this page. Estimates: <strong>%s</strong> ({$lang->hourCommon}), and Case Coverage: <strong>%s</strong>.";
|
||||
$lang->product->checkedSRSummary = "<strong>%total%</strong> %storyCommon% selected, Esitmates: <strong>%estimate%</strong> ({$lang->hourCommon}), and Case Coverage: <strong>%rate%</strong>.";
|
||||
$lang->product->checkedSRSummary = "<strong>%total%</strong> {$lang->SRCommon} selected, Esitmates: <strong>%estimate%</strong> ({$lang->hourCommon}), and Case Coverage: <strong>%rate%</strong>.";
|
||||
$lang->product->requirementSummary = "Total <strong>%s</strong> %s on this page. Estimates: <strong>%s</strong> ({$lang->hourCommon}).";
|
||||
$lang->product->checkedURSummary = "<strong>%total%</strong> %storyCommon% selected, Esitmates: <strong>%estimate%</strong> ({$lang->hourCommon}).";
|
||||
$lang->product->checkedURSummary = "<strong>%total%</strong> {$lang->URCommon} selected, Esitmates: <strong>%estimate%</strong> ({$lang->hourCommon}).";
|
||||
$lang->product->noModule = '<div>You have no modules. </div><div>Manage Now</div>';
|
||||
$lang->product->noProduct = "No {$lang->productCommon} yet. ";
|
||||
$lang->product->noMatched = '"%s" cannot be found.' . $lang->productCommon;
|
||||
|
||||
@@ -218,9 +218,9 @@ $lang->product->aclTips['open'] = "Les utilisateurs ayant des droits sur {$la
|
||||
$lang->product->aclTips['private'] = "les membres de l'équipe et les membres de la Liste blanche peuvent y accéder.";
|
||||
|
||||
$lang->product->storySummary = "Total de <strong>%s</strong> %s sur cette page. Estimé: <strong>%s</strong> (h), et couverture de la recette: <strong>%s</strong>.";
|
||||
$lang->product->checkedSRSummary = "<strong>%total%</strong> %storyCommon% sélectionnées, Estimé: <strong>%estimate%</strong>, et couverture de la recette: <strong>%rate%</strong>.";
|
||||
$lang->product->checkedSRSummary = "<strong>%total%</strong> {$lang->SRCommon} sélectionnées, Estimé: <strong>%estimate%</strong>, et couverture de la recette: <strong>%rate%</strong>.";
|
||||
$lang->product->requirementSummary = "Total de <strong>%s</strong> %s sur cette page. Estimé: <strong>%s</strong> (h),.";
|
||||
$lang->product->checkedURSummary = "<strong>%total%</strong> %storyCommon% sélectionnées, Estimé: <strong>%estimate%</strong>,.";
|
||||
$lang->product->checkedURSummary = "<strong>%total%</strong> {$lang->URCommon} sélectionnées, Estimé: <strong>%estimate%</strong>,.";
|
||||
$lang->product->noModule = "<div>Vous n'avez aucun modules. </div><div>Gérer Maintenant</div>";
|
||||
$lang->product->noProduct = "No {$lang->productCommon} à ce jour. ";
|
||||
$lang->product->noMatched = '"%s" cannot be found.' . $lang->productCommon;
|
||||
|
||||
@@ -218,9 +218,9 @@ $lang->product->aclTips['open'] = "有{$lang->productCommon}视图权限,
|
||||
$lang->product->aclTips['private'] = "{$lang->productCommon}相关负责人、所属项目集的干系人、相关联{$lang->projectCommon}的团队成员和干系人可访问";
|
||||
|
||||
$lang->product->storySummary = "本页共 <strong>%s</strong> 个%s,预计 <strong>%s</strong> 个{$lang->hourCommon},用例覆盖率 <strong>%s</strong>。";
|
||||
$lang->product->checkedSRSummary = "选中 <strong>%total%</strong> 个%storyCommon%,预计 <strong>%estimate%</strong> 个{$lang->hourCommon},用例覆盖率 <strong>%rate%</strong>。";
|
||||
$lang->product->checkedSRSummary = "选中 <strong>%total%</strong> 个{$lang->SRCommon},预计 <strong>%estimate%</strong> 个{$lang->hourCommon},用例覆盖率 <strong>%rate%</strong>。";
|
||||
$lang->product->requirementSummary = "本页共 <strong>%s</strong> 个%s,预计 <strong>%s</strong> 个{$lang->hourCommon}。";
|
||||
$lang->product->checkedURSummary = "选中 <strong>%total%</strong> 个%storyCommon%,预计 <strong>%estimate%</strong> 个{$lang->hourCommon}。";
|
||||
$lang->product->checkedURSummary = "选中 <strong>%total%</strong> 个{$lang->URCommon},预计 <strong>%estimate%</strong> 个{$lang->hourCommon}。";
|
||||
$lang->product->noModule = "<div>您现在还没有模块信息</div><div>请维护模块</div>";
|
||||
$lang->product->noProduct = "暂时没有{$lang->productCommon}。";
|
||||
$lang->product->noMatched = '找不到包含"%s"的' . $lang->productCommon;
|
||||
|
||||
@@ -303,7 +303,7 @@ jsVar('projectID', $projectID);
|
||||
jsVar('modulePairs', $modulePairs);
|
||||
jsVar('showBranch', $showBranch);
|
||||
jsVar('storyType', $storyType);
|
||||
jsVar('checkedSummary', str_replace('%storyCommon%', $storyCommon, $storyType == 'story' ? $lang->product->checkedSRSummary : $lang->product->checkedURSummary));
|
||||
jsVar('checkedSummary', $storyType == 'story' ? $lang->product->checkedSRSummary : $lang->product->checkedURSummary);
|
||||
|
||||
if($isProjectStory and $storyType == 'requirement')
|
||||
{
|
||||
|
||||
@@ -714,8 +714,7 @@ $('#branch' + branchID).closest('li').addClass('active');
|
||||
$(function()
|
||||
{
|
||||
// Update table summary text.
|
||||
<?php $storyCommon = $storyType == 'requirement' ? $lang->URCommon : $lang->SRCommon;?>
|
||||
var checkedSummary = '<?php echo str_replace('%storyCommon%', $storyCommon, $lang->product->checkedSummary)?>';
|
||||
var checkedSummary = '<?php echo $storyType == 'requirement' ? $lang->product->checkedURSummary : $lang->product->checkedSRSummary;?>';
|
||||
$('#productStoryForm').table(
|
||||
{
|
||||
statisticCreator: function(table)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<?php js::set('storyRecTotal', $storyPager->recTotal);?>
|
||||
<?php js::set('storySummary', $summary);?>
|
||||
<?php js::set('storyCommon', $lang->SRCommon);?>
|
||||
<?php js::set('checkedSummary', str_replace('%storyCommon%', $lang->SRCommon, $lang->product->checkedSummary));?>
|
||||
<?php js::set('checkedSummary', $lang->product->checkedSRSummary);?>
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class='btn-toolbar pull-left'>
|
||||
<?php $browseLink = $this->session->productPlanList ? $this->session->productPlanList : inlink('browse', "planID=$plan->product");?>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<?php js::set('confirmUnlinkBug', $lang->release->confirmUnlinkBug)?>
|
||||
<?php js::set('storySummary', $summary);?>
|
||||
<?php js::set('storyCommon', $lang->SRCommon);?>
|
||||
<?php js::set('checkedSummary', str_replace('%storyCommon%', $lang->SRCommon, $lang->product->checkedSummary));?>
|
||||
<?php js::set('checkedSummary', $lang->product->checkedSRSummary);?>
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class='btn-toolbar pull-left'>
|
||||
<?php $browseLink = $this->session->releaseList ? $this->session->releaseList : inlink('browse', "productID=$release->product");?>
|
||||
|
||||
@@ -28,7 +28,7 @@ jsVar('releaseID', $release->id);
|
||||
jsVar('summary', $summary);
|
||||
jsVar('storyCases', $storyCases);
|
||||
jsVar('confirmunlinkstory', $lang->release->confirmUnlinkStory);
|
||||
jsVar('checkedSummary', str_replace('%storyCommon%', $lang->SRCommon, $lang->product->checkedSummary));
|
||||
jsVar('checkedSummary', $lang->product->checkedSRSummary);
|
||||
jsVar('unlinkstoryurl', helper::createLink($releaseModule, 'unlinkStory', "releaseID={$release->id}&storyID=%s"));
|
||||
$storyTableData = initTableData($stories, $config->release->dtable->story->fieldList, $this->release);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<?php js::set('confirmUnlinkBug', $lang->release->confirmUnlinkBug)?>
|
||||
<?php js::set('storySummary', $summary);?>
|
||||
<?php js::set('storyCommon', $lang->SRCommon);?>
|
||||
<?php js::set('checkedSummary', str_replace('%storyCommon%', $lang->SRCommon, $lang->product->checkedSummary));?>
|
||||
<?php js::set('checkedSummary', $lang->product->checkedSRSummary);?>
|
||||
<?php $canBeChanged = common::canBeChanged('release', $release);?>
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class='btn-toolbar pull-left'>
|
||||
|
||||
Reference in New Issue
Block a user