Skip to content

Commit

Permalink
SAK-26210 Fix for update user details button disabled when user doesn…
Browse files Browse the repository at this point in the history
…'t have privileges to change password

Patch from Alexandre Ballesté - [email protected]

git-svn-id: https://source.sakaiproject.org/svn/user/trunk@310184 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
Aaron Zeckoski committed Jun 12, 2014
1 parent cbb991e commit c18b4ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions user/user-tool/tool/src/webapp/js/userEditValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ USER.verifyPasswordsMatch = function () {
USER.validateEmail = function () {
USER.emailValid = false;
var email = USER.get("email");
var emailWarningMsg = USER.get("emailWarningMsg");

if (email === null) {
USER.emailValid = true;
Expand Down
8 changes: 6 additions & 2 deletions user/user-tool/tool/src/webapp/js/userValidationCommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ USER.trim = function (inputString) {
// Show/hide the given element
USER.display = function (element, show) {
if (show) {
element.style.display = "block";
if (element) {
element.style.display = "block";
}
}
else {
element.style.display = "none";
if (element) {
element.style.display = "none";
}
}
}

Expand Down

0 comments on commit c18b4ba

Please sign in to comment.