Fix #1411 Cannot cloe alert

This commit is contained in:
Nicolas Le Goff
2013-08-08 12:03:26 +02:00
parent 72aaa24ce5
commit 9ecfc82b9f
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 %}