mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
url was not updated after an email was deleted (by clicking on delete when viewing a message).
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user