more default quota work

此提交包含在:
John Supplee
2019-01-31 23:58:10 +02:00
父節點 d1906bd055
當前提交 70c607e256
共有 2 個檔案被更改,包括 21 行新增 和 8 行删除
+3 -1
查看文件
@@ -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
+11
查看文件
@@ -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>