mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-18 17:58:12 +00:00
Javascript improvements and fix for IE8
Monotone-Parent: ac5f8b237dc599527e40ae6ad5333633c8dfffe1 Monotone-Revision: 90cccbef5388ee00f07794b49092e47c6767a899 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-06-02T19:45:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
3f4b8376af
commit
a366d9150a
12 files changed
+85
-102
No files matched your search
@@ -936,7 +936,7 @@ function configureLinksInMessage() {
|
||||
if (anchors[i].href.substring(0,7) == "mailto:") {
|
||||
$(anchors[i]).observe("click", onEmailTo);
|
||||
$(anchors[i]).observe("contextmenu", onEmailAddressClick);
|
||||
}
|
||||
}
|
||||
else
|
||||
$(anchors[i]).observe("click", onMessageAnchorClick);
|
||||
|
||||
@@ -1273,11 +1273,6 @@ function refreshCurrentFolder() {
|
||||
openMailbox(Mailer.currentMailbox, true);
|
||||
}
|
||||
|
||||
function refreshFolderByType(type) {
|
||||
if (Mailer.currentMailboxType == type)
|
||||
refreshCurrentFolder();
|
||||
}
|
||||
|
||||
var mailboxSpanAcceptType = function(type) {
|
||||
return (type == "mailRow");
|
||||
};
|
||||
@@ -1594,13 +1589,13 @@ function updateMailboxTreeInPage() {
|
||||
var valueDiv = new Element('div', { 'class': 'value ' + level, 'style': 'width: ' + ((percents > 100)?100:percents) + '%' });
|
||||
var marksDiv = new Element('div', { 'class': 'marks' });
|
||||
var textP = new Element('p').update(text);
|
||||
marksDiv.appendChild(new Element('div'));
|
||||
marksDiv.appendChild(new Element('div'));
|
||||
marksDiv.appendChild(new Element('div'));
|
||||
levelDiv.appendChild(valueDiv);
|
||||
levelDiv.appendChild(marksDiv);
|
||||
levelDiv.appendChild(textP);
|
||||
quotaDiv.appendChild(levelDiv);
|
||||
marksDiv.insert(new Element('div'));
|
||||
marksDiv.insert(new Element('div'));
|
||||
marksDiv.insert(new Element('div'));
|
||||
levelDiv.insert(valueDiv);
|
||||
levelDiv.insert(marksDiv);
|
||||
levelDiv.insert(textP);
|
||||
quotaDiv.insert(levelDiv);
|
||||
|
||||
treeContent.insertBefore(quotaDiv, tree);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user