baldav/frontend
4aiman f395e8ec07 Fix sub-modal (ingredient) closing parent modal (recipe editor)
Problem: ingredient modal's closeModal called history.back(), which
triggered recipe editor's popHandler → closed recipe editor too.

Fix: modal suspend/resume system.
- When sub-modal opens, parent modal's popHandler is suspended
- When sub-modal closes, parent is resumed
- Parent popHandler ignores popstate events while suspended
- closeModal resumes parent before calling history.back()

Also: closeModal now pops exactly 1 history entry (not _historyDepth).
The _historyDepth counter tracks fullscreen entries within the modal,
which are handled by popHandler's decrements. closeModal only needs
to pop the modal's own base entry.
2026-05-27 22:55:43 +03:00
..
css Goal markers, 7-day kcal balance, weight-calorie correlation, food cost 2026-05-27 17:45:50 +03:00
data Clean up nutrients_guessed: removed 222 false positives 2026-05-23 18:10:00 +03:00
js Fix sub-modal (ingredient) closing parent modal (recipe editor) 2026-05-27 22:55:43 +03:00
lib Android support + Settings screen + Mobile UX fixes 2026-05-14 14:17:57 +03:00
index.html GPS point ordering + GPX export + chart zoom fixes 2026-05-16 21:21:13 +03:00