mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Merge pull request #560 from nlegoff/fix_alert
[3.8] Fix #1411 Cannot close alert
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user