More tweaks to instant messenger window
authorArt Cancro <ajc@citadel.org>
Tue, 3 Jan 2006 23:20:12 +0000 (23:20 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 3 Jan 2006 23:20:12 +0000 (23:20 +0000)
webcit/ChangeLog
webcit/static/instant_messenger.html

index b4dff7e8b6a9bbb64e5a3498a353a05a105495ea..f88b0e71854a9ab678df71e0d26e5757734603e0 100644 (file)
@@ -1,5 +1,8 @@
 $Id$
 
+Tue Jan  3 18:19:53 EST 2006 ajc
+* More tweaks to instant messenger window
+
 Mon Jan  2 22:46:02 EST 2006 ajc
 * Allow selection of tabs in multiple conversation mode.
 
index 3d4c8dc7771c299967ef8b1f5aa3373b68440537..ac971a42c2bbc97cef6117baa607972d5d94ce4a 100644 (file)
@@ -6,8 +6,9 @@
 </head>
 <body>
 
-<div id="tab_bar"></div>
-<hr>
+<div id="spacer1" style="background: #aaaaaa"><br></div>
+<div id="tab_bar" style="background: #aaaaaa">&nbsp;&nbsp;</div>
+<div id="spacer2" style="background: #aaaaaa"><br></div>
 <div id="main"></div>
 
 <script type="text/javascript">
@@ -54,11 +55,17 @@ function SendSomething(which_div, sendform, recipient) {
 function TabSelect(which_div) {
        if (shown_div != '') {
                $(shown_div).style.display = 'none' ;
-               if ($('select_'+shown_div)) $('select_'+shown_div).style.fontWeight='normal';
+               if ($('select_'+shown_div)) {
+                       $('select_'+shown_div).style.fontWeight = 'normal';
+                       $('select_'+shown_div).style.backgroundColor = '#cccccc';
+               }
        }
        shown_div = 'tab_' + which_div;
        $(shown_div).style.display = 'block' ;
-       if ($('select_'+shown_div)) $('select_'+shown_div).style.fontWeight='bold';
+       if ($('select_'+shown_div)) {
+               $('select_'+shown_div).style.fontWeight='bold';
+               $('select_'+shown_div).style.backgroundColor = '#ffffff';
+       }
 }
 
 
@@ -95,7 +102,7 @@ function ShowNewMsg(gexp_xmlresponse) {
                ++num_gexp_divs;
                $('main').innerHTML =
                          $('main').innerHTML
-                       + '<div id=\"tab_' + which_div + '\" style=\"display:none\">'
+                       + '<div id=\"tab_' + which_div + '\" style=\"display:none;cursor:pointer\">'
                        + '<div id=\"' + which_div + '\"></div>'
                        + '<div id=\"response_' + which_div + '\">'
                        + '<br><form method=\"post\" action=\"null\" name=\"sendform_' + which_div + '\" '
@@ -108,7 +115,7 @@ function ShowNewMsg(gexp_xmlresponse) {
                $('tab_bar').innerHTML =
                          $('tab_bar').innerHTML
                        + '<span id=\"select_tab_' + which_div + '\" onClick=\"TabSelect(\'' + which_div + '\');\">'
-                       + sender
+                       + '&nbsp;' + sender + '&nbsp;'
                        + '</span>&nbsp;&nbsp;&nbsp;';
 
                // Raise the window in case it was buried