Fix bug 16468.

This commit is contained in:
zhouxin
2021-11-22 15:19:22 +08:00
parent 7ec2b00493
commit 72f57c6f01
+11 -9
View File
@@ -486,10 +486,10 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
foreach($plans as $planID => $plan)
{
$position = stripos($plan, '/');
$planLabel = $position === false ? $plan : ('<span class="label label-outline label-badge" id="changetowhite">' . substr($plan, 0, $position) . '</span>' . substr($plan, $position + 1));
$planLabel = $position === false ? $plan : ('<span class="label label-outline label-badge">' . substr($plan, 0, $position) . '</span>' . substr($plan, $position + 1));
$searchKey = $withSearch ? ('data-key="' . zget($plansPinYin, $plan, '') . '"') : '';
$actionLink = $this->createLink('story', 'batchChangePlan', "planID=$planID");
echo html::a('#', $planLabel, '', "$searchKey title='{$plan}' onclick=\"setFormAction('$actionLink', 'hiddenwin', '#productStoryForm')\" onmouseover=\"setBadgeStyle(this);\" onmouseout=\"removeBadgeStyle()\"");
echo html::a('#', $planLabel, '', "$searchKey title='{$plan}' onclick=\"setFormAction('$actionLink', 'hiddenwin', '#productStoryForm')\" onmouseover=\"setBadgeStyle(this, true);\" onmouseout=\"setBadgeStyle(this, false)\"");
}
?>
</div>
@@ -662,15 +662,17 @@ $(function()
});
});
function setBadgeStyle(obj)
function setBadgeStyle(obj, isshow)
{
var label = $(obj);
label.find('#changetowhite').css({"color":"#fff", "border-color":"#fff"});
}
function removeBadgeStyle()
{
$('#changetowhite').css({"color":"#838a9d", "border-color":"#838a9d"});
if(isshow == true)
{
label.find('.label-badge').css({"color":"#fff", "border-color":"#fff"});
}
else
{
label.find('.label-badge').css({"color":"#838a9d", "border-color":"#838a9d"});
}
}
</script>
<?php include '../../common/view/footer.html.php';?>