From 1d5d15450209599ec7c38f7560e56050ec4148eb Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Sun, 22 Jul 2012 00:08:05 -0400 Subject: Merge --- static/js/pichat2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'static/js/pichat2.js') diff --git a/static/js/pichat2.js b/static/js/pichat2.js index 53e7b13..9a28450 100644 --- a/static/js/pichat2.js +++ b/static/js/pichat2.js @@ -1456,9 +1456,10 @@ if(!manPaletteOpen) { // ohgod - checkbox to hide the userlist $(function(){ + if ($('#textbutton').length == 0) return; $('#textbutton input').attr('checked', true); TextEnabled = true; - setTextEnable.apply($('#textbutton input')[0]); + if (setTextEnable) setTextEnable.apply($('#textbutton input')[0]); $('
').prependTo('#chatbuttons'); $('#showulist').change(function(){ $('#userList').toggle( this.checked ); }); }); -- cgit v1.2.3-70-g09d2