a drop target, though, which is why we did all this in the first place.
$Id$
+Mon Nov 28 23:04:13 EST 2005 ajc
+* Made the iconbar room list somewhat usable (collapse/expand). It is not yet
+ a drop target, though, which is why we did all this in the first place.
+
Mon Nov 27 21:28:03 CET 2005 dothebart
* migrate to _GNU_SOURCE and uselocale() to be threadsafe.
if_modified_since = httpdate_to_timestamp(&buf[19]);
}
- if (!strncasecmp(buf, "Accept-Language: ", 17)) {
+ /*if (!strncasecmp(buf, "Accept-Language: ", 17)) {
httplang_to_locale(&buf[17]);
- }
+ }*/
/*
* Read in the request
strlen(wanted_locales[i]));
if (!ret)
{
- locale=(char*)AvailLang[j];//wanted_locales[i];
+ locale=(char*)AvailLang[j]; //wanted_locales[i];
i=nFound+1;
j=nAvail+1;
continue;
&& (strlen(old_floor_name) > 0) ) {
/* End inner box */
wprintf("<br>\n");
+ wprintf("</div>\n"); /* nfmd */
}
strcpy(old_floor_name, floor_name);
if (levels == 1) {
- /* Begin inner box */
+ /* Begin floor */
stresc(boxtitle, floor_name, 1, 0);
svprintf("BOXTITLE", WCS_STRING, boxtitle);
- wprintf("<span class=\"ib_roomlist_floor\">%s</span><br>\n", boxtitle);
+ wprintf("<span class=\"ib_roomlist_floor\" "
+ "onClick=\"expand_floor('nfmd%d')\">"
+ "%s</span><br>\n", i, boxtitle);
+ wprintf("<div id=\"nfmd%d\" style=\"display:none\">", i);
}
oldlevels = levels;
wprintf("<br />\n");
}
}
+ wprintf("</div>\n"); /* nfmd */
}
// icon bar toggler tabs...
+var which_div_expanded = null;
+
function switch_to_room_list() {
new Ajax.Updater('iconbar', 'iconbar_ajax_rooms', { method: 'get' } );
- fuckitup();
+}
+
+function expand_floor(floor_div) {
+ if (which_div_expanded != null) {
+ $(which_div_expanded).style.display = 'none' ;
+ }
+ $(floor_div).style.display = 'block';
+ which_div_expanded = floor_div;
}
function switch_to_menu_buttons() {
font-size: 8pt;
font-weight: bold;
color: #000000;
+ cursor: pointer;
}
.ib_roomlist_new {
font-size: 6pt;
color: #880000;
font-weight: bold;
+ cursor: pointer;
}
.ib_roomlist_old {
font-size: 6pt;
color: #000088;
+ cursor: pointer;
}
.mailbox_summary {