Monotone-Parent: 56874b8e1d2260289bbdde17c8dbc01a15f354e7

Monotone-Revision: 6fed1c4d16e6a86a4b38ab7174119068a10f5ede

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-09-18T18:03:59
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-09-18 18:03:59 +00:00
parent cf911feea7
commit fcfb2c3200
4 changed files with 107 additions and 36 deletions
+14 -2
View File
@@ -1221,7 +1221,7 @@ function configureDragHandles() {
var handle = $("verticalDragHandle");
if (handle) {
handle.addInterface(SOGoDragHandlesInterface);
handle.leftMargin = 1;
handle.leftMargin = 50;
handle.leftBlock=$("leftPanel");
handle.rightBlock=$("rightPanel");
}
@@ -1234,6 +1234,15 @@ function configureDragHandles() {
}
}
function onWindowResize(event) {
var handle = $("verticalDragHandle");
if (handle)
handle.adjust();
handle = $("rightDragHandle");
if (handle)
handle.adjust();
}
/* dnd */
function initDnd() {
// log("MailerUI initDnd");
@@ -1283,6 +1292,9 @@ function initMailer(event) {
Event.observe(document, "keydown", onDocumentKeydown);
}
Event.observe(window, "resize", onWindowResize);
onWindowResize(null);
// Default sort options
sorting["attribute"] = "date";
sorting["ascending"] = false;
@@ -1368,7 +1380,7 @@ function updateMailboxTreeInPage() {
var text = format.formatted(Mailer.quotas.usedSpace, Mailer.quotas.maxQuota, percents);
var quotaDiv = new Element('div', { 'class': 'quota', 'info': text });
var levelDiv = new Element('div', { 'class': 'level' });
var valueDiv = new Element('div', { 'class': 'value ' + level, 'style': 'width: ' + percents + '%' });
var valueDiv = new Element('div', { 'class': 'value ' + level, 'style': 'width: ' + ((percents > 100)?100:percents) + '%' });
var marksDiv = new Element('div', { 'class': 'marks' });
marksDiv.appendChild(new Element('div'));
marksDiv.appendChild(new Element('div'));