* finish task #6697.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
.table td.content { overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
|
||||
.table td.content { position: relative;}
|
||||
.table td.content .more{height:25px; position:absolute; right:-5px; top:5px;}
|
||||
.table td.content div{height:25px;overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding-right:5px;}
|
||||
td.c-branch{ overflow:hidden; text-align:left!important; text-overflow:ellipsis; white-space:nowrap;}
|
||||
|
||||
.table-children {border-left: 2px solid #cbd0db; border-right: 2px solid #cbd0db;}
|
||||
|
||||
@@ -7,4 +7,29 @@ $(document).on('click', '.task-toggle', function(e)
|
||||
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
$(function()
|
||||
{
|
||||
$('#productplanList tbody tr').each(function()
|
||||
{
|
||||
var content = $(this).find('td.content div').html();
|
||||
if(content.indexOf('<br') >= 0)
|
||||
{
|
||||
$(this).find('td.content').append("<a href='###' class='more'><i class='icon icon-chevron-double-down'></i></a>");
|
||||
}
|
||||
});
|
||||
})
|
||||
$(document).on('click', 'td.content .more', function(e)
|
||||
{
|
||||
var $toggle = $(this);
|
||||
if($toggle.hasClass('open'))
|
||||
{
|
||||
$toggle.removeClass('open');
|
||||
$toggle.closest('.content').find('div').css('height', '25px');
|
||||
}
|
||||
else
|
||||
{
|
||||
$toggle.addClass('open');
|
||||
$toggle.closest('.content').find('div').css('height', 'auto');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -111,7 +111,10 @@
|
||||
<td class='text-center'><?php echo $plan->bugs;?></td>
|
||||
<td class='text-center'><?php echo $plan->hour;?></td>
|
||||
<td class='text-center'><?php if(!empty($plan->projectID)) echo html::a(helper::createLink('project', 'task', 'projectID=' . $plan->projectID), '<i class="icon-search"></i>');?></td>
|
||||
<td title='<?php echo strip_tags(str_replace("</p>", "\n", str_replace(array("\n", "\r"), '', $plan->desc)));?>' class='text-left content'><?php echo nl2br(strip_tags(str_replace("</p>", "\n", str_replace(array("\n", "\r"), '', $plan->desc))));?></td>
|
||||
<td class='text-left content'>
|
||||
<?php $desc = strip_tags(str_replace("</p>", "\n", str_replace(array("\n", "\r"), '', $plan->desc)));?>
|
||||
<div title='<?php echo $desc;?>'><?php echo nl2br($desc);?></div>
|
||||
</td>
|
||||
<td class='c-actions'>
|
||||
<?php
|
||||
if(common::hasPriv('project', 'create')) echo html::a(helper::createLink('project', 'create', "projectID=©ProjectID=&planID=$plan->id"), '<i class="icon-plus"></i>', '', "class='btn' title='{$lang->project->create}'");
|
||||
|
||||
Reference in New Issue
Block a user