fix, json has boolean, so checking for boolean and not string.

thanks dashkal for testing that
This commit is contained in:
Arthur Mayer 2011-03-07 07:48:46 +01:00
parent a92e17f6d4
commit 8d2066d280

View file

@ -202,7 +202,7 @@ DynMap.prototype = {
var messagelist = me.messagelist = $('<div/>') var messagelist = me.messagelist = $('<div/>')
.addClass('messagelist') .addClass('messagelist')
.appendTo(chat); .appendTo(chat);
if (me.options.allowchat === 'true') { if (me.options.allowchat === true) {
var chatinput = me.chatinput = $('<input/>') var chatinput = me.chatinput = $('<input/>')
.addClass('chatinput') .addClass('chatinput')
.attr({ .attr({