display_main_menu();
return;
}
- output_headers(1, 1, 0, 0, 0, 0);
+ //output_headers(1, 1, 0, 0, 0, 0);
output_headers(1, 1, 1, 0, 0, 0);
wprintf(_("Room list"));
}
wprintf("</h1></div>\n");
-
+
/** offer the ability to switch views */
+ wprintf("<div id=\"actiondiv\">");
wprintf("<ul class=\"room_actions\">\n");
wprintf("<li class=\"start_page\">");
offer_start_page(NULL, &NoCtx);
wprintf("</select>");
wprintf("</form></li>");
- wprintf("</ul></div>\n");
+ wprintf("</ul></div></div>\n");
wprintf("<div id=\"content\" class=\"service\">\n");
var contentViewPortHeight = heightOfViewPort-banner.offsetHeight-message_list_hdr.offsetHeight;
contentViewPortHeight = 0.98 * contentViewPortHeight; // leave some error
// Set summary_view to 20%;
- var summary_height = 0.20 * contentViewPortHeight;
+ var summary_height = ctdlLocalPrefs.readPref("svheight");
+ if (summary_height == null) {
+ summary_height = 0.20 * contentViewPortHeight;
+ }
// Set preview_pane to the remainder
- var preview_height = 0.80 * contentViewPortHeight;
+ var preview_height = contentViewPortHeight - summary_height;
summary_view.style.height = (summary_height)+"px";
preview_pane.style.height = (preview_height)+"px";
var summary_view = document.getElementById("summary_view");
var summaryViewHeight = summary_view.offsetHeight;
var increment = clientY-saved_y;
- summary_view.style.height = (increment+summaryViewHeight)+"px";
+ var summary_view_height = increment+summaryViewHeight;
+ summary_view.style.height = (summary_view_height)+"px";
+ // store summary view height
+ ctdlLocalPrefs.setPref("svheight",summary_view_height);
var msglist = document.getElementById("preview_pane");
var msgListHeight = msglist.offsetHeight;
msglist.style.height = (msgListHeight-increment)+"px";
<?=("head")>
<?=("important_msg")>
<?ROOMBANNER>
-</div>
<div id="content">
<div class="fix_scrollbar_bug message "><form enctype="multipart/form-data" method="POST" accept-charset="UTF-8" action="post" name="enterform">
<input type="hidden" name="postseq" value="<?DATE:NOW:NO>">
activate_entmsg_autocompleters();
</script>
-
+</div>
</div>
</div>
<?=("addressbook_popup")>
<div id="customize" class="iconbar_text">
<span><a href="display_customize_iconbar"><?_("customize this menu")></a></span>
</div>
+<div class="ctdlTemplate">
+<span id="rmlist_template"><?_("switch to room list")></span>
+<span id="mnlist_template"><?_("switch to menu")></span>
+<span id="mbox_template"><?_("My folders")></span>
+</div>
</div>
<?=("head")>
<?=("important_msg")>
<div id="banner">
+ <h1><?_("Preferences and settings")></h1>
</div>
<div id="content" class="service">
<?DOBOXED("box_preferences", _("Preferences and settings"))>
if (!document.getElementById("switch")) {
return;
}
+ _switchToRoomList = getTextContent(document.getElementById("rmlist_template"));
+ _switchToMenu = getTextContent(document.getElementById("mnlist_template"));
var switchSpan = document.getElementById("switch").firstChild;
if (switchSpan != null) {
setTextContent(switchSpan, _switchToRoomList);
var mailboxLI = document.createElement("li");
ul.appendChild(mailboxLI);
var mailboxSPAN = document.createElement("span");
- mailboxSPAN.appendChild(document.createTextNode("Mailbox"));
+ var _mailbox = getTextContent(document.getElementById("mbox_template"));
+ mailboxSPAN.appendChild(document.createTextNode(_mailbox));
$(mailboxSPAN).observe('click', expandFloorEvent);
mailboxLI.appendChild(mailboxSPAN);
mailboxLI.setAttribute("class", "floor");
}
function fixMissingCSSTable(elems) {
- if (elems[0] == null) {
+ if (elems[0] == null || elems[1] == null) {
return;
}
if (elems[0].getStyle("display") != "table-cell") {
#customize a:active, #customize a:link, #customize a:visited { color: black; }
-#important_message, .buttons a:hover, .msgbuttons a:hover, input:hover, #button > li:hover, #online_users li a:hover, #navbar ul li a:hover, #ib_logoff:hover {
+#important_message, .buttons a:hover, .msgbuttons a:hover, #button > li:hover, #online_users li a:hover, #navbar ul li a:hover, #ib_logoff:hover {
background-color: #AD1C00;
color: #FFF;
-}
+} /* input:hover as well?? */
left: 16%;
width: 84%;
height: 18%; */
+ min-height: 18%;
}
#navbar {