summaryrefslogtreecommitdiff
path: root/static/js/pichat2.js
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2012-07-22 00:08:05 -0400
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2012-07-22 00:08:05 -0400
commit1d5d15450209599ec7c38f7560e56050ec4148eb (patch)
treefdb15bf10bc2f90a3f46380ff88df20f4546b2ec /static/js/pichat2.js
parent498f0d4da8190f9bee81f5fb40ba9657fb4d8a6c (diff)
Merge
Diffstat (limited to 'static/js/pichat2.js')
-rw-r--r--static/js/pichat2.js3
1 files changed, 2 insertions, 1 deletions
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]);
$('<div style="float:right; height:20px; margin-left:10px;"><label for="showulist"><span>show userlist?</span></label><input type="checkbox" id="showulist" checked></div>').prependTo('#chatbuttons');
$('#showulist').change(function(){ $('#userList').toggle( this.checked ); });
});