Merge pull request #206 from master0yoshigr/patch-1

Update code/portal_detail_display.js
This commit is contained in:
Stefan Breunig 2013-02-17 18:24:42 -08:00
commit 47163adedc
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,8 @@
// code/map_data.js#renderPortal near the end. Will hand // code/map_data.js#renderPortal near the end. Will hand
// the Leaflet CircleMarker for the portal in "portal" var. // the Leaflet CircleMarker for the portal in "portal" var.
// portalDetailsUpdated: fired after the details in the sidebar have // portalDetailsUpdated: fired after the details in the sidebar have
// been (re-)rendered // been (re-)rendered. Provides data about the portal that
// has been selected.
window._hooks = {} window._hooks = {}
window.VALID_HOOKS = ['portalAdded', 'portalDetailsUpdated']; window.VALID_HOOKS = ['portalAdded', 'portalDetailsUpdated'];

View File

@ -1,4 +1,3 @@
// PORTAL DETAILS MAIN /////////////////////////////////////////////// // PORTAL DETAILS MAIN ///////////////////////////////////////////////
// main code block that renders the portal details in the sidebar and // main code block that renders the portal details in the sidebar and
// methods that highlight the portal in the map view. // methods that highlight the portal in the map view.
@ -71,7 +70,7 @@ window.renderPortalDetails = function(guid) {
// werent available yet. // werent available yet.
resolvePlayerNames(); resolvePlayerNames();
runHooks('portalDetailsUpdated', {}); runHooks('portalDetailsUpdated', {portalDetails: d});
} }
// draws link-range and hack-range circles around the portal with the // draws link-range and hack-range circles around the portal with the