Changeset 1e172f3 in Klonkt for src/views/partials/bottom-tab.ejs
- Timestamp:
- 08/07/2026 12:00:22 PM (5 weeks ago)
- Branches:
- main
- Children:
- 4c1e327
- Parents:
- ea138c0
- git-author:
- Robin <roboburr@…> (08/07/2026 12:00:20 PM)
- git-committer:
- roboburr <roboburr@…> (08/07/2026 12:00:22 PM)
- File:
-
- 1 edited
-
src/views/partials/bottom-tab.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/bottom-tab.ejs
rea138c0 r1e172f3 302 302 </style> 303 303 304 <script> 305 // Bottom-tab search button → opens #search-overlay. Using event delegation + looking 306 // up the overlay on EVERY click: the overlay lives in the chrome that is OOB-replaced 307 // during htmx navigation, so a once-captured reference goes stale 308 // (button did nothing afterwards). Guard against double-wiring. 309 (function() { 310 if (window.__btSearchWired) return; 311 window.__btSearchWired = true; 312 document.addEventListener('click', function(e) { 313 if (!e.target.closest || !e.target.closest('#bottom-tab-search-toggle')) return; 314 var o = document.getElementById('search-overlay'); 315 if (o) { o.hidden = false; var i = o.querySelector('input'); if (i) i.focus(); } 316 }); 317 })(); 318 </script> 304 <%# De zoekknop zit nu in de chrome-module (assets/js/mod/chrome.js). 305 Inline script hier wordt door de CSP geweigerd zodra deze partial via htmx 306 binnenkomt, en dat is bij elke navigatie -- zie shaer-0i6. %>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)