This commit is contained in:
FrozenCow 2011-02-19 16:31:36 +01:00
commit 9d2af0f641
2 changed files with 9 additions and 9 deletions

View file

@ -5,7 +5,7 @@ function sendChat(message) {
url: "http://jsonip.appspot.com/?callback=?", url: "http://jsonip.appspot.com/?callback=?",
dataType: "jsonp", dataType: "jsonp",
success: function(getip) { success: function(getip) {
var data = { name: getip.ip, message: message }; var data = '{"name":"'+getip.ip+'","message":"'+message+'"}';
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '/up/sendmessage', url: '/up/sendmessage',

View file

@ -210,7 +210,7 @@ DynMap.prototype = {
.attr({ .attr({
id: 'chatinput', id: 'chatinput',
type: 'text', type: 'text',
value: 'not working yet' value: ''
}) })
.keydown(function(event) { .keydown(function(event) {
if (event.keyCode == '13') { if (event.keyCode == '13') {