From ef4e8a2cbd477644bb987527bd055338c9527070 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 1 Dec 2017 09:43:56 +0800 Subject: [PATCH] * fix bug #1310. --- module/story/js/create.js | 2 -- module/story/view/header.html.php | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) 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); } }) }