diff --git a/app/assets/javascripts/realtime/realtime.js b/app/assets/javascripts/realtime/realtime.js index a63126ca..db5a0717 100644 --- a/app/assets/javascripts/realtime/realtime.js +++ b/app/assets/javascripts/realtime/realtime.js @@ -35,9 +35,8 @@ window.realtime.setupSocket = function () { var onOff = data.userrealtime ? "On" : "Off"; var mapperListItem = '
  • ' + data.username + '
  • '; + $('#mapper' + data.userid).remove(); $('.realtimeMapperList ul').append(mapperListItem); - - //alert(data.username + ' is already online'); }); // receive word that there's a new mapper on the map @@ -51,6 +50,7 @@ window.realtime.setupSocket = function () { }; var mapperListItem = '
  • ' + data.username + '
  • '; + $('#mapper' + data.userid).remove(); $('.realtimeMapperList ul').append(mapperListItem); window.realtime.notifyUser(data.username + ' just joined the map');