more chat related stuff. public user chat and message posting is still missing though
This commit is contained in:
@ -4,8 +4,14 @@
|
||||
// methods that highlight the portal in the map view.
|
||||
|
||||
window.renderPortalDetails = function(guid) {
|
||||
var update = selectPortal(guid);
|
||||
var d = portalsDetail[guid];
|
||||
if(!d) {
|
||||
unselectOldPortal();
|
||||
urlPortal = guid;
|
||||
return;
|
||||
}
|
||||
|
||||
var update = selectPortal(guid);
|
||||
|
||||
// collect some random data that’s not worth to put in an own method
|
||||
var links = {incoming: 0, outgoing: 0};
|
||||
@ -106,3 +112,12 @@ window.selectPortal = function(guid) {
|
||||
|
||||
return update;
|
||||
}
|
||||
|
||||
|
||||
window.unselectOldPortal = function() {
|
||||
var oldPortal = portals[selectedPortal];
|
||||
if(oldPortal)
|
||||
oldPortal.setStyle({color: oldPortal.options.fillColor});
|
||||
selectedPortal = null;
|
||||
$('#portaldetails').html('');
|
||||
}
|
||||
|
Reference in New Issue
Block a user