Development #40640
bloc dédié pour les scripts js chargés au début
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
Historique
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-templates-add-new-custom-block-for-top-javascript-40.patch 0001-templates-add-new-custom-block-for-top-javascript-40.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
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)
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
templates: add new custom block for top javascript (#40640)