Revert "Multiple select se nemají zavírat"
This reverts commit 4a3f8c66
This commit is contained in:
parent
bed107aeac
commit
727d0b2955
3 changed files with 1 additions and 10 deletions
|
@ -1,7 +0,0 @@
|
||||||
// Nenechá select2 (používaný pro multiple select) se zavřít po výběru
|
|
||||||
$(window).on('load', function () {
|
|
||||||
// Z nějakého důvodu nestačí onload, ale libovolný timeout pomůže. BÚNO 0.5 sekundy, kdyby to bylo rychlostí mého počítače
|
|
||||||
setTimeout(function() {
|
|
||||||
$(".select2-hidden-accessible").select2({closeOnSelect: false})
|
|
||||||
}, 500)
|
|
||||||
});
|
|
|
@ -1,8 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% block script %}
|
{% block script %}
|
||||||
<script src="{% static 'odevzdavatko/dynamic_formsets.js' %}"></script>
|
<script src="{% static 'odevzdavatko/dynamic_formsets.js' %}"></script>
|
||||||
<script src="{% static 'odevzdavatko/nesbalovaci_select2.js' %}"></script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<!--script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script!-->
|
<!--script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script!-->
|
||||||
{{form.media}}
|
{{form.media}}
|
||||||
<script src="{% static 'odevzdavatko/dynamic_formsets.js' %}"></script>
|
<script src="{% static 'odevzdavatko/dynamic_formsets.js' %}"></script>
|
||||||
<script src="{% static 'odevzdavatko/nesbalovaci_select2.js' %}"></script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
Loading…
Reference in a new issue