mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-02 12:13:54 +01:00
Simple hack to catch redirections after an ajax request. It is not a clean and perfect solution but it should address most cases.
fix #181
This commit is contained in:
@@ -13,7 +13,9 @@ domadminform_init = function() {
|
||||
{% url domains as doms_url %}
|
||||
new Request({
|
||||
url: "{% url domains %}" + domid + "/rawmboxes/?target=permissions",
|
||||
method: "get", onSuccess: function(data) {
|
||||
method: "get",
|
||||
onComplete: ajax_login_redirect,
|
||||
onSuccess: function(data) {
|
||||
$("id_user").set("html", data);
|
||||
$("id_user").options[0].setProperty("selected", "selected");
|
||||
}
|
||||
|
||||
@@ -16,7 +16,8 @@ function init_form() {
|
||||
new Autocompleter.Request.JSON("id_targets",
|
||||
"{% url admin.views.mailboxes_search %}", {
|
||||
postVar: "search",
|
||||
minLength: 3
|
||||
minLength: 3,
|
||||
onComplete: ajax_login_redirect
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user