mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-04 12:24:09 +01:00
IE compatibility...
This commit is contained in:
@@ -74,6 +74,7 @@ tr.selected {
|
||||
background: transparent;
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.box a:hover {
|
||||
@@ -83,7 +84,6 @@ tr.selected {
|
||||
|
||||
.box img {
|
||||
float: left;
|
||||
margin-right: 2px;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
@@ -104,6 +104,7 @@ li.subfolders {
|
||||
}
|
||||
|
||||
th {
|
||||
cursor: pointer;
|
||||
/*-moz-box-shadow: 0px -15px 10px -10px rgba(0,0,0,0.6) inset;
|
||||
-webkit-box-shadow: 0px -15px 10px -10px rgba(0,0,0,0.6) inset;*/
|
||||
}
|
||||
@@ -165,11 +166,11 @@ textarea:hover {
|
||||
width: 98%;
|
||||
}
|
||||
|
||||
input {
|
||||
#mailheader input {
|
||||
width: 80%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#mailheader {
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,3 +13,4 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
|
||||
loadCompose = function(event) {
|
||||
event.stop();
|
||||
current_anchor.baseurl("compose/").update();
|
||||
current_anchor.baseurl("compose").update();
|
||||
}
|
||||
register_callback("compose", compose_callback);
|
||||
|
||||
@@ -106,10 +106,16 @@
|
||||
|
||||
loadFolder = function(event, obj) {
|
||||
if (!$defined(obj)) {
|
||||
obj = event.target;
|
||||
obj = $(event.target);
|
||||
}
|
||||
event.stop();
|
||||
current_anchor.parse_string(obj.get("href"), true).setparams(navparams);
|
||||
// the following code prevents a bug under IE7
|
||||
// because fullpath is returned instead of a relative one.
|
||||
// (even if mootools uses getAttribute("href", 2), this is not working with AJAX requests)
|
||||
var url = obj.get("href");
|
||||
var baseurl = "http://" + location.host + location.pathname;
|
||||
url = url.replace(baseurl, "");
|
||||
current_anchor.parse_string(url, true).setparams(navparams);
|
||||
current_anchor.update();
|
||||
}
|
||||
register_callback("folder", function(resp) {
|
||||
|
||||
@@ -8,6 +8,7 @@ from django.utils import simplejson
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.views.decorators.cache import cache_control, never_cache
|
||||
from mailng.admin.models import Mailbox
|
||||
from mailng.lib import parameters, _render, _render_error, getctx, is_not_localadmin
|
||||
from mailng.lib.email_listing import parse_search_parameters
|
||||
@@ -24,6 +25,7 @@ def __get_current_url(request):
|
||||
|
||||
@login_required
|
||||
@is_not_localadmin()
|
||||
@cache_control(must_revalidate=True, private=True, no_cache=True)
|
||||
def folder(request, name, updatenav=True):
|
||||
if not name:
|
||||
name = "INBOX"
|
||||
@@ -66,6 +68,7 @@ def folder(request, name, updatenav=True):
|
||||
|
||||
@login_required
|
||||
@is_not_localadmin()
|
||||
@cache_control(must_revalidate=True, private=True, no_cache=True)
|
||||
def index(request):
|
||||
#try:
|
||||
navp = request.session.has_key("navparams") \
|
||||
@@ -251,6 +254,8 @@ def send_mail(request, withctx=False, origmsg=None, posturl=None):
|
||||
|
||||
@login_required
|
||||
@is_not_localadmin()
|
||||
#@cache_control(no_cache=True, expires=-1)
|
||||
@never_cache
|
||||
def compose(request):
|
||||
if request.method == "POST":
|
||||
return send_mail(request, posturl=reverse(compose))
|
||||
|
||||
Reference in New Issue
Block a user