* Fix bug #44589.
This commit is contained in:
@@ -12,9 +12,12 @@ function loadBranches(e)
|
||||
$branchBox.addClass('hidden');
|
||||
$.get($.createLink('branch', 'ajaxGetBranches', "productID=" + productID + "&oldBranch=0¶m=withClosed"), function(data)
|
||||
{
|
||||
if(data)
|
||||
data = JSON.parse(data);
|
||||
if(data.length > 0)
|
||||
{
|
||||
$('[name=branch]').zui('picker').render({items: JSON.parse(data), defaultValue: 0, name: 'branch'});
|
||||
$branch = $('[name=branch]').zui('picker');
|
||||
$branch.render({items: data});
|
||||
$branch.$.setValue('');
|
||||
$branchBox.removeClass('hidden');
|
||||
}
|
||||
ajaxLoadModules(productID, 0);
|
||||
@@ -32,10 +35,8 @@ function loadModules(e)
|
||||
{
|
||||
var productID = $('[name=root]').val();
|
||||
var branchID = $(e.target).val();
|
||||
|
||||
if(typeof(branchID) == 'undefined') branchID = 0;
|
||||
|
||||
console.log(productID)
|
||||
ajaxLoadModules(productID, branchID);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ formPanel
|
||||
(
|
||||
formGroup
|
||||
(
|
||||
set::width('2/3'),
|
||||
set::label($lang->tree->product),
|
||||
picker
|
||||
(
|
||||
@@ -44,6 +45,7 @@ formPanel
|
||||
),
|
||||
$product->type != 'normal' ? formGroup
|
||||
(
|
||||
set::width('1/3'),
|
||||
setClass('branchBox'),
|
||||
control
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user