mirror of
https://github.com/BreizhHardware/projet-web-cipa4.git
synced 2026-05-09 08:15:44 +02:00
[PR #13] [MERGED] fix: unable to book trip #11
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BreizhHardware/projet-web-cipa4#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/BreizhHardware/projet-web-cipa4/pull/13
Author: @BreizhHardware
Created: 2/12/2026
Status: ✅ Merged
Merged: 2/12/2026
Merged by: @ClementHVT
Base:
main← Head:fix/book📝 Commits (1)
0af6f98fix: unable to book trip📊 Changes
4 files changed (+9 additions, -47 deletions)
View changed files
📝
js/manag.js(+7 -1)📝
js/publish.js(+1 -1)📝
php/classes/Security.php(+1 -1)📝
views/trip/manag.html(+0 -44)📄 Description
This pull request introduces several improvements to JavaScript module imports, code organization, and security headers. The main changes involve centralizing navigation updates, exposing certain functions globally for UI event handling, and updating the Content Security Policy to allow additional connections. Unused inline scripts have also been removed from the HTML template to streamline the codebase.
JavaScript module and global scope improvements:
updateNavto the imports in bothjs/manag.jsandjs/publish.jsto ensure navigation is updated on relevant pages. [1] [2]handleBookingAction,submitRating,openRatingModal, andgetCsrfTokenas global functions injs/manag.jsto enable direct usage from HTML event handlers.Security and policy updates:
php/classes/Security.phpto allow connections tohttps://unpkg.comin theconnect-srcdirective, supporting additional required resources.HTML and script cleanup:
views/trip/manag.html, relying instead on external scripts and the newly global functions for form handling and navigation updates.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.