* fix a bug : if no story, don't display copy button.

This commit is contained in:
zhujinyong
2013-07-10 05:29:09 +00:00
parent c67514b98c
commit 35e221c8b1
2 changed files with 3 additions and 3 deletions
+2
View File
@@ -29,6 +29,7 @@ function setPreview()
if(!$('#story').val())
{
$('#preview').addClass('hidden');
$('#copyButton').addClass('hidden');
}
else
{
@@ -37,6 +38,7 @@ function setPreview()
storyLink = storyLink + concat + 'onlybody=yes';
$('#preview').removeClass('hidden');
$('#preview').attr('href', storyLink);
$('#copyButton').removeClass('hidden');
}
$("#preview").colorbox({width:960, height:550, iframe:true, transition:'none', scrolling:true});
+1 -3
View File
@@ -33,12 +33,10 @@
<th class='rowhead'><?php echo $lang->task->project;?></th>
<td><?php echo $project->name;?></td>
</tr>
<?php if($project->type != 'sprint'):?>
<tr>
<th class='rowhead'><?php echo $lang->task->module;?></th>
<td><span id='moduleIdBox'><?php echo html::select('module', $moduleOptionMenu, $task->module, "class='select-3'");?></span></td>
</tr>
<?php endif;?>
<tr>
<th class='rowhead'><?php echo $lang->task->assignedTo;?></th>
<td><?php echo html::select('assignedTo[]', $members, $task->assignedTo, 'class=select-3');?></td>
@@ -55,7 +53,7 @@
<td>
<?php
echo html::input('name', $task->name, "class='text-1'");
echo html::commonButton($lang->task->copyStoryTitle, 'onclick=copyStoryTitle()');?>
echo html::commonButton($lang->task->copyStoryTitle, 'onclick=copyStoryTitle() id="copyButton"');?>
</td>
</tr>
<tr>