* Finish task#55174

This commit is contained in:
zenggang
2022-05-25 01:12:37 +00:00
parent 5ff9894471
commit 5b623fa3c4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -490,7 +490,7 @@ $(document).ready(function()
});
});
$(document).on('click', '#testStory_chosen,#story_chosen', function()
$(document).on('click', '#testStory_chosen', function()
{
var $obj = $(this).prev('select');
var value = $obj.val();
+1 -1
View File
@@ -98,7 +98,7 @@
<td colspan='3'>
<span id='storyBox' class="<?php if(!empty($stories)) echo 'hidden';?> "><?php printf($lang->task->noticeLinkStory, html::a($this->createLink('execution', 'linkStory', "executionID=$execution->id"), $lang->execution->linkStory, '', 'class="text-primary"'), html::a("javascript:loadStories($execution->id)", $lang->refresh, '', 'class="text-primary"'));?></span>
<div class='input-group <?php if(empty($stories)) echo "hidden";?>'>
<?php echo html::select('story', array($task->story => (empty($stories) or !isset($stories[$task->story])) ? '': $stories[$task->story]), $task->story, "class='form-control chosen' onchange='setStoryRelated();'");?>
<?php echo html::select('story', $stories, $task->story, "class='form-control chosen' onchange='setStoryRelated();'");?>
<span class='input-group-btn' id='preview'><a href='#' class='btn iframe'><?php echo $lang->preview;?></a></span>
</div>
</td>