fix: add showToast fallback for robustness\n\n- Added fallback showToast function to prevent undefined errors\n- If showToast is not available from base.html, use simple alert fallback\n- Maintains same functionality while improving robustness\n- Addresses potential undefined showToast issue in pricelists functions

This commit is contained in:
Mikhail Chusavitin
2026-02-02 13:50:32 +03:00
parent e307a2765d
commit b80bde7dac

View File

@@ -203,6 +203,12 @@
</div>
<script>
// Fallback showToast function for cases where base.html isn't loaded properly
const showToast = window.showToast || function(msg, type) {
// Simple fallback: just alert the message
alert(`${type ? type + ': ' : ''}${msg}`);
};
let currentTab = 'alerts';
let currentPage = 1;
let totalPages = 1;