Cleanup and fixes

This commit is contained in:
2013-01-12 14:58:33 -05:00
parent bc019923d2
commit e50052d41e
27 changed files with 240 additions and 156 deletions
+3 -2
View File
@@ -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");
}