mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-05 08:05:58 +01:00
34acbe9cee
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1964 b35dd754-fafc-0310-a699-88a17e54d16e
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="expires" content="0">
|
|
|
|
<script>
|
|
|
|
function verifyLogout () {
|
|
if (confirm("Are you sure you'd like to logout")) {
|
|
// hacky solution to avoid logging out twice due to parent frame's onUnload
|
|
try {
|
|
document.logout.command.value = "silence";
|
|
} catch (e) { }
|
|
|
|
window.parent.close();
|
|
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
</script>
|
|
|
|
<link rel="stylesheet" href="<%= request.getContextPath() %>/style_sheet.jsp"
|
|
type="text/css">
|
|
</head>
|
|
|
|
<body class="deffr">
|
|
<center>In the room:</center>
|
|
<br>
|
|
<hr width=67%>
|
|
|
|
<div id="par__list"> </div>
|
|
|
|
<form name="logout" action="<%= request.getContextPath() %>/ChatServlet" method="post">
|
|
<input type="hidden" name="command" value="logout">
|
|
</form>
|
|
|
|
<span class="logout">
|
|
<a href="<%= request.getContextPath() %>/ChatServlet?command=logout"
|
|
onclick="return verifyLogout();" >
|
|
<img src="images/logout-16x16.gif" border="0" class="logout"> Logout</a></span>
|
|
</body>
|
|
|
|
</html>
|