Skip to content

Commit

Permalink
Fixed issue #18270: Language switch is not repopulated correctly afte…
Browse files Browse the repository at this point in the history
…r change question type (#2546)

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
  • Loading branch information
gabrieljenik and encuestabizdevgit committed Aug 4, 2022
1 parent 17759d9 commit d027281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/scripts/admin/questionEditor.js
Expand Up @@ -1635,7 +1635,7 @@ $(document).on('ready pjax:scriptcomplete', function () {

$('.lang-hide').hide();
const languages = languageJson.langs.split(';');
$('.lang-' + languages[0]).show();
$('.lang-switch-button[data-lang="' + languages[0] + '"]').trigger('click');

// TODO: Duplication.
$('.btnaddsubquestion').on('click.subquestions', addSubquestionInput);
Expand Down

0 comments on commit d027281

Please sign in to comment.