Commit 2af7aaf7 authored by Richard Mansfield's avatar Richard Mansfield

Fix js error when changing your own username (bug #779694)

Change-Id: I642c1a8f8cf36b2fc3423dfed477dbfda27005c8
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent fd9571f9
......@@ -314,7 +314,9 @@ function clearPasswords(form, data) {
}
if (data.username) {
var username = getFirstElementByTagAndClassName('a', null, 'profile-sideblock-username');
replaceChildNodes(username, data.username);
if (username) {
replaceChildNodes(username, data.username);
}
}
}
");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment