mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
move jQuery load back to original place and put quota load code in index.html
This commit is contained in:
parent
1a67c94db0
commit
f64fffe6b8
@ -10,7 +10,6 @@
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
|
||||
<link rel="stylesheet" href="/admin/assets/bootstrap/css/bootstrap.min.css">
|
||||
<script src="/admin/assets/jquery.min.js"></script>
|
||||
<style>
|
||||
body {
|
||||
overflow-y: scroll;
|
||||
@ -192,6 +191,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/admin/assets/jquery.min.js"></script>
|
||||
<script src="/admin/assets/bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
<script>
|
||||
@ -377,6 +377,15 @@ function show_panel(panelid) {
|
||||
}
|
||||
|
||||
$(function() {
|
||||
api(
|
||||
"/system/default-quota",
|
||||
"GET",
|
||||
{},
|
||||
function(r) {
|
||||
$('#adduserQuota').val(r['default-quota']);
|
||||
}
|
||||
);
|
||||
|
||||
// Recall saved user credentials.
|
||||
if (typeof sessionStorage != 'undefined' && sessionStorage.getItem("miab-cp-credentials"))
|
||||
api_credentials = sessionStorage.getItem("miab-cp-credentials").split(":");
|
||||
|
@ -348,15 +348,4 @@ function generate_random_password() {
|
||||
show_modal_error("Random Password", "<p>Here, try this:</p> <p><code style='font-size: 110%'>" + pw + "</code></p>");
|
||||
return false; // cancel click
|
||||
}
|
||||
|
||||
$(function() {
|
||||
api(
|
||||
"/system/default-quota",
|
||||
"GET",
|
||||
{},
|
||||
function(r) {
|
||||
$('#adduserQuota').val(r['default-quota']);
|
||||
}
|
||||
);
|
||||
})
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user