commit | 0276677ba543e6d81758de1a07e2c7e8316429ad | [log] [tgz] |
---|---|---|
author | humbedooh <humbedooh@apache.org> | Tue Nov 10 13:28:44 2015 +0100 |
committer | humbedooh <humbedooh@apache.org> | Tue Nov 10 13:28:44 2015 +0100 |
tree | 41cf33005b2f26044269594b9e1baf12db6d80c2 | |
parent | 156994e6cf4dfe76ff317a81d9e445999f0e35db [diff] |
fix user menu on notification page it didn't render, JS bug
diff --git a/site/js/notifications.js b/site/js/notifications.js index 29f9386..22d7bb7 100644 --- a/site/js/notifications.js +++ b/site/js/notifications.js
@@ -16,9 +16,11 @@ */ function setupUserFromLua(json) { - if (json.login) { - setupUser(json.login) + if (typeof json.login != undefined && json.login) { login = json.login + if (login.credentials) { + setupUser(json.login) + } } }