more chat related stuff. public user chat and message posting is still missing though

This commit is contained in:
Stefan Breunig
2013-02-03 19:44:35 +01:00
parent a7db7e656a
commit ecfaca7f9b
9 changed files with 681 additions and 91 deletions

View File

@ -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 thats 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('');
}