From: Luigi Pinca Date: Tue, 24 Mar 2015 09:49:45 +0000 (+0100) Subject: fixed an issue that was preventing /reply from working properly X-Git-Url: https://git.saalbach.dev/?a=commitdiff_plain;h=4e34b51727fa42e51e8f01076340a691e7a7630c;p=binbsis50.git fixed an issue that was preventing /reply from working properly --- diff --git a/public/js/app.js b/public/js/app.js index 545032c..62ea6ab 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1010,11 +1010,14 @@ // Update the list of players var updateUsers = function(usersData) { + var users = []; + + usersnicks = []; $users.empty(); - var users = []; for (var key in usersData) { users.push(usersData[key]); + usersnicks.push(key); } users.sort(function(a, b) { return b.points - a.points; @@ -1023,8 +1026,6 @@ // Flag to test if our private recipient is in the list of active users var found = false; - usersnicks = []; - users.forEach(function(user, index) { var $guesstime = $('') , $li = $('
  • ') @@ -1075,7 +1076,6 @@ $roundrank.addClass('icons round-rank stand' + (7 - user.roundpoints)); } } - usersnicks.push(user.nickname); }); if (!found && pvtmsgto) {