Add 'hidechat=true' URL parameter to hide all chat input/output

This commit is contained in:
Mike Primm 2012-01-09 01:53:28 +08:00 committed by mikeprimm
parent 7a3235193d
commit d31db2ebc5
3 changed files with 12 additions and 0 deletions

View file

@ -8,6 +8,10 @@ $.ajax({
componentconstructors['chat'] = function(dynmap, configuration) {
var me = this;
if(dynmap.getBoolParameterByName("hidechat"))
return;
// Provides 'chat'-events by monitoring the world-updates.
$(dynmap).bind('worldupdate', function(event, update) {
swtch(update.type, {