Skip to content

Commit

Permalink
Fixed issue #6442 : Adding labels fails without numbers in last Code …
Browse files Browse the repository at this point in the history
…field in Label Set editor

Fixed issue : Adding labels look only the first code for number
  • Loading branch information
Shnoulle committed Aug 8, 2012
1 parent ba64ed4 commit 4e359c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/admin/updateset.js
Expand Up @@ -157,15 +157,15 @@ function sort_complete(event, ui){

function add_label(event)
{
if ($('.answertable').find('.codeval').size()>0)
{
next_code=getNextCode($('.answertable').find('.codeval').val());
if ($(this).closest('tr').find('.codeval').size()>0)
{
next_code=getNextCode($(this).closest('tr').find('.codeval').val());
}
else
{
next_code='L001';
}
while ($('.answertable').find('input[value="'+next_code+'"]').length>0)
while ($('.answertable').find('input[value="'+next_code+'"]').length>0 && next_code!=$(this).closest('tr').find('.codeval').val())
{
next_code=getNextCode(next_code);
}
Expand Down Expand Up @@ -308,7 +308,7 @@ function getNextCode(sourcecode)
}
}
if (foundnumber==-1)
{
{
return(sourcecode);
}
else
Expand Down

0 comments on commit 4e359c1

Please sign in to comment.