This commit is contained in:
liyuchun
2021-08-31 08:51:00 +08:00
parent efd85e67e1
commit 8f3e2f9a08
+14 -2
View File
@@ -62,7 +62,7 @@ function loadExecutionStories(executionID)
$('#story').next('.picker').remove();
$('#story').replaceWith(data);
$('#story').addClass('filled').chosen();
/* If there is no story option, select will be hidden and text will be displayed; otherwise, the opposite is true */
if($('#story option').length > 1)
{
@@ -70,7 +70,7 @@ function loadExecutionStories(executionID)
$('#storyBox').addClass('hidden');
}
else
{
{
$('#storyBox').removeClass('hidden');
$('#story').parent().addClass('hidden');
}
@@ -281,6 +281,18 @@ function setStories(moduleID, executionID)
$('#story_chosen').remove();
$('#story').next('.picker').remove();
$("#story").addClass('filled').chosen();
/* If there is no story option, select will be hidden and text will be displayed; otherwise, the opposite is true */
if($('#story option').length > 1)
{
$('#story').parent().removeClass('hidden');
$('#storyBox').addClass('hidden');
}
else
{
$('#storyBox').removeClass('hidden');
$('#story').parent().addClass('hidden');
}
});
}