Files
Facilitor/APPL/CHAT/ChatClose.asp
2024-03-14 11:24:06 +00:00

36 lines
737 B
Plaintext

<%@language = "javascript" %>
<%
/*
$Revision$
$Id$
ChatterClose.asp
Bij sluiten van het scherm ChatterAccept moet de channelId van de accepting gebruiker verwijderd worden.
*/
var JSON_Result = true;
%>
<!-- #include file="../Shared/common.inc" -->
<!-- #include file="./chat.inc" -->
<%
var acceptchannelId = getFParam("channelId");
var chat_queue = JSON.parse(Application(chat_queue_name) || "{}");
if (acceptchannelId in chat_queue.accepting)
{
delete chat_queue.accepting[acceptchannelId];
}
Application.Lock();
Application(chat_queue_name) = JSON.stringify(chat_queue);
Application.UnLock();
result = {};
Response.Write(JSON.stringify(result));
ASPPAGE_END();
%>