* [task#137378,doing,0.5h] add branchChange.
This commit is contained in:
@@ -294,7 +294,6 @@ window.updateItems = function(currentProduct = '', currentBranch = '')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(currentProduct !== '')
|
||||
{
|
||||
$('[name^=product][value="' + currentProduct + '"]').closest('.productBox').find('[name^="branch"]').each(function()
|
||||
@@ -326,5 +325,17 @@ window.updateItems = function(currentProduct = '', currentBranch = '')
|
||||
|
||||
window.branchChange = function(event)
|
||||
{
|
||||
const productID = $(event.target).closest('.productBox').find('.linkProduct .picker-box').zui('picker').$.value;
|
||||
const productID = $(event.target).closest('.productBox').find('.linkProduct .picker-box').zui('picker').$.value;
|
||||
const objectType = $(event.target).closest('.productsBox').data('objecttype');
|
||||
const $product = $(event.target).closest('.productBox').find('.linkProduct .pick-value');
|
||||
if(objectType == 'roadmap')
|
||||
{
|
||||
loadRoadmap($product);
|
||||
}
|
||||
else
|
||||
{
|
||||
loadPlan($product);
|
||||
}
|
||||
|
||||
updateItems(productID, $(event.target).val());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user