Skip to content

Commit

Permalink
Dev: Move activate language changer init to theme onready
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 16, 2018
1 parent 9244bf9 commit 904e118
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions assets/packages/limesurvey/survey.js
Expand Up @@ -326,8 +326,3 @@ function alertSurveyDialog(text,title)
{
alert(text);
}

/* document ready function */
$(document).on('ready pjax:scriptcomplete', function () {
activateLanguageChanger();
});
3 changes: 3 additions & 0 deletions themes/survey/vanilla/scripts/theme.js
Expand Up @@ -184,6 +184,9 @@ var ThemeScripts = function(){
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})

// Bind language changer onclick event.
activateLanguageChanger();
});

/**
Expand Down

0 comments on commit 904e118

Please sign in to comment.