url was not updated after an email was deleted (by clicking on delete when viewing a message).

This commit is contained in:
tonio
2010-06-22 12:21:03 +02:00
parent 01dea31fb4
commit 0cd3f146cf
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -511,7 +511,7 @@ Just run the following command to activate the component::
Sometimes, inline images are integrated inside emails. To display
them, MailNG stores them inside a temporary folder. Make sure the
following path exists, or create it if not::
following path exists, otherwise create it::
# mkdir <path_to_mailng>/static/tmp
+3 -2
View File
@@ -48,8 +48,9 @@
var lnk = event.target;
event.stop();
new Request.JSON({url: lnk.get("href"),
onSuccess: get_callback("folder")}).get();
new Request.JSON({url: lnk.get("href"), onSuccess: function(resp) {
current_anchor.parse_string(resp.next).update();
}}).get();
});
setDivHeight("mailcontent", 5, 0);
});
+2 -1
View File
@@ -164,7 +164,8 @@ def delete(request, fdname, mail_id):
password=request.session["password"])
mbc.move(mail_id, fdname, parameters.get_user(request.user, "webmail",
"TRASH_FOLDER"))
return folder(request, fdname, False)
ctx = getctx("ok", next=__get_current_url(request))
return HttpResponse(simplejson.dumps(ctx), mimetype="application/json")
@login_required
@is_not_localadmin()