added chatSend() function

This commit is contained in:
Arthur Mayer 2011-02-18 10:21:55 +01:00
parent 5ddaf940ed
commit 10f93c02c1
2 changed files with 27 additions and 0 deletions

View file

@ -212,6 +212,12 @@ DynMap.prototype = {
type: 'text',
value: 'not working yet'
})
.keydown(function(event) {
if (event.keyCode == '13') {
event.preventDefault();
alert(this.value);
}
})
.appendTo(chat);
var chatcursor = me.chatcursor = $('<span/>')
.attr({ id: 'chatcursor'})