first attempt at loading portal details, and displaying in the sidebar once loaded

This commit is contained in:
Jon Atkins
2013-12-01 00:08:25 +00:00
parent e935902c49
commit 138a37d777
6 changed files with 73 additions and 12 deletions

View File

@ -48,7 +48,8 @@
// called after each map data request finished. Argument is
// {success: boolean} indicated the request success or fail.
// iitcLoaded: called after IITC and all plugins loaded
// portalDetailLoaded: called when a request to load full portal detail
// completes. guid, success, details parameters
window._hooks = {}
window.VALID_HOOKS = [
@ -58,7 +59,8 @@ window.VALID_HOOKS = [
'portalDetailsUpdated',
'publicChatDataAvailable', 'factionChatDataAvailable',
'requestFinished', 'nicknameClicked',
'geoSearch', 'iitcLoaded'];
'geoSearch', 'iitcLoaded',
'portalDetailLoaded'];
window.runHooks = function(event, data) {
if(VALID_HOOKS.indexOf(event) === -1) throw('Unknown event type: ' + event);