summaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2012-07-19 11:45:30 -0400
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2012-07-19 11:45:30 -0400
commitac72ca8fef92e4ec28bc515bd19483ce4c4294e8 (patch)
treee375703918a10e4992be3cbae2a5635ad3d66e85 /static/js
parent77781bafb026408356395c7026ed225e59858b3c (diff)
show userlist checkbox
Diffstat (limited to 'static/js')
-rw-r--r--static/js/pichat2.js11
-rw-r--r--static/js/src/palette-manual.js12
2 files changed, 22 insertions, 1 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] != " ")
diff --git a/static/js/src/palette-manual.js b/static/js/src/palette-manual.js
index 95e1907..dbf0b89 100644
--- a/static/js/src/palette-manual.js
+++ b/static/js/src/palette-manual.js
@@ -199,4 +199,14 @@ function add_tags(e) {
if(!manPaletteOpen) {
manPaletteToggle();
}
-*/ \ No newline at end of file
+*/
+
+// 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 ); });
+});
+