* code for task #6290.

This commit is contained in:
wangyidong
2019-09-05 10:31:55 +08:00
parent abd68e9428
commit 77873ce9d9
@@ -74,6 +74,18 @@ $(function()
e.preventDefault();
});
/* Add link in progress. */
$nav.on('click', 'a[data-target^=#tabQaProduct]', function()
{
var productID = $(this).attr('data-target').replace('#tabQaProduct', '');
$progressValue = $nav.closest('.block-qa').find('.tab-content').find($(this).attr('data-target')).find('.progress-info .progress-value');
setTimeout(function()
{
$progressValue.html("<a href='" + createLink('bug', 'browse', "productID=" + productID + "&branch=&type=all") + "'>" + $progressValue.text() + "</a>");
}, 2000);
});
$nav.find('li.active a[data-target^=#tabQaProduct]').click();
$('[name^=build]').change(function()
{
var $tab = $('#bugBox' + $(this).val());