- added support for limiting LDAP queries with the SOGoLDAPQueryLimit and
the SOGoLDAPSizeLimit settings;
- fixed a bug where folders starting with digits would not be displayed;
-- improved IE7 and Safari support: priority menus, attendees selector.
+- improved IE7 and Safari support: priority menus, attendees selector;
+- added the ability to print messages from the mailer toolbar;
0.9.0-20070713
--------------
"Operation failed" = "Operation failed";
"quotasFormat" = "Quotas: %{0} used on %{1} Kb; %{2}%";
+
+"Please select a message to print." = "Please select a message to print.";
+"Please select only one message to print." = "Please select only one message to print.";
"Operation failed" = "L'opération a échoué.";
"quotasFormat" = "Quotas: %{0} Ko utilisés sur %{1}; %{2}%";
+
+"Please select a message to print." = "Veuillez sélectionner un message à imprimer.";
+"Please select only one message to print." = "Veuillez ne sélectionner qu'un seul message à imprimer.";
),
(
{ link = "#";
+ onclick = "return onPrintCurrentMessage(event);";
cssClass = "tbicon_print";
image = "tb-mail-print-flat-24x24.png";
label = "Print"; },
if (document.currentPopupMenu)
hideMenu(document.currentPopupMenu);
- var menuTop = event.pageY;
- var menuLeft = event.pageX;
+ var menuTop = Event.pointerY(event);
+ var menuLeft = Event.pointerX(event);
var heightDiff = (window.innerHeight
- (menuTop + popup.offsetHeight));
if (heightDiff < 0)
padding-left: 6px;
}
-TABLE.titletable td.titlecell SELECT
+TABLE.titletable TD.titlecell SELECT
{
display: -moz-popup;
border-top: 1px solid #fff;
white-space: nowrap;
}
-td.mailer_readmailsubject
+TD.mailer_readmailsubject
{
background-image: url(message-mail-read.png) !important;
background-repeat: no-repeat !important;
padding-left: 20px !important;
}
-td.mailer_unreadmailsubject
+TD.mailer_unreadmailsubject
{
background-image: url(message-mail.png) !important;
background-repeat: no-repeat !important;
font-weight: bold !important;
}
-td.mailer_readmailsubject a
+TD.mailer_readmailsubject a
{
color: black;
text-decoration: none;
}
-td.mailer_unreadmailsubject a
+TD.mailer_unreadmailsubject a
{
color: black;
text-decoration: none;
bottom: 0px;
}
-td.mailer_fieldname
+TD.mailer_fieldname
{
white-space: nowrap;
padding: 0 1em;
width: 6em;
}
-td.mailer_fieldvalue
+TD.mailer_fieldvalue
{
+ vertical-align: top;
}
-td.mailer_subjectfieldvalue
+TD.mailer_subjectfieldvalue
{
font-weight: bold;
}
-td.mailer_fieldvalue a
+TD.mailer_fieldvalue a
{
text-decoration: underline;
vertical-align: top;
padding: 4px;
}
-td.attachment_uplabel
+TD.attachment_uplabel
{
width: 15%;
text-align: left;
TD#subjectHeader,
TABLE#messageList TD.tbtv_subject_headercell,
-TABLE#messageList td.mailer_unreadmailsubject,
-TABLE#messageList td.mailer_readmailsubject
+TABLE#messageList TD.mailer_unreadmailsubject,
+TABLE#messageList TD.mailer_readmailsubject
{ width: 40%;
min-width: 40%; }
right: 0px;
height: 5px;
}
+
+@media print
+{
+ DIV#leftPanel,
+ DIV#verticalDragHandle,
+ DIV#filterPanel,
+ DIV#mailboxContent,
+ DIV.dragHandle
+ { display: none; }
+
+ DIV#rightPanel
+ { position: static;
+ overflow: visible;
+ margin: 0px; }
+
+ DIV#messageContent
+ { position: static;
+ border: 0px;
+ margin: 0px;
+ overflow: visible; }
+
+ TABLE.mailer_fieldtable
+ { border: 0px;
+ font-family: serif;
+ height: auto;
+ overflow: visible; }
+
+ TD.mailer_fieldname
+ { text-align: left;
+ width: auto; }
+
+ TD.mailer_fieldvalue
+ { white-space: normal; }
+
+ TD.mailer_fieldvalue A
+ { text-decoration: none;
+ white-space: nowrap;
+ color: #000; }
+
+ A:visited
+ { color: #00f; }
+
+ DIV.mailer_mailcontent
+ { position: static;
+ overflow: visible; }
+}
preventDefault(event);
}
+function onPrintCurrentMessage(event) {
+ var rowIds = $("messageList").getSelectedRowsId();
+ if (rowIds.length == 0) {
+ window.alert(labels["Please select a message to print."].decodeEntities());
+ }
+ else if (rowIds.length > 1) {
+ window.alert(labels["Please select only one message to print."].decodeEntities());
+ }
+ else
+ window.print();
+
+ preventDefault(event);
+}
+
function onMailboxTreeItemClick(event) {
var topNode = $("mailboxTree");
var mailbox = this.parentNode.getAttribute("dataname");
nodes[i].select();
}
-window.addEventListener("load", initMailEditor, false);
+addEvent(window, 'load', initMailEditor);
--- /dev/null
+function onPrintCurrentMessage(event) {
+ window.print();
+
+ preventDefault(event);
+}
// select popup
var rowNodes = row.childNodesWithTag("span");
- select = rowNodes[0].childNodesWithTag("select")[0];
+ select = $(rowNodes[0]).childNodesWithTag("select")[0];
select.name = 'popup_' + currentIndex;
// select.value = row.childNodesWithTag("span")[0].childNodesWithTag("select")[0].value;
- input = rowNodes[1].childNodesWithTag("input")[0];
+ input = $(rowNodes[1]).childNodesWithTag("input")[0];
input.name = 'addr_' + currentIndex;
input.id = 'addr_' + currentIndex;
input.value = text;
-moz-border-left-colors: #000 #fff;
-moz-border-bottom-colors: #000 #fff;
-moz-border-right-colors: #000 #fff; }
+
+@media print
+{
+ BODY
+ { position: static;
+ font-size: 25%;
+ height: auto;
+ overflow: visible; }
+
+ DIV#logConsole,
+ DIV#linkBanner,
+ DIV#toolbar,
+ DIV.menu,
+ DIV.tabsContainer
+ { display: none; }
+}