Cleanup and fixes
This commit is contained in:
@@ -7,7 +7,7 @@ $(function () {
|
||||
});
|
||||
|
||||
$("input#EmployeeName, input#Assigned, input#UserFullName").autocomplete({
|
||||
source: "/Employee/Autocomplete",
|
||||
source: "/User/Autocomplete",
|
||||
minLength: 2
|
||||
});
|
||||
|
||||
@@ -103,7 +103,7 @@ $(function () {
|
||||
'Delete': 'trash',
|
||||
'Add': 'plus',
|
||||
'Export': 'download',
|
||||
'Employee Mileage': 'user',
|
||||
'Driver Mileage': 'user',
|
||||
'Vehicle Mileage': 'car'
|
||||
};
|
||||
$.each(textToIcon, function(text, icon) {
|
||||
@@ -138,6 +138,7 @@ $(function () {
|
||||
var names = fullName.split(' '); ///[a-z().]+(\s+[a-z().]+)+/i.test(fullName)
|
||||
if (names.length > 1) {
|
||||
var username = names[0][0] + names[names.length - 1];
|
||||
username = username.toLowerCase();
|
||||
$('.create-user input#Username').val(username);
|
||||
$('.create-user input#Email').val(username + "@ethra.org");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user