mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
added rss button to topics. redesigned how the topic main_post looks - buttons were previously not visible on mobile as well.
This commit is contained in:
@@ -365,13 +365,18 @@ var socket,
|
||||
|
||||
socket.on('api:user.get_online_users', function(users) {
|
||||
jQuery('.username-field').each(function() {
|
||||
var uid = jQuery(this).parents('li').attr('data-uid');
|
||||
if (this.processed === true) return;
|
||||
|
||||
var el = jQuery(this),
|
||||
uid = el.parents('li').attr('data-uid');
|
||||
|
||||
if (uid && jQuery.inArray(uid, users) !== -1) {
|
||||
jQuery(this).prepend('<i class="icon-circle"></i>');
|
||||
el.prepend('<i class="icon-circle"></i> ');
|
||||
} else {
|
||||
jQuery(this).prepend('<i class="icon-circle-blank"></i>');
|
||||
el.prepend('<i class="icon-circle-blank"></i> ');
|
||||
}
|
||||
|
||||
el.processed = true;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user