Kaynağa Gözat

Fix select2 being not loaded for 'en' languages

Denis K 9 yıl önce
ebeveyn
işleme
90211ed5ca
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      jet/templates/admin/base.html

+ 1 - 1
jet/templates/admin/base.html

@@ -36,6 +36,7 @@
     <script src="{% static "jet/vendor/jquery/jquery-1.11.3.min.js" %}"></script>
     <script src="{% static "jet/vendor/jquery-ui/jquery-ui.min.js" %}"></script>
     <script src="{% static "jet/vendor/jquery-ui-timepicker/jquery.ui.timepicker.js" %}"></script>
+    <script src="{% static "jet/vendor/select2/js/select2.full.min.js" %}"></script>
     {% if LANGUAGE_CODE|slice:":2" != 'en' %}
         {% with "jet/vendor/jquery-ui/i18n/datepicker-"|add:LANGUAGE_CODE|add:".js" as url %}
             <script src="{% static url %}"></script>
@@ -43,7 +44,6 @@
         {% with "jet/vendor/jquery-ui-timepicker/i18n/jquery.ui.timepicker-"|add:LANGUAGE_CODE|add:".js" as url %}
             <script src="{% static url %}"></script>
         {% endwith %}
-        <script src="{% static "jet/vendor/select2/js/select2.full.min.js" %}"></script>
         {% with "jet/vendor/select2/js/i18n/"|add:LANGUAGE_CODE|add:".js" as url %}
             <script src="{% static url %}"></script>
         {% endwith %}