pass loaded portal details via a hook into the portal render code - so placeholder portals get updated (highlighters, etc) as you view them
This commit is contained in:
@ -37,8 +37,12 @@ var handleResponse = function(guid, data, success) {
|
||||
}
|
||||
|
||||
if (success) {
|
||||
|
||||
var dict = decodeArray.portalDetail(data.result);
|
||||
|
||||
// entity format, as used in map data
|
||||
var ent = [guid,dict.timestamp,data.result];
|
||||
|
||||
cache.store(guid,dict);
|
||||
|
||||
//FIXME..? better way of handling sidebar refreshing...
|
||||
@ -47,7 +51,7 @@ var handleResponse = function(guid, data, success) {
|
||||
renderPortalDetails(guid);
|
||||
}
|
||||
|
||||
window.runHooks ('portalDetailLoaded', {guid:guid, success:success, details:dict});
|
||||
window.runHooks ('portalDetailLoaded', {guid:guid, success:success, details:dict, ent:ent});
|
||||
|
||||
} else {
|
||||
if (data && data.error == "RETRY") {
|
||||
|
Reference in New Issue
Block a user