Browse Source

Rename block "js" → "extra_js"

For consistency with extra_css and clarity.
Jocelyn Delande 9 years ago
parent
commit
9a71515961

+ 2 - 2
coin/members/templates/members/index.html

@@ -49,7 +49,7 @@
 {% endblock %}
 {% endblock %}
 
 
 
 
-{% block js %}
+{% block extra_js %}
     {{ block.super }}
     {{ block.super }}
     <script>
     <script>
     $(function() {
     $(function() {
@@ -71,4 +71,4 @@
         });
         });
     });
     });
     </script>
     </script>
-{% endblock js %}
+{% endblock extra_js %}

+ 1 - 1
coin/members/templates/members/registration/password_reset_form.html

@@ -29,7 +29,7 @@
 </div>
 </div>
 {% endblock %}
 {% endblock %}
 
 
-{% block js %}
+{% block extra_js %}
     <script>
     <script>
         $(function(){
         $(function(){
             //On récupère l'email passé éventuellement en paramètre GET.
             //On récupère l'email passé éventuellement en paramètre GET.

+ 1 - 1
coin/templates/base.html

@@ -90,7 +90,7 @@
 <script src="{% static "js/foundation.min.js" %}"></script>
 <script src="{% static "js/foundation.min.js" %}"></script>
 <script src="{% static "js/foundation/foundation.offcanvas.js" %}"></script>
 <script src="{% static "js/foundation/foundation.offcanvas.js" %}"></script>
 <script src="{% static "js/utils.js" %}"></script>
 <script src="{% static "js/utils.js" %}"></script>
-{% block js %}{% endblock js %}
+{% block extra_js %}{% endblock extra_js %}
 
 
 <script>
 <script>
   $(document).foundation();
   $(document).foundation();

+ 2 - 2
vpn/templates/vpn/vpn.html

@@ -88,7 +88,7 @@
 
 
 {% endblock %}
 {% endblock %}
 
 
-{% block js %}
+{% block extra_js %}
     <script>
     <script>
         // Bouton génération du mot de passe
         // Bouton génération du mot de passe
         $('#passgen').click(function(){
         $('#passgen').click(function(){
@@ -120,4 +120,4 @@
         });
         });
 
 
     </script>
     </script>
-{% endblock js %}
+{% endblock extra_js %}