Fix: Bottom-Nav z-index 300→700 (über Leaflet), Routen-Buttons auf refresh() aktualisiert
This commit is contained in:
parent
79e88b43ca
commit
4030da3776
3 changed files with 30 additions and 3 deletions
|
|
@ -64,7 +64,34 @@ window.Page_routes = (() => {
|
|||
}
|
||||
}
|
||||
|
||||
function refresh() { _syncRecBtn(); _loadData(); }
|
||||
function refresh() {
|
||||
// Button-Zeile neu rendern damit style-Änderungen nach einem JS-Update sichtbar werden
|
||||
const btnRow = document.querySelector('#rk-filter-btn')?.parentElement;
|
||||
if (btnRow) {
|
||||
btnRow.innerHTML = `
|
||||
<button id="rk-filter-btn" style="${_btnStyle()}position:relative">
|
||||
${UI.icon('funnel')} Filter
|
||||
<span class="rk-filter-badge" id="rk-filter-badge" style="display:none"></span>
|
||||
</button>
|
||||
<label id="rk-imp-wrap" title="GPX / KML / TCX importieren" style="${_btnStyle()}cursor:pointer">
|
||||
${UI.icon('download-simple')} Import
|
||||
<input type="file" id="rk-import-input" accept=".gpx,.kml,.tcx" style="display:none">
|
||||
</label>
|
||||
<button class="rk-rec-btn" id="rk-rec-btn" style="${_btnStyle(true)}">${UI.icon('path')} Aufzeichnen</button>
|
||||
`;
|
||||
document.getElementById('rk-filter-btn').addEventListener('click', _toggleFilterPanel);
|
||||
document.getElementById('rk-rec-btn').addEventListener('click', () => {
|
||||
if (window.Page_map?.isRecording?.()) { window.Page_map.stopRecording(); _syncRecBtn(); }
|
||||
else { App.navigate('map'); setTimeout(() => window.Page_map?.startRecording?.(), 600); }
|
||||
});
|
||||
document.getElementById('rk-import-input').addEventListener('change', e => {
|
||||
const file = e.target.files?.[0]; if (file) _importFile(file); e.target.value = '';
|
||||
});
|
||||
_updateFilterBadge();
|
||||
}
|
||||
_syncRecBtn();
|
||||
_loadData();
|
||||
}
|
||||
function onDogChange() {}
|
||||
|
||||
// ----------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue