1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-12 17:07:23 +01: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

@@ -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>