summaryrefslogtreecommitdiff
path: root/public/js/extra.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/extra.js')
-rw-r--r--public/js/extra.js24
1 files changed, 14 insertions, 10 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index dc3eac3e..a72ca5e1 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -14,16 +14,20 @@ function updateLastChange() {
}
setInterval(updateLastChange, 60000);
-function updateLastChangeUser(data) {
- if (data.lastchangeuserprofile) {
- var icon = lastchangeui.user.children('i');
- icon.attr('title', data.lastchangeuserprofile.name).tooltip('fixTitle');
- icon.attr('style', 'background-image:url(' + data.lastchangeuserprofile.photo + ')');
- lastchangeui.user.show();
- lastchangeui.nouser.hide();
- } else {
- lastchangeui.user.hide();
- lastchangeui.nouser.show();
+var lastchangeuser = null;
+var lastchangeuserprofile = null;
+function updateLastChangeUser() {
+ if (lastchangeui) {
+ if (lastchangeuser && lastchangeuserprofile) {
+ var icon = lastchangeui.user.children('i');
+ icon.attr('title', lastchangeuserprofile.name).tooltip('fixTitle');
+ icon.attr('style', 'background-image:url(' + lastchangeuserprofile.photo + ')');
+ lastchangeui.user.show();
+ lastchangeui.nouser.hide();
+ } else {
+ lastchangeui.user.hide();
+ lastchangeui.nouser.show();
+ }
}
}