diff options
| -rw-r--r-- | static/js/pichat.js | 9 | ||||
| -rw-r--r-- | static/js/pichat2.js | 9 | ||||
| -rw-r--r-- | static/js/src/palette-manual.js | 9 |
3 files changed, 18 insertions, 9 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 8247492..ad48981 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -1456,9 +1456,12 @@ if(!manPaletteOpen) { // ohgod - checkbox to hide the userlist $(function(){ -// $('#textbutton input').attr('checked', true); -// TextEnabled = true; -// setTextEnable.apply($('#textbutton input')[0]); + if ($('#textbutton').length == 0) return; + 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 8247492..ad48981 100644 --- a/static/js/pichat2.js +++ b/static/js/pichat2.js @@ -1456,9 +1456,12 @@ if(!manPaletteOpen) { // ohgod - checkbox to hide the userlist $(function(){ -// $('#textbutton input').attr('checked', true); -// TextEnabled = true; -// setTextEnable.apply($('#textbutton input')[0]); + if ($('#textbutton').length == 0) return; + 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 1d735e7..b35fa9c 100644 --- a/static/js/src/palette-manual.js +++ b/static/js/src/palette-manual.js @@ -210,9 +210,12 @@ if(!manPaletteOpen) { // ohgod - checkbox to hide the userlist $(function(){ -// $('#textbutton input').attr('checked', true); -// TextEnabled = true; -// setTextEnable.apply($('#textbutton input')[0]); + if ($('#textbutton').length == 0) return; + 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 ); }); }); |
