Merge branch 'master' of https://github.com/flames/dynmap
This commit is contained in:
commit
9d2af0f641
2 changed files with 9 additions and 9 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -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') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue