Skip to content

Commit

Permalink
Dev: added animation for warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jul 5, 2017
1 parent 5dbe2f4 commit 439799b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions templates/default/config.xml
Expand Up @@ -49,6 +49,8 @@
<bodyanimation>lightSpeedIn</bodyanimation>
<animatequestion>off</animatequestion>
<questionanimation>flipInX</questionanimation>
<animatealert>on</animatealert>
<alertanimation>shake</alertanimation>
</options>

<!-- Here datas about how LimeSurvey should load the template -->
Expand Down
2 changes: 1 addition & 1 deletion templates/default/views/subviews/warnings.twig
Expand Up @@ -38,7 +38,7 @@
{% if aSurveyInfo.errorHtml.show %}
{% for aMessage in aSurveyInfo.errorHtml.messages %}
<!-- Error Html warnings -->
<p class=' {# Uncomment to hide when popup is on { aSurveyInfo.errorHtml.hiddenClass } #} fade in alert-dismissible ls-questions-have-errors alert alert-danger' role='alert'>
<p class=' {# Uncomment to hide when popup is on { aSurveyInfo.errorHtml.hiddenClass } #} fade in alert-dismissible ls-questions-have-errors alert alert-danger {% if (aSurveyInfo.options.animatealert == "on") %} animated {{ aSurveyInfo.options.alertanimation }} {%endif%}' role='alert'>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{ aMessage }}
</p>
Expand Down

0 comments on commit 439799b

Please sign in to comment.