diff --git a/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Service/Microsoft.Legal.MatterCenter.Repository/Matter/MatterRepository.cs b/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Service/Microsoft.Legal.MatterCenter.Repository/Matter/MatterRepository.cs index 96c5e1b8..c241c529 100644 --- a/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Service/Microsoft.Legal.MatterCenter.Repository/Matter/MatterRepository.cs +++ b/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Service/Microsoft.Legal.MatterCenter.Repository/Matter/MatterRepository.cs @@ -277,7 +277,7 @@ public GenericResponseVM UpdateMatter(MatterInformationVM matterInformation) string originalMatterName = GetMatterName(clientContext, matter.Name); listItemId = RetrieveItemId(clientContext, matterSettings.MatterLandingPageRepositoryName, originalMatterName); List usersToRemove = new List(); - List exsistingUsers = RetrieveMatterUsers(userPermissionOnLibrary); + List existingUsers = RetrieveMatterUsers(userPermissionOnLibrary); foreach (IList removedUsers in matterInformation.UsersNamesToRemove) { foreach (var removedUser in removedUsers) diff --git a/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/directives/common.directive.js b/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/directives/common.directive.js index e79c956a..5652c3ff 100644 --- a/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/directives/common.directive.js +++ b/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/directives/common.directive.js @@ -66,10 +66,10 @@ 'use strict'; function toggletab() { return { - restrict: 'A', + restrict: 'A', link: function (scope, element, attrs) { $(element).find('a').click(function (e) { - e.preventDefault() + e.preventDefault() $(this).tab('show') }) } @@ -317,7 +317,7 @@ '; $templateCache.put("test.html", actualcontent); var template = $templateCache.get("test.html"); - var a = $compile("
" + template + "
")(scope); + var a = $compile("
" + template + "
")(scope); $('.dropdown').removeClass('open'); $('.popcontent').css('display', 'none'); e.stopPropagation(); @@ -478,17 +478,17 @@ scope.$apply(function () { scope.assignTeam.assignedAllUserNamesAndEmails = scope.assignTeam.assignedUser; var userEmails = getUserName(scope.assignTeam.assignedUser, false); - var exsistingTeams = []; + var existingTeams = []; for (var i = 0; i < userEmails.length; i++) { if (userEmails[i] != "") { angular.forEach(scope.assignTeam.teamUsers, function (team) { if (team.userName == userEmails[i]) { - exsistingTeams.push(team); + existingTeams.push(team); } }); } } - scope.assignTeam.teamUsers = exsistingTeams; + scope.assignTeam.teamUsers = existingTeams; // $scope.projects.splice(i, 1); scope.$parent.cm.errorPopUpBlock = false; scope.$parent.cm.errorBorder = ""; @@ -899,7 +899,7 @@ app.directive('onload', ['$timeout', onload]); app.directive('showbreadcrumb', [showbreadcrumb]); app.directive('datefilter', [datefilter]); - app.directive("toggletab", [toggletab]); + app.directive("toggletab", [toggletab]); app.directive('infopopover', [infopopover]); app.directive('matterflyout', ['$compile', '$templateCache', '$rootScope', matterflyout]); app.directive('matterbulkuploadflyout', ['$compile', '$templateCache', '$rootScope', matterbulkuploadflyout]); diff --git a/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/matter/createMatter.controller.js b/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/matter/createMatter.controller.js index a387b877..6434cc03 100644 --- a/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/matter/createMatter.controller.js +++ b/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/matter/createMatter.controller.js @@ -604,7 +604,7 @@ var userDetails = {}; userDetails.userName = arrDMatterUserEmails[aCount]; - userDetails.userExsists = true; + userDetails.userExists = true; userDetails.userConfirmation = true; if (!assignPermTeam.teamUsers) { assignPermTeam.teamUsers = []; @@ -632,7 +632,7 @@ assignPermTeam.assignedAllUserNamesAndEmails = assignPermTeam.assignedUser; assignPermTeam.assigneTeamRowNumber = cm.assignPermissionTeams.length + 1; assignPermTeam.userConfirmation = true; - assignPermTeam.userExsists = true; + assignPermTeam.userExists = true; cm.assignPermissionTeams.push(assignPermTeam); } } @@ -1165,7 +1165,7 @@ angular.forEach(team.teamUsers, function (teamUser) { if (keepGoing) { if (teamUser.userName == usersEmails[j]) { - if (teamUser.userExsists) { + if (teamUser.userExists) { if (-1 == cm.oSiteUsers.indexOf(usersEmails[j])) { cm.errTextMsg = cm.createContent.ErrorMessageEntityUsers1; //"Please enter valid team members."; @@ -1334,13 +1334,13 @@ var userEmailTxt = "",userEmailString=""; var userNames = getUserName($label.assignedUser, true); var userEmails = getUserName($label.assignedUser, false); - var exsistingTeams = []; + var existingTeams = []; for (var i = 0; i < userEmails.length; i++) { if (userEmails[i] != "" && validateEmail(userEmails[i])) { angular.forEach($label.teamUsers, function (team) { if (team.userName == userEmails[i]) { userEmailString = userEmailString + userEmails[i] + ";"; - exsistingTeams.push(team); + existingTeams.push(team); } }); var userNameAndEmailTxt = (userNames[i] == userEmails[i]) ? userEmails[i] : userNames[i] + "(" + userEmails[i] + ")"; @@ -1350,7 +1350,7 @@ } angular.element('#txtUser' + $label.assigneTeamRowNumber).attr('uservalue', userEmailString); $label.assignedAllUserNamesAndEmails = userEmailTxt; - $label.teamUsers = exsistingTeams; + $label.teamUsers = existingTeams; } if (fucnValue == "on-blurr" && value == "teamuser") { @@ -1697,7 +1697,7 @@ angular.forEach(cm.textInputUser.teamUsers, function (teamUser) { if (teamUser.userName == userEmail[i]) { teamUser.userConfirmation = true; - teamUser.userExsists = teamUser.userExsists; + teamUser.userExists = teamUser.userExists; } userEmailString = userEmailString + teamUser.userName + ";"; }); @@ -1728,7 +1728,7 @@ } } cm.textInputUser.assignedUser = updatedUserEmail; - cm.textInputUser.userExsists = false; + cm.textInputUser.userExists = false; cm.textInputUser.userConfirmation = false; cm.notificationBorder = ""; } @@ -1788,7 +1788,7 @@ } else { teamDetails.userConfirmation = teamDetails.userConfirmation; - teamDetails.userExsists = false; + teamDetails.userExists = false; cm.invalidUserCheck = true; } @@ -1796,23 +1796,23 @@ checkEmailExists = true; } if (checkEmailExists) { - var optionsForUserExsists = new Object; - optionsForUserExsists = { + var optionsForUserExists = new Object; + optionsForUserExists = { Url: cm.clientUrl, Name: email } cm.popupContainerBackground = "show"; - userexists(optionsForUserExsists, function (response) { + userexists(optionsForUserExists, function (response) { if (!response.isUserExistsInSite) { angular.forEach(cm.assignPermissionTeams, function (team) { var userEmail = getUserName(team.assignedUser+";", false); for (var i = 0; i < userEmail.length; i++) { if (userEmail[i] == email && team.assigneTeamRowNumber == teamDetails.assigneTeamRowNumber) { - team.userExsists = response.isUserExistsInSite; + team.userExists = response.isUserExistsInSite; team.userConfirmation = false; var userDetails = {}; userDetails.userName = userEmail[i]; - userDetails.userExsists = team.userExsists; + userDetails.userExists = team.userExists; userDetails.userConfirmation = false; if (!team.teamUsers) { team.teamUsers = []; @@ -1845,7 +1845,7 @@ for (var i = 0; i < userEmail.length; i++) { if (userEmail[i] == email) { cm.textInputUser = team; - team.userExsists = response.isUserExistsInSite; + team.userExists = response.isUserExistsInSite; team.userConfirmation = true; cm.currentExternalUser.userName = userEmail[i]; cm.currentExternalUser.rowNumber = team.assigneTeamRowNumber; @@ -1860,7 +1860,7 @@ } var userDetails = {}; userDetails.userName = userEmail[i]; - userDetails.userExsists = team.userExsists; + userDetails.userExists = team.userExists; userDetails.userConfirmation = true; if (!team.teamUsers) { team.teamUsers = []; @@ -3556,13 +3556,13 @@ team.assignedUser = adalService.userInfo.profile.name + '(' + adalService.userInfo.userName + ');'; team.assignedAllUserNamesAndEmails = team.assignedUser; team.userConfirmation = true; - team.userExsists = true; + team.userExists = true; team.disable = true; team.userConfirmation = true; - team.userExsists = true; + team.userExists = true; var userDetails = {}; userDetails.userName = adalService.userInfo.userName; - userDetails.userExsists = true; + userDetails.userExists = true; userDetails.userConfirmation = true; if (!team.teamUsers) { team.teamUsers = []; diff --git a/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/matter/matterusers.controller.js b/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/matter/matterusers.controller.js index 403f5de5..8a97331d 100644 --- a/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/matter/matterusers.controller.js +++ b/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/matter/matterusers.controller.js @@ -283,7 +283,7 @@ } assignedTeam.assignedUser = userNameValue + "(" + userEmailValue + ");"; - assignedTeam.userExsists = true; assignedTeam.userConfirmation = true; + assignedTeam.userExists = true; assignedTeam.userConfirmation = true; if (-1 == cm.oSiteUsers.indexOf(userEmailValue)) { cm.oSiteUsers.push(userEmailValue); } @@ -312,7 +312,7 @@ assignedTeam.teamUsers = []; var teamuser = {}; teamuser.userName = userEmailValue; - teamuser.userExsists = true; + teamuser.userExists = true; teamuser.userConfirmation = true; assignedTeam.teamUsers.push(teamuser); assignedTeam.userConfirmation = true; @@ -674,7 +674,7 @@ } else { teamDetails.userConfirmation = teamDetails.userConfirmation; - teamDetails.userExsists = false; + teamDetails.userExists = false; cm.invalidUserCheck = true; } @@ -682,24 +682,24 @@ checkEmailExists = true; } if (checkEmailExists) { - var optionsForUserExsists = new Object; - optionsForUserExsists = { + var optionsForUserExists = new Object; + optionsForUserExists = { Url: cm.clientUrl, Name: email } cm.popupContainerBackground = "show"; - userexists(optionsForUserExsists, function (response) { + userexists(optionsForUserExists, function (response) { if (!response.isUserExistsInSite) { angular.forEach(cm.assignPermissionTeams, function (team) { var userEmail = getUserName(team.assignedUser, false); for (var i = 0; i < userEmail.length; i++) { if (userEmail[i] == email && team.assigneTeamRowNumber == teamDetails.assigneTeamRowNumber) { - team.userExsists = response.isUserExistsInSite; + team.userExists = response.isUserExistsInSite; team.userConfirmation = false; var userDetails = {}; userDetails.userName = userEmail[i]; - userDetails.userExsists = team.userExsists; + userDetails.userExists = team.userExists; userDetails.userConfirmation = false; if (!team.teamUsers) { team.teamUsers = []; @@ -734,7 +734,7 @@ for (var i = 0; i < userEmail.length; i++) { if (userEmail[i] == email) { cm.textInputUser = team; - team.userExsists = response.isUserExistsInSite; + team.userExists = response.isUserExistsInSite; team.userConfirmation = true; cm.currentExternalUser.userName = userEmail[i]; cm.currentExternalUser.rowNumber = team.assigneTeamRowNumber; @@ -749,7 +749,7 @@ } var userDetails = {}; userDetails.userName = userEmail[i]; - userDetails.userExsists = team.userExsists; + userDetails.userExists = team.userExists; userDetails.userConfirmation = true; if (!team.teamUsers) { team.teamUsers = []; @@ -966,7 +966,7 @@ var userEmail = email; angular.forEach(team.teamUsers, function (teamUser) { if (teamUser.userName == userEmail) { - userNamesStatus.push(teamUser.userExsists); + userNamesStatus.push(teamUser.userExists); } }); }); @@ -1288,12 +1288,12 @@ var userEmailTxt = ""; var userNames = getUserName($label.assignedUser, true); var userEmails = getUserName($label.assignedUser, false); - var exsistingTeams = []; + var existingTeams = []; for (var i = 0; i < userEmails.length; i++) { if (userEmails[i] != "" && validateEmail(userEmails[i])) { angular.forEach($label.teamUsers, function (team) { if (team.userName == userEmails[i]) { - exsistingTeams.push(team); + existingTeams.push(team); } }); var userNameAndEmailTxt = (userNames[i] == userEmails[i]) ? userEmails[i] : userNames[i] + "(" + userEmails[i] + ")"; @@ -1301,7 +1301,7 @@ } } $label.assignedAllUserNamesAndEmails = userEmailTxt; - $label.teamUsers = exsistingTeams; + $label.teamUsers = existingTeams; } if (fucnValue == "on-blurr") { if (typeheadelelen == 0 && noresults) { @@ -1331,7 +1331,7 @@ angular.forEach(cm.textInputUser.teamUsers, function (teamUser) { if (teamUser.userName == userEmail[i]) { teamUser.userConfirmation = true; - teamUser.userExsists = teamUser.userExsists; + teamUser.userExists = teamUser.userExists; } }); } @@ -1359,7 +1359,7 @@ } } cm.textInputUser.assignedUser = updatedUserEmail; - cm.textInputUser.userExsists = false; + cm.textInputUser.userExists = false; cm.textInputUser.userConfirmation = false; cm.notificationBorder = ""; } @@ -1476,7 +1476,7 @@ angular.forEach(team.teamUsers, function (teamUser) { if (keepGoing) { if (teamUser.userName == usersEmails[j]) { - if (teamUser.userExsists) { + if (teamUser.userExists) { if (-1 == cm.oSiteUsers.indexOf(usersEmails[j]) || -1 == cm.oSiteUserNames.indexOf(usersAliasNames[j])) { cm.errTextMsg = cm.createContent.ErrorMessageEntityUsers1; // cm.errTextMsg = "Please enter valid team members."; @@ -2370,7 +2370,7 @@ angular.forEach(team.teamUsers, function (teamUser) { if (keepGoing) { if (teamUser.userName == usersEmails[j]) { - if (teamUser.userExsists) { + if (teamUser.userExists) { if (-1 == cm.oSiteUsers.indexOf(usersEmails[j]) || -1 == cm.oSiteUserNames.indexOf(usersAliasNames[j])) { cm.errTextMsg = cm.createContent.ErrorMessageEntityUsers1; cm.errorBorder = "";