From 6588f0e728f326754a03821c29501e58238c136e Mon Sep 17 00:00:00 2001 From: Olle Haerstedt Date: Wed, 17 Jan 2018 10:54:24 +0100 Subject: [PATCH] Dev: Remove unused button --- themes/survey/vanilla/scripts/theme.js | 2 -- .../navigation/language_changer_top_menu.twig | 21 ------------------- 2 files changed, 23 deletions(-) diff --git a/themes/survey/vanilla/scripts/theme.js b/themes/survey/vanilla/scripts/theme.js index d7b2e51605c..22913af55c4 100644 --- a/themes/survey/vanilla/scripts/theme.js +++ b/themes/survey/vanilla/scripts/theme.js @@ -123,8 +123,6 @@ var ThemeScripts = function(){ /* The limesurvey form exist in document, move select and button inside and click */ $(selectorGlobalForm+" [name='lang']").remove(); // Remove existing lang selector $("").attr('name','lang').val(lang).appendTo($(selectorGlobalForm)); - $('#changlangButton').clone().appendTo($(selectorGlobalForm)).click(); - }); }; diff --git a/themes/survey/vanilla/views/subviews/navigation/language_changer_top_menu.twig b/themes/survey/vanilla/views/subviews/navigation/language_changer_top_menu.twig index 232ea52d0ac..d9dfa0d44f1 100644 --- a/themes/survey/vanilla/views/subviews/navigation/language_changer_top_menu.twig +++ b/themes/survey/vanilla/views/subviews/navigation/language_changer_top_menu.twig @@ -49,27 +49,6 @@ - {# - Generates a simple bootstrap HTML button using the Yii widget. - @see: http://www.yiiframework.com/wiki/48/by-example-chtml/#hh2 - You can add remove attribute to the button via the array aButtonhtmlOptions - #} - {% set aButtonhtmlOptions = { - 'id' : 'changlangButton', - 'type' : 'submit', - 'value': 'changelang', - 'name' : 'move', - 'class': 'btn btn-default ls-js-hidden', - } - %} - - {{ - C.Html.htmlButton( - ("Change the language" | gT ), - aButtonhtmlOptions - ) - }} - {% endif %} {{ registerScript("BasicThemeScripts-TopLanguageChanger", "basicThemeScripts.initTopMenuLanguageChanger('." ~ aSurveyInfo.class.lctdropdownlia ~ "', 'form#limesurvey'); ", POS_READY) }}