Merge pull request #560 from nlegoff/fix_alert

[3.8] Fix #1411 Cannot close alert
This commit is contained in:
Romain Neutron
2013-08-08 05:54:54 -07:00
4 changed files with 44 additions and 30 deletions

View File

@@ -46,5 +46,14 @@
</div>
</div>
</div>
{% block scripts %}{% endblock %}
{% block scripts %}
<script type="text/javascript">
// close alerts
$(document).on("click", ".alert .alert-block-close a", function(e){
e.preventDefault();
$(this).closest('.alert').alert('close');
return false;
});
</script>
{% endblock %}
{% endblock %}