Projet

Général

Profil

Development #40640

bloc dédié pour les scripts js chargés au début

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
11 mars 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Dans la variante toodego de combo/page_template.html on fait

 {% block extra_top_head %}
 {{ block.super }}
 <script src="{{site_base}}{% xstatic 'jquery-ui' 'jquery-ui.min.js' %}"></script>
 {% endblock %}

mais ça fait que le jquery-ui va se trouver derrière les scripts ajoutés par w.c.s. et on peut se trouver ainsi dans la situation où jquery.fileupload.js est chargé avant et comme il dépend de jquery-ui, ça échoue.

 TypeError: $.widget is not a function
 TypeError: $(...).find(...).fileupload is not a function

Fichiers

Révisions associées

Révision 41caec29 (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

templates: add new custom block for top javascript (#40640)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 4 ans

#3

Mis à jour par Thomas Noël il y a environ 4 ans

  • Statut changé de Solution proposée à Solution validée
#4

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 41caec29f59a1f45346705f25d56fa225140cc3c
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Wed Mar 11 10:48:57 2020 +0100

    templates: add new custom block for top javascript (#40640)
#5

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF