summaryrefslogtreecommitdiff
path: root/static/js/pichat2.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/pichat2.js')
-rw-r--r--static/js/pichat2.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/static/js/pichat2.js b/static/js/pichat2.js
index 038b356..fbbbbef 100644
--- a/static/js/pichat2.js
+++ b/static/js/pichat2.js
@@ -1446,6 +1446,17 @@ if(!manPaletteOpen) {
manPaletteToggle();
}
*/
+
+// ohgod - checkbox to hide the userlist
+$(function(){
+ $('#textbutton input').attr('checked', true);
+ TextEnabled = true;
+ 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 ); });
+});
+
+
function paletteToChat(img){
var chatText = $("#msgInput").val()
if (chatText.length && chatText[chatText.length - 1] != " ")