* code for task#1552.

This commit is contained in:
xia0ta0
2013-07-22 16:18:27 +08:00
parent 78b1ffdfa0
commit 01f65195c3
7 changed files with 52 additions and 12 deletions

View File

@@ -69,6 +69,18 @@ function setAfter()
}
}
function setStories(moduleID, projectID, productID)
{
link = createLink('story', 'ajaxGetProjectStories', 'projectID=' + projectID + '&productID=' + productID + '&moduleID=' + moduleID);
$.get(link, function(stories)
{
if(!stories) stories = '<select id="story" name="story"></select>';
$('#story').replaceWith(stories);
$('#story_chzn').remove();
$("#story").chosen({no_results_text: ''});
});
}
$(document).ready(function()
{
setPreview();

View File

@@ -49,7 +49,7 @@ function loadModuleMenu(projectID)
*/
function loadProjectStories(projectID)
{
link = createLink('story', 'ajaxGetProjectStories', 'projectID=' + projectID + '&moduleId=0&storyID=' + oldStoryID);
link = createLink('story', 'ajaxGetProjectStories', 'projectID=' + projectID + '&productID=0&moduleID=0&storyID=' + oldStoryID);
$('#storyIdBox').load(link, function(){$('#story').chosen();});
}