* Fix bug #14697.
This commit is contained in:
@@ -34,4 +34,33 @@ $('[name*=unitList]').change(function()
|
||||
$("#defaultCurrency").trigger("chosen:updated");
|
||||
});
|
||||
|
||||
$('#submit').click(function()
|
||||
{
|
||||
if(module == 'testcase' && field == 'review' && stopSubmit)
|
||||
{
|
||||
var needReview = $('input:radio[name="needReview"]:checked').val();
|
||||
stopSubmit = false;
|
||||
|
||||
if(needReview == 0)
|
||||
{
|
||||
$.post(createLink('testcase', 'ajaxGetReviewCount'), function(count)
|
||||
{
|
||||
if(count == 0)
|
||||
{
|
||||
$('#submit').click();
|
||||
return true;
|
||||
}
|
||||
|
||||
bootbox.confirm(confirmReviewCase, function(result)
|
||||
{
|
||||
if(result) $('#submit').append("<input type='text' class='hidden' name='reviewCase' value='1'>");
|
||||
$('#submit').click();
|
||||
})
|
||||
})
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
$('[name*=unitList]').change();
|
||||
|
||||
Reference in New Issue
Block a user