diff --git a/module/story/js/create.js b/module/story/js/create.js index ea3a5cc9ec..b7f5c069f8 100644 --- a/module/story/js/create.js +++ b/module/story/js/create.js @@ -33,5 +33,3 @@ $(function() ajustFilebox(); $(window).resize(ajustFilebox); }); - - diff --git a/module/story/view/header.html.php b/module/story/view/header.html.php index 5ccfac51a6..02f7f613c2 100644 --- a/module/story/view/header.html.php +++ b/module/story/view/header.html.php @@ -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); } }) }