mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
Flatta and Diman fixes
This commit is contained in:
commit
3bed87ba15
98 changed files with 5260 additions and 3031 deletions
17
web/js/pages/add_user.js
Normal file
17
web/js/pages/add_user.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
$(function() {
|
||||
$('#v_email').change(function() {
|
||||
document.getElementById('v_notify').value = document.getElementById('v_email').value;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
randomString = function() {
|
||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||
var string_length = 10;
|
||||
var randomstring = '';
|
||||
for (var i = 0; i < string_length; i++) {
|
||||
var rnum = Math.floor(Math.random() * chars.length);
|
||||
randomstring += chars.substr(rnum, 1);
|
||||
}
|
||||
document.v_add_user.v_password.value = randomstring;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue