first commit

This commit is contained in:
2026-04-11 14:08:27 +07:00
parent e86e5d2c46
commit 6b7655aa16
389 changed files with 5387 additions and 60861 deletions

View File

@@ -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,