Skip to content

Commit

Permalink
Dev: Fix some errors with bootswatch theme
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 17, 2018
1 parent c28b3d3 commit 173ffbc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions themes/survey/bootswatch/scripts/theme.js
Expand Up @@ -20,7 +20,7 @@
* The general Template closure.
* This is to capsule eventual errors inside of the template function, so the general script all run as the should
*/
var Template = function(){
var ThemeScripts = function(){

/**
* The function focusFirst puts the Focus on the first non-hidden element in the Survey.
Expand Down Expand Up @@ -165,6 +165,9 @@ var Template = function(){
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})

// Bind language changer onclick event.
activateLanguageChanger();
});
/**
* Code included inside this will run each time windows is resized
Expand Down Expand Up @@ -197,7 +200,7 @@ var Template = function(){
focusFirst: focusFirst,
sliderSuffixClone : sliderSuffixClone,
fixBodyPadding : fixBodyPadding,
window.templateCore.hideQuestionWithRelevanceSubQuestion : window.templateCore.hideQuestionWithRelevanceSubQuestion,
hideQuestionWithRelevanceSubQuestion : window.templateCore.hideQuestionWithRelevanceSubQuestion,
hideEmptyPart : hideEmptyPart,
initLanguageChanger: initLanguageChanger,
initTopMenuLanguageChanger: initTopMenuLanguageChanger
Expand Down

0 comments on commit 173ffbc

Please sign in to comment.