Skip to content

Commit

Permalink
Fixed issue: Labelsets not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Jan 12, 2018
1 parent 33910d0 commit f638c7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/scripts/admin/labels.js
Expand Up @@ -41,9 +41,10 @@ $(document).on('ready pjax:scriptcomplete', function(){
if ($(".answertable tbody").children().length == 0)
add_label(undefined);

$(document).on('click', '.btnaddanswer', add_label);
$(document).on('click', '.btndelanswer', del_label);
$(document).on('keyup change', '.codeval,.assessmentval', sync_label);
$('.btnaddanswer').on('click', add_label);
$('.btndelanswer').on('click', del_label);
$('.codeval').on('keyup change', sync_label);
$('.assessmentval').on('keyup change', sync_label);

$('#neweditlblset0 .answertable tbody').sortable({
update:sort_complete,
Expand Down Expand Up @@ -217,7 +218,6 @@ function add_label(event)
{
if(event!=undefined)
{
event.preventDefault();
if ($(event.target).closest('tr').find('.codeval').size()>0)
{
next_code=getNextCode($(event.target).closest('tr').find('.codeval').val());
Expand Down

0 comments on commit f638c7c

Please sign in to comment.