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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user