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:
Antoine Nguyen
2012-01-10 10:40:22 +01:00
parent baec1f740e
commit ba0ed344c5
16 changed files with 74 additions and 21 deletions
+3 -1
View File
@@ -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");
}
+2 -1
View File
@@ -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
});
}