* finish task #6235.

This commit is contained in:
wangyidong
2019-08-21 10:30:20 +08:00
parent 9e43c72ab8
commit ab197cee1d
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ $(function()
if(flow != 'onlyTest')
{
if(link == 'true') showLink(buildID, type, param);
var showedInfo = false;
var infoShowed = false;
$('.nav.nav-tabs a[data-toggle="tab"]').on('shown.zui.tab', function(e)
{
var href = $(e.target).attr('href');
@@ -27,7 +27,7 @@ $(function()
var formID = tabPane.find('.linkBox').find('form:last');
if(formID.size() == 0) formID = tabPane.find('form:last');
if(href == '#buildInfo')
if(href == '#buildInfo' && !infoShowed)
{
var $tr = $('#buildInfo .detail-content .table-data tbody tr:first');
width = $tr.width() - $tr.find('th').width();
@@ -37,7 +37,7 @@ $(function()
setImageSize($(this), width, 0);
});
showedInfo = true;
infoShowed = true;
}
});
}
+3 -3
View File
@@ -16,7 +16,7 @@ function showLink(planID, type, orderBy, param)
$(function()
{
if(link == 'true') showLink(planID, type, orderBy, param);
var showedInfo = false;
var infoShowed = false;
$('.nav.nav-tabs a[data-toggle="tab"]').on('shown.zui.tab', function(e)
{
var href = $(e.target).attr('href');
@@ -24,7 +24,7 @@ $(function()
if(tabPane.size() == 0) return;
var formID = tabPane.find('.linkBox').find('form:last');
if(formID.size() == 0) formID = tabPane.find('form:last');
if(href == '#planInfo' && !showedInfo)
if(href == '#planInfo' && !infoShowed)
{
$('#planInfo img').each(function()
{
@@ -34,7 +34,7 @@ $(function()
setImageSize($(this), width, 0);
});
showedInfo = true;
infoShowed = true;
}
});
+3 -3
View File
@@ -18,7 +18,7 @@ function showLink(releaseID, type, param)
$(function()
{
if(link == 'true') showLink(releaseID, type, param);
var showedInfo = false;
var infoShowed = false;
$('.nav.nav-tabs a[data-toggle="tab"]').on('shown.zui.tab', function(e)
{
var href = $(e.target).attr('href');
@@ -27,7 +27,7 @@ $(function()
var formID = tabPane.find('.linkBox').find('form:last');
if(formID.size() == 0) formID = tabPane.find('form:last');
if(href == '#releaseInfo')
if(href == '#releaseInfo' && !infoShowed)
{
var $tr = $('#releaseInfo .detail-content .table-data tbody tr:first');
width = $tr.width() - $tr.find('th').width();
@@ -37,7 +37,7 @@ $(function()
setImageSize($(this), width, 0);
});
showedInfo = true;
infoShowed = true;
}
});
})