* finish task #2202.

This commit is contained in:
wangyidong
2015-01-29 16:03:32 +08:00
parent 7412321aba
commit 3c8a5cc6fd
14 changed files with 20 additions and 13 deletions
+1 -8
View File
@@ -1,9 +1,3 @@
var storyChosenOptions = $.extend({}, defaultChosenOptions, {drop_width: 400, width: '200px'});
$(function() {
for(i = 0; i < batchCreateNum; i++) $("#story" + i).chosen(storyChosenOptions);
});
/* Get select of stories.*/
function setStories(moduleID, projectID, num)
{
@@ -15,8 +9,7 @@ function setStories(moduleID, projectID, num)
$('#story' + num).replaceWith(stories);
if(moduleID == 0) $('#story' + num).append("<option value='ditto'>" + ditto + "</option>")
$('#story' + num).val(storyID);
$('#story' + num + '_chosen').remove();
$("#story" + num).chosen(storyChosenOptions);
$("#story" + num).chosen(defaultChosenOptions);
});
}