* Code for task #77807.
This commit is contained in:
@@ -11,5 +11,4 @@
|
||||
.linkStoryTitle {white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}
|
||||
.linkStoryTr > th {width: 90px;}
|
||||
.linkStoryTr > td {padding-left: 0px !important;}
|
||||
.removeButton {margin-left: -10px;}
|
||||
.resolution {white-space: nowrap; overflow: hidden;}
|
||||
|
||||
+9
-12
@@ -9,17 +9,14 @@ $(function()
|
||||
/* Add for task #5385. */
|
||||
if(config.onlybody == 'yes') $('.main-actions').css('width', '100%')
|
||||
|
||||
$('#unlinkStory').click(function()
|
||||
$('.legendStories').mouseover(function()
|
||||
{
|
||||
if($('.removeButton').hasClass('hide'))
|
||||
{
|
||||
$('.removeButton').removeClass('hide');
|
||||
$(this).text(cancel);
|
||||
}
|
||||
else
|
||||
{
|
||||
$('.removeButton').addClass('hide');
|
||||
$(this).text(unlink);
|
||||
}
|
||||
})
|
||||
$(this).parent('ul').find('a.removeButton').addClass('hide');
|
||||
$(this).find('.removeButton').removeClass('hide');
|
||||
});
|
||||
|
||||
$('.legendStories').mouseout(function()
|
||||
{
|
||||
$(this).find('.removeButton').addClass('hide');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -448,13 +448,12 @@
|
||||
foreach($relations as $item) $relation[$item->id] = $item->title;
|
||||
foreach($relation as $id => $title)
|
||||
{
|
||||
echo "<li title='$title'>" . ($canViewLinkStory ? html::a($this->createLink('story', 'view', "id=$id&version=0¶m=0&storyType=$relationType", '', true), "#$id $title", '', "class='iframe' data-width='80%'") : "#$id $title");
|
||||
echo html::a($this->createLink('story', 'linkStory', "storyID=$story->id&type=remove&linkedID=$id&browseType=&queryID=0&storyType=$story->type"), '<i class="icon icon-close"></i>', 'hiddenwin', "class='hide removeButton'");
|
||||
echo "<li title='$title' class='legendStories'>" . ($canViewLinkStory ? html::a($this->createLink('story', 'view', "id=$id&version=0¶m=0&storyType=$relationType", '', true), "#$id $title", '', "class='iframe' data-width='80%'") : "#$id $title");
|
||||
echo html::a($this->createLink('story', 'linkStory', "storyID=$story->id&type=remove&linkedID=$id&browseType=&queryID=0&storyType=$story->type"), '<i class="icon icon-unlink btn-info"></i>', 'hiddenwin', "class='hide removeButton'");
|
||||
}
|
||||
?>
|
||||
<?php $linkLang = ($story->type == 'story') ? $lang->story->requirement : $lang->story->story;?>
|
||||
<li><?php if(common::hasPriv($story->type, 'linkStory')) echo html::a($this->createLink('story', 'linkStory', "storyID=$story->id&type=linkStories&linkedID=0&browseType=&queryID=0&storyType=$story->type", '', true), $lang->story->link . $linkLang, '', "class='btn btn-info iframe' data-width='95%' id='linkButton'");?>
|
||||
<?php if(!empty($relations)) echo html::a('javascript:void(0)', $lang->story->unlink, '', "class='btn btn-info' id='unlinkStory'");?></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
|
||||
Reference in New Issue
Block a user