Bug #5489
Avertir par un message quand une requête ajax échoue
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
11 septembre 2014
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Sur l'appel d'une boite de dialogue, quand celui-ci échoue pour une raison quelconque, ce serait chouette d'afficher une erreur.
Fichiers
Révisions associées
style ajax loading error message (#5489)
Historique
Mis à jour par Benjamin Dauvergne il y a plus de 9 ans
- Fichier 0001-Show-an-error-when-loading-submiting-the-dialog-box-.patch 0001-Show-an-error-when-loading-submiting-the-dialog-box-.patch ajouté
Un truc genre ça ou avec plus de décorum ? À noter qu'on pourrait traduire les messages dans le JS avec Django.
Mis à jour par Frédéric Péters il y a plus de 9 ans
Un peu plus de decorum, genre si tu mets ça dans un <div id="ajax-error"> à la fin du body, puis un timeout pour faire un fade out après 3 secondes. J'ajouterai un style pour le poser en position: absolute; quelque part (à un endroit fixe ou à côté de $anchor, j'exprimenterai).
Mis à jour par Benjamin Dauvergne il y a plus de 9 ans
- Fichier 0001-Show-an-error-when-loading-submiting-the-dialog-box-.patch 0001-Show-an-error-when-loading-submiting-the-dialog-box-.patch ajouté
Ok.
Mis à jour par Benjamin Dauvergne il y a plus de 9 ans
- Fichier 0001-Show-an-error-when-loading-submiting-the-dialog-box-.patch 0001-Show-an-error-when-loading-submiting-the-dialog-box-.patch ajouté
Encore mieux avec nettoyage.
Mis à jour par Frédéric Péters il y a presque 9 ans
- Statut changé de Nouveau à Résolu (à déployer)
J'ai appliqué le patch manuellement et ajouté du style.
commit 1c3ad06d1de9a0f421404eb6605db3faae248e70 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Wed Jun 10 14:26:59 2015 +0200 style ajax loading error message (#5489) commit 79cc29d765cea6c15a0b9a34310415696edb38bc Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Wed Jun 10 14:26:06 2015 +0200 display an error when loading or submitting the dialog box fails (#5489)
display an error when loading or submitting the dialog box fails (#5489)