* just use case step item as bug step when creating bug from case steps.

This commit is contained in:
chenfeiCF
2017-03-15 17:01:42 +08:00
parent 0416eed289
commit a5c19fd479
4 changed files with 25 additions and 2 deletions

View File

@@ -29,6 +29,17 @@ $(function()
$this.find('.collapse-handle').toggleClass('icon-chevron-down', !show).toggleClass('icon-chevron-up', show);;
});
$(".step-group input[type='checkbox']").click(function()
{
var $next = $(this).closest('tr').next();
while($next.length && $next.hasClass('step-item'))
{
var isChecked = $(this).prop('checked');
$next.find("input[type='checkbox']").prop('checked', isChecked);
$next = $next.next();
}
});
$('#casesResults table caption .result-tip').html($('#resultTip').html());
$('tr').remove('#result-success');