summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/js/pichat.js8
-rw-r--r--static/js/pichat2.js8
-rw-r--r--static/js/src/palette-manual.js8
3 files changed, 15 insertions, 9 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index 9a28450..ad48981 100644
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -1457,9 +1457,11 @@ if(!manPaletteOpen) {
// ohgod - checkbox to hide the userlist
$(function(){
if ($('#textbutton').length == 0) return;
- $('#textbutton input').attr('checked', true);
- TextEnabled = true;
- if (setTextEnable) setTextEnable.apply($('#textbutton input')[0]);
+ if (window.Room && Room == "atrium") {
+ $('#textbutton input').attr('checked', true);
+ TextEnabled = true;
+ 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 ); });
});
diff --git a/static/js/pichat2.js b/static/js/pichat2.js
index 9a28450..ad48981 100644
--- a/static/js/pichat2.js
+++ b/static/js/pichat2.js
@@ -1457,9 +1457,11 @@ if(!manPaletteOpen) {
// ohgod - checkbox to hide the userlist
$(function(){
if ($('#textbutton').length == 0) return;
- $('#textbutton input').attr('checked', true);
- TextEnabled = true;
- if (setTextEnable) setTextEnable.apply($('#textbutton input')[0]);
+ if (window.Room && Room == "atrium") {
+ $('#textbutton input').attr('checked', true);
+ TextEnabled = true;
+ 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 ); });
});
diff --git a/static/js/src/palette-manual.js b/static/js/src/palette-manual.js
index 19175d9..b35fa9c 100644
--- a/static/js/src/palette-manual.js
+++ b/static/js/src/palette-manual.js
@@ -211,9 +211,11 @@ if(!manPaletteOpen) {
// ohgod - checkbox to hide the userlist
$(function(){
if ($('#textbutton').length == 0) return;
- $('#textbutton input').attr('checked', true);
- TextEnabled = true;
- if (setTextEnable) setTextEnable.apply($('#textbutton input')[0]);
+ if (window.Room && Room == "atrium") {
+ $('#textbutton input').attr('checked', true);
+ TextEnabled = true;
+ 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 ); });
});