Skip to content

Commit

Permalink
Fixed issue #17844: Deleting or adding in the middle of a loaded labe…
Browse files Browse the repository at this point in the history
…l set not possible (#2279)
  • Loading branch information
gabrieljenik committed Mar 7, 2022
1 parent dafa3ea commit 721e1ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/scripts/admin/questionEditor.js
Expand Up @@ -849,8 +849,8 @@ $(document).on('ready pjax:scriptcomplete', function () {
langIds[i] = randId;
}

$tr.attr('data-common-id', $tr.attr('data-common-id').replace('/new[0-9]{3,6}/', langIds[i]));
$tr.attr('id', $tr.attr('id').replace('/new[0-9]{3-6}/', langIds[i]));
$tr.attr('data-common-id', $tr.attr('data-common-id').replace(/new[0-9]{3,6}/, langIds[i]));
$tr.attr('id', $tr.attr('id').replace(/new[0-9]{3,6}/, langIds[i]));

$row.find('input').each((j /*: number */, inputField) => {
$(inputField).attr('name', $(inputField).attr('name').replace(/new[0-9]{3,6}/, langIds[i]));
Expand Down

0 comments on commit 721e1ef

Please sign in to comment.