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,8 +314,10 @@ function clearPasswords(form, data) {
}
if (data.username) {
var username = getFirstElementByTagAndClassName('a', null, 'profile-sideblock-username');
if (username) {
replaceChildNodes(username, data.username);
}
}
}
");
$smarty->assign('PAGEHEADING', TITLE);
......
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