Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LimeSurvey/LimeSurvey
Browse files Browse the repository at this point in the history
  • Loading branch information
TMSWhite committed May 15, 2012
2 parents ff03709 + f29c0be commit b76a64b
Show file tree
Hide file tree
Showing 3 changed files with 11,202 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/scripts/answers.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function addinput()
languages=langs.split(';');

sNextCode=getNextCode($(this).parent().parent().find('.code').val());
while ($(this).parent().parent().parent().find('input[value="'+sNextCode+'"]').length>0)
while ($(this).parent().parent().parent().find('input[value="'+sNextCode+'"]').length>0 && sNextCode!=$(this).parent().parent().find('.code').val())
{
sNextCode=getNextCode(sNextCode);
}
Expand Down
2 changes: 1 addition & 1 deletion admin/scripts/subquestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function addinput()
languages=langs.split(';');

nextcode=getNextCode($(this).parent().parent().find('.code').val());
while ($(this).parent().parent().parent().find('input[value="'+nextcode+'"]').length>0)
while ($(this).parent().parent().parent().find('input[value="'+nextcode+'"]').length>0 && nextcode!=$(this).parent().parent().find('.code').val())
{
nextcode=getNextCode(nextcode);
}
Expand Down

0 comments on commit b76a64b

Please sign in to comment.