tabSelect: skip selection from fragment if error is displayed (#81867) #37
No reviewers
Labels
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: entrouvert/gadjo#37
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/81867-tabSelect-on-no-errornotice-only"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
tabSelect: skip selection from fragment if error is displayed (#81867)to WIP: tabSelect: skip selection from fragment if error is displayed (#81867)e6784f0f04
to45cc155560
WIP: tabSelect: skip selection from fragment if error is displayed (#81867)to tabSelect: skip selection from fragment if error is displayed (#81867)@ -363,1 +362,3 @@
if (document.location.hash && document.location.hash.indexOf('#open:') == 0) {
/* if no error to be displayed, focus tab from #open:<tab slug> anchor, to point to open panel */
/* when an error is to be displayed, let the template decide which tab is selected; do nothing here */
if (!document.getElementsByClassName('errornotice').length && document.location.hash && document.location.hash.indexOf('#open:') == 0) {
C'est peut-être un peu large de chercher dans tout le document, dans le cas de combo on peut avoir plusieurs zones avec des onglets, on ne voudrait pas empêcher l'une d'aller sur le bon onglet parce qu'une autre affiche une erreur; je serais pour limiter le sélecteur au contenu de la zone d'onglet concernée par le hash.
Ok, fair enough, je vais faire la modif.
tabSelect: skip selection from fragment if error is displayed (#81867)to WIP: tabSelect: skip selection from fragment if error is displayed (#81867)45cc155560
tofb69e7be05
WIP: tabSelect: skip selection from fragment if error is displayed (#81867)to tabSelect: skip selection from fragment if error is displayed (#81867)@ -364,0 +362,4 @@
/* if no error to be displayed, focus tab from #open:<tab slug> anchor, to point to open panel */
/* when an error is to be displayed, let the template decide which tab is selected; do nothing here */
if (
!document.querySelector('.pk-tabs--container').getElementsByClassName('errornotice').length
Ça ne correspond pas à la demande de Fred je pense. Pour faire ce que demande Fred il faut d'abord rechercher l'onglet correspondant au hash, puis au final vérifier si le conteneur parent contient une erreur ou pas et si il ne contient pas d'erreur, alors sélectionner l'onglet ciblé.
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.