* fix bug #1310.
This commit is contained in:
@@ -33,5 +33,3 @@ $(function()
|
||||
ajustFilebox();
|
||||
$(window).resize(ajustFilebox);
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -19,12 +19,14 @@ function loadBranch()
|
||||
function loadProductBranches(productID)
|
||||
{
|
||||
$('#branch').remove();
|
||||
$('#branch_chosen').remove();
|
||||
$.get(createLink('branch', 'ajaxGetBranches', "productID=" + productID), function(data)
|
||||
{
|
||||
if(data)
|
||||
{
|
||||
$('#product').closest('.input-group').append(data);
|
||||
$('#branch').css('width', config.currentMethod == 'create' ? '120px' : '65px');
|
||||
$('#branch').chosen(defaultChosenOptions);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user