Files
modoboa/templates/admin/add_domain_admin.html
T
tonio 5d425c8cbe fixed #96
Querysets used to populate form fields are more filtered (ie. the default admin is ignored, as the current logged in user).

see #92

More protection against errors that can happen when defining new permissions.
2010-11-27 17:49:55 +01:00

26 lines
594 B
HTML

{% extends "admin/add_permission.html" %}
{% block html_head %}
{{ block.super }}
<script type="text/javascript">
window.addEvent("domready", function() {
domadminform_init = function() {
$("id_domain").addEvent("change", function(event) {
var domid = this.value;
if (domid == "") {
$("id_user").set("html", "");
return;
}
{% url domains as doms_url %}
new Request({
url: "{{ doms_url }}" + domid + "/raw/",
method: "get", onSuccess: function(data) {
$("id_user").set("html", data);
}
}).send();
});
};
domadminform_init();
});
</script>
{% endblock %}