1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-25 07:47:05 +00:00

fix problem with jQuery being loaded too late

This commit is contained in:
John Supplee 2019-02-01 00:56:25 +02:00
parent 70c607e256
commit 1a67c94db0
2 changed files with 4 additions and 4 deletions

View File

@ -10,6 +10,7 @@
<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;
@ -191,7 +192,6 @@
</div>
</div>
<script src="/admin/assets/jquery.min.js"></script>
<script src="/admin/assets/bootstrap/js/bootstrap.min.js"></script>
<script>

View File

@ -345,11 +345,11 @@ function generate_random_password() {
var charset = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789"; // confusable characters skipped
for (var i = 0; i < 12; i++)
pw += charset.charAt(Math.floor(Math.random() * charset.length));
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></p>");
return false; // cancel click
}
$(document).ready(function(){
$(function() {
api(
"/system/default-quota",
"GET",
@ -358,5 +358,5 @@ $(document).ready(function(){
$('#adduserQuota').val(r['default-quota']);
}
);
});
})
</script>