Merge pull request #206 from master0yoshigr/patch-1
Update code/portal_detail_display.js
This commit is contained in:
commit
47163adedc
@ -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'];
|
||||||
|
@ -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) {
|
|||||||
// weren’t available yet.
|
// weren’t 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user