#54 : I think this is now acceptable...
This commit is contained in:
tonio
2010-05-28 14:19:59 +02:00
parent 67c66ed649
commit bba6b55c10
5 changed files with 37 additions and 31 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ def menu(**kwargs):
return [
{"name" : "quarantine",
"label" : _("Quarantine"),
"url" : reverse(views.index, urlconf='mailng.extensions.amavis_quarantine.exturls'),
"url" : reverse(views.index),
"img" : "/static/pics/quarantine.png"}
]
return []
+1 -1
View File
@@ -46,7 +46,7 @@ def menu(**kwargs):
return [
{"name" : "webmail",
"label" : _("Webmail"),
"url" : reverse(views.index, urlconf='mailng.urls'),
"url" : reverse(views.index),
"img" : "/static/pics/webmail.png"}
]
@@ -1,4 +1,5 @@
{% load i18n %}
{% load webextras %}
<h3>{% trans "Folders" %}</h3>
<ul>
{% print_folders folders %}
+33 -29
View File
@@ -20,14 +20,14 @@ html > body #listing {
width: 150px;
}
thead tr {
/*thead tr {
position: relative;
top: expression(offsetParent.scrollTop); /*IE5+ only*/
z-index: 1;
padding: 0;
}
}*/
table#emails > tbody {
/*table#emails > tbody {
position: fixed;
bottom: 35px;
top: 155px;
@@ -35,15 +35,15 @@ table#emails > tbody {
right: 0px;
overflow-x: hidden;
overflow-y: auto;
}
}*/
#emails th {
/*text-align: center;*/
position: relative;
}
#emails tr {
width: 100%;
position: relative;
/*position: relative;*/
border-bottom: 1px solid #C8D6E8;
}
@@ -254,35 +254,16 @@ ul.visible {
if (!tr.hasClass("selected")) {
tr.addClass("selected");
selectedRows.include(tr);
tr.setStyle("position", "relative");
makeRowDraggable(tr);
} else {
tr.removeClass("selected");
selectedRows.erase(tr);
tr.setStyle("position", "static");
}
});
buildmarkrequest = function(evt) {
evt.stop();
if (!selectedRows.length) {
return;
}
var ids = new Array();
selectedRows.each(function(item, index) {
ids.include(item.get("id"));
});
new Request.JSON({url : evt.target.get("href"),
onSuccess : get_callback("folder")}).get({ids : ids.join()});
}
$$("a[name=mark-read]").addEvent("click", buildmarkrequest);
$$("a[name=mark-unread]").addEvent("click", buildmarkrequest);
$$("a[name=fdaction]").addEvent("click", function(evt) {
evt.stop();
new Request.JSON({url : evt.target.get("href"),
onSuccess : get_callback("folder")
}).get();
});
$$("tbody>tr").each(function(item) {
makeRowDraggable = function(item) {
new Drag.Move(item, {
droppables: ".droppable",
}).addEvents({
@@ -335,7 +316,30 @@ ul.visible {
).get({msgset : msgset.join(), to : dest});
},
});
};
buildmarkrequest = function(evt) {
evt.stop();
if (!selectedRows.length) {
return;
}
var ids = new Array();
selectedRows.each(function(item, index) {
ids.include(item.get("id"));
});
new Request.JSON({url : evt.target.get("href"),
onSuccess : get_callback("folder")}).get({ids : ids.join()});
}
$$("a[name=mark-read]").addEvent("click", buildmarkrequest);
$$("a[name=mark-unread]").addEvent("click", buildmarkrequest);
$$("a[name=fdaction]").addEvent("click", function(evt) {
evt.stop();
new Request.JSON({url : evt.target.get("href"),
onSuccess : get_callback("folder")
}).get();
});
if ($("toggleselect")) {
$("toggleselect").addEvent("click", function(evt) {
var checked = evt.target.get("checked");
+1
View File
@@ -216,6 +216,7 @@ div.right {
float: left;
position: relative;
z-index: 4;
font-size: small;
}
.dropdown ul li {