* Adjust the issue of merge branch.
This commit is contained in:
@@ -45,7 +45,7 @@ class branch extends control
|
||||
$this->view->orderBy = $orderBy;
|
||||
$this->view->pager = $pager;
|
||||
$this->view->product = $this->product->getById($productID);
|
||||
$this->view->branchPairs = $this->branch->getPairs($productID);
|
||||
$this->view->branchPairs = $this->branch->getPairs($productID, 'active');
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -47,13 +47,16 @@ $(function()
|
||||
|
||||
$("input[id*='branchIDList']").change(function()
|
||||
{
|
||||
if($(this).prop('checked') && $(this).closest('tr').data('status') === 'closed')
|
||||
$("input[id*='branchIDList']").each(function()
|
||||
{
|
||||
$("a[href='#mergeBranch']").hide();
|
||||
return false;
|
||||
}
|
||||
if($(this).prop('checked') && $(this).closest('tr').data('status') === 'closed')
|
||||
{
|
||||
$("a[href='#mergeBranch']").hide();
|
||||
return false;
|
||||
}
|
||||
|
||||
$("a[href='#mergeBranch']").show();
|
||||
$("a[href='#mergeBranch']").show();
|
||||
})
|
||||
});
|
||||
|
||||
$('#createBranch').change(function()
|
||||
|
||||
Reference in New Issue
Block a user