Skip to content

Commit

Permalink
Dev: Remove unused button
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 17, 2018
1 parent 656a14d commit 6588f0e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions themes/survey/vanilla/scripts/theme.js
Expand Up @@ -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
$("<input type='hidden'>").attr('name','lang').val(lang).appendTo($(selectorGlobalForm));
$('#changlangButton').clone().appendTo($(selectorGlobalForm)).click();

});
};

Expand Down
Expand Up @@ -49,27 +49,6 @@
</ul>
</li>

{#
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) }}
Expand Down

0 comments on commit 6588f0e

Please sign in to comment.