* code for task#1592.
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user