From d7b44789fcbb11db49c7f1a0ad65d3cc442e53e2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 31 Jan 2014 22:52:11 -0500 Subject: [PATCH] updating stati to use sibling classes --- public/src/app.js | 4 ++-- public/src/forum/account.js | 2 +- public/src/modules/chat.js | 2 +- public/templates/account.tpl | 2 +- public/templates/chat.tpl | 2 +- public/templates/header.tpl | 8 ++++---- public/templates/topic.tpl | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/public/src/app.js b/public/src/app.js index 7b4eeecd50..6dd35d3608 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -274,7 +274,7 @@ var socket, uid = el.parents('li').attr('data-uid'); if (uid && users[uid]) { - el.siblings('i').attr('class', 'fa fa-circle status-' + users[uid].status) + el.siblings('i').attr('class', 'fa fa-circle status ' + users[uid].status) } }); }); @@ -460,7 +460,7 @@ var socket, function updateOnlineStatus(uid) { socket.emit('user.isOnline', uid, function(err, data) { - $('#logged-in-menu #user_label #user-profile-link>i').attr('class', 'fa fa-circle status-' + data.status); + $('#logged-in-menu #user_label #user-profile-link>i').attr('class', 'fa fa-circle status ' + data.status); }); } diff --git a/public/src/forum/account.js b/public/src/forum/account.js index 8d85955669..51f43d5ffb 100644 --- a/public/src/forum/account.js +++ b/public/src/forum/account.js @@ -90,7 +90,7 @@ define(['forum/accountheader'], function(header) { translator.get('global:' + data.status, function(translated) { onlineStatus.find('span span').text(translated); - onlineStatus.find('i').attr('class', 'fa fa-circle status-' + data.status); + onlineStatus.find('i').attr('class', 'fa fa-circle status ' + data.status); }); }; diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js index 05ebec507a..b1ec331c18 100644 --- a/public/src/modules/chat.js +++ b/public/src/modules/chat.js @@ -91,7 +91,7 @@ define(['taskbar', 'string'], function(taskbar, S) { function checkStatus(chatModal) { socket.emit('user.isOnline', chatModal.touid, function(err, data) { - $('#chat-user-status').attr('class', 'fa fa-circle status-' + data.status); + $('#chat-user-status').attr('class', 'fa fa-circle status ' + data.status); }); } diff --git a/public/templates/account.tpl b/public/templates/account.tpl index 95330af0f8..4bcb96b7df 100644 --- a/public/templates/account.tpl +++ b/public/templates/account.tpl @@ -13,7 +13,7 @@
- [[user:offline]] + [[user:offline]]
diff --git a/public/templates/chat.tpl b/public/templates/chat.tpl index 946fe4054e..51612add45 100644 --- a/public/templates/chat.tpl +++ b/public/templates/chat.tpl @@ -4,7 +4,7 @@