* Disconnect button added
* updated strophe.js version
<form id="textForm" onsubmit="return sendMessage(this);" action="#">
<input type="text" name="text" id ="text" />
<input type="submit" id="text_submit" value="Send"/>
+ <input type="button" onclick="return doDisconnect(this);" id="disc_submit" value="Disconnect" />
</form>
</div>
}
}
+function doDisconnect(aForm) {
+ if (connection) {
+ connection.send($pres({to: room, type: 'unavailable'}).tree());
+ connection.flush();
+ connection.disconnect();
+ connection = null;
+ }
+ return false;
+}
+
var dragElement = null;
var mouseX = 0;
var mouseY = 0;
dragElement = null;
}
-window.onunload = window.onbeforeunload = function() {
- if (connection) {
- connection.send($pres({to: room, type: 'unavailable'}).tree());
- connection.disconnect();
- connection = null;
- }
-};
+window.onunload = window.onbeforeunload = doDisconnect;
window.onmousemove = doDrag;
-Subproject commit 6d7b8863f0f36f73c0b65686956437d26bd93c01
+Subproject commit 119805c4163344fb1147131d6b9bc65702616c34
padding-right: 0px;
margin-left: 0px;
margin-right: 0px;
- position: absolute;
- right: 0px;
}
#text {
- width: 89%;
+ width: 80%;
padding-left: 0px;
padding-right: 0px;
margin-left: 0px;
margin-right: 0px;
}
+#disc_submit {
+ width: 7%;
+ position: absolute;
+ right: 0px
+}
+
.msg {
margin: 2px;
}