mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
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.
26 lines
594 B
HTML
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 %}
|