Empty commit

This commit is contained in:
Git 2013-07-23 08:00:41 +00:00
parent d9b66d41ad
commit d4724365ea
4 changed files with 16 additions and 2 deletions

View File

@ -26,8 +26,6 @@
case 'Forums':
$FileName = 'forums.class';
break;
case 'ForumsView':
$FileName = 'forumsview.class';
case 'Forum':
$FileName = 'forum.class';
break;

View File

@ -1,5 +1,8 @@
CHANGELOG
2013-07-23 by draculesti
New mod button to generate random user passwords
2013-07-13 by draculesti
Ability to quote locked and trashed threads

View File

@ -1120,6 +1120,7 @@ function check_paranoia_here($Setting) {
<td class="label">New password:</td>
<td>
<input type="text" size="30" id="change_password" name="ChangePassword" />
<button type="button" id="random_password">Generate</button>
</td>
</tr>
<? } ?>

View File

@ -217,3 +217,15 @@ function displayCommStats(stats) {
}
}
}
$(document).ready(function() {
$("#random_password").click(function() {
var length = 15,
charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+-=<>?",
password = "";
for (var i = 0, n = charset.length; i < length; ++i) {
password += charset.charAt(Math.floor(Math.random() * n));
}
$('#change_password').val(password);
});
});