* code for task#1592.

This commit is contained in:
xia0ta0
2013-07-23 16:40:59 +08:00
parent 0e8c1ffe05
commit b56e48890f
4 changed files with 36 additions and 6 deletions
+24 -1
View File
@@ -1,4 +1,27 @@
$(document).ready(function()
{
for(i = 0; i < testcaseBatchCreateNum; i++) $("#story" + i).chosen({no_results_text: noResultsMatch});
for(var i = 0; i < testcaseBatchCreateNum; i++)
{
$("#story" + i).chosen({no_results_text: noResultsMatch}).bind('liszt:showing_dropdown', function()
{
index = $(this).attr('id').substring(5);
module = $('#module' + index).val();
if(module == 'same')
{
for(var i = index - 1; i >=0; i--)
{
if($('#module' + i).val() != 'same')
{
module = $('#module' + i).val();
break;
}
}
}
link = createLink('story', 'ajaxGetProductStories', 'productID=' + productID + '&moduleID=' + module + '&storyID=0&onlyOption=true');
$(this).load(link, function()
{
$('#story' + index).trigger("liszt:updated");
});
});
}
});