* Code for task#79673.
This commit is contained in:
@@ -96,13 +96,17 @@ function loadURS(allURS)
|
||||
}
|
||||
|
||||
$('.twins').mouseover(function() {
|
||||
if(page == 'edit') return;
|
||||
$(this).parent('ul').find('a.unlink').addClass('hide');
|
||||
$(this).find('.unlink').removeClass('hide');
|
||||
});
|
||||
|
||||
$('.twins').mouseenter(function() {
|
||||
$('[data-toggle="popover"]').popover('hide');
|
||||
});
|
||||
|
||||
$('.twins').mouseout(function() {
|
||||
if(page == 'edit') return;
|
||||
$(this).find('.unlink').addClass('hide');
|
||||
});
|
||||
|
||||
@@ -142,5 +146,8 @@ function relieve(index)
|
||||
|
||||
function popoverCancel(index)
|
||||
{
|
||||
$('[data-id="' + index + '"]').popover('hide').addClass('hide');
|
||||
$('[data-id="' + index + '"]').popover('hide');
|
||||
if(page == 'edit') return;
|
||||
|
||||
$('[data-id="' + index + '"]').addClass('hide');
|
||||
}
|
||||
|
||||
@@ -17,12 +17,13 @@ foreach($twins as $twin)
|
||||
$branch = isset($branches[$twin->branch]) ? $branches[$twin->branch] : '';
|
||||
$stage = $lang->story->stageList[$twin->stage];
|
||||
$labelClass = $story->branch == $twin->branch ? 'label-primary' : '';
|
||||
$hide = $this->app->rawMethod == 'edit' ? '' : 'hide';
|
||||
|
||||
echo "<li title='$title' class='twins'>";
|
||||
echo "<span class='label {$labelClass} label-outline label-badge' title='$branch'>{$branch}</span> ";
|
||||
echo "<span class='label label-outline' title='{$stage}'>{$stage}</span> ";
|
||||
echo ($canViewLinkStory ? html::a($this->createLink('story', 'view', "id=$id", '', true), "$title", '', "class='$class viewlink' data-width='80%'") : "$title");
|
||||
if($canRelieved) echo "<a class='unlink hide' data-id='$id' data-toggle='popover'><i class='icon icon-unlink btn-info'></i></a>";
|
||||
if($canRelieved) echo "<a class='unlink $hide' data-id='$id' data-toggle='popover'><i class='icon icon-unlink btn-info'></i></a>";
|
||||
echo "</li>";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<?php $browseLink = $app->session->storyList ? $app->session->storyList : $this->createLink('product', 'browse', "productID=$story->product");?>
|
||||
<?php js::set('sysurl', common::getSysUrl());?>
|
||||
<?php js::set('storyType', $story->type);?>
|
||||
<?php js::set('page', $this->app->rawMethod);?>
|
||||
<?php if(strpos($_SERVER["QUERY_STRING"], 'isNotice=1') === false):?>
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<div class="btn-toolbar pull-left">
|
||||
|
||||
Reference in New Issue
Block a user