Login
Register
!DOCTYPE html> kazOS x.id===window._activeCaseId);if(!c)return; c.title=document.getElementById('eTitle')?.value.trim()||c.title; c.type=document.getElementById('eType')?.value||c.type; c.status=document.getElementById('eStatus')?.value||c.status; c.assignee=document.getElementById('eAgent')?.value||c.assignee; c.notes=document.getElementById('eNotes')?.value??c.notes; c.working_with=document.getElementById('eWorkingWith')?.value.trim()||c.working_with||''; // Save to Supabase if not demo if(!window._demoMode && sb && !c.id.startsWith('DEMO#')){ await sb.from('cases').upsert({ id:c.id, store_id:c.storeId, title:c.title, type:c.type, status:c.status, assignee:c.assignee, notes:c.notes, working_with:c.working_with, updated_at:new Date().toISOString() }); } const ind=document.getElementById('autoSaveInd'); if(ind&&!closeAfter){ind.textContent='// saved';ind.style.color='var(--green)';setTimeout(()=>{if(ind)ind.textContent='';},1500);} render(); if(closeAfter) closeModal(); } >