forked from UKSOURCE/cms.hailearning.edu.vn
first commit
This commit is contained in:
@@ -4,7 +4,13 @@
|
||||
|
||||
console.log('CMS Admin Main JS loaded');
|
||||
|
||||
// Helper to handle AJAX form submissions with confirmation or loading state
|
||||
// Helper to show toast notifications
|
||||
function showToast(title, message, type = 'info') {
|
||||
if (typeof window.showToast === 'function') return window.showToast(title, message, type);
|
||||
console.log(`[${type.toUpperCase()}] ${title}: ${message}`);
|
||||
}
|
||||
|
||||
// Helper to handle AJAX form submissions with optional confirmation and loading state
|
||||
window.handleFormAjax = async (formEl, options = {}) => {
|
||||
const {
|
||||
confirmMessage = null,
|
||||
|
||||
Reference in New Issue
Block a user