Skip to content

Commit

Permalink
Fixed issue: Too many labelsets cause the system to break
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Aug 27, 2018
1 parent 2a9d8c4 commit d6fd758
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion assets/scripts/admin/answers.js
Expand Up @@ -471,7 +471,9 @@ function lsbrowser(e)
});

$('#labelsets').on('change', function(){
lspreview($(this).val());
var value = $(this).val();
if(parseFloat(value) == value)
lspreview(value);
});
}

Expand Down
4 changes: 3 additions & 1 deletion assets/scripts/admin/subquestions.js
Expand Up @@ -556,7 +556,9 @@ function lsbrowser(e)
});

$('#labelsets').on('change', function(){
lspreview($(this).val());
var value = $(this).val();
if(parseFloat(value) == value)
lspreview(value);
});

}
Expand Down

0 comments on commit d6fd758

Please sign in to comment.