feat: Module fallback redirects and duplicate item modal redirects

This commit is contained in:
2026-05-12 08:00:02 +02:00
parent cded7b02fe
commit 457d32a087
3 changed files with 59 additions and 26 deletions
+12 -6
View File
@@ -3252,12 +3252,6 @@ document.addEventListener('DOMContentLoaded', ()=>{
}
document.addEventListener('DOMContentLoaded', function() {
const urlParams = new URLSearchParams(window.location.search);
const openItem = urlParams.get('open_item_modal');
if (openItem) {
openEditModalFromServer(openItem);
}
// Load saved filters
loadFilterState();
@@ -5722,4 +5716,16 @@ document.addEventListener('DOMContentLoaded', ()=>{
}
}
</style>
{% if open_item %}
<script>
document.addEventListener("DOMContentLoaded", function() {
if (typeof openEditModalFromServer === 'function') {
setTimeout(function() {
openEditModalFromServer('{{ open_item }}');
}, 500);
}
});
</script>
{% endif %}
{% endblock %}