mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
more default quota work
This commit is contained in:
parent
d1906bd055
commit
70c607e256
@ -531,7 +531,9 @@ def privacy_status_set():
|
|||||||
@app.route('/system/default-quota', methods=["GET"])
|
@app.route('/system/default-quota', methods=["GET"])
|
||||||
@authorized_personnel_only
|
@authorized_personnel_only
|
||||||
def default_quota_get():
|
def default_quota_get():
|
||||||
return get_default_quota(env)
|
return json_response({
|
||||||
|
"default-quota": get_default_quota(env)
|
||||||
|
})
|
||||||
|
|
||||||
@app.route('/system/default-quota', methods=["POST"])
|
@app.route('/system/default-quota', methods=["POST"])
|
||||||
@authorized_personnel_only
|
@authorized_personnel_only
|
||||||
|
@ -348,4 +348,15 @@ function generate_random_password() {
|
|||||||
show_modal_error("Random Password", "<p>Here, try this:</p> <p><code style='font-size: 110%'>" + pw + "</code></pr");
|
show_modal_error("Random Password", "<p>Here, try this:</p> <p><code style='font-size: 110%'>" + pw + "</code></pr");
|
||||||
return false; // cancel click
|
return false; // cancel click
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
api(
|
||||||
|
"/system/default-quota",
|
||||||
|
"GET",
|
||||||
|
{},
|
||||||
|
function(r) {
|
||||||
|
$('#adduserQuota').val(r['default-quota']);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user