Skip to content

Commit

Permalink
ACAD-1002 Fix parsing of returned objects in lhnavigation
Browse files Browse the repository at this point in the history
  • Loading branch information
croby committed Apr 28, 2012
1 parent fdc89b4 commit fe5732a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions devwidgets/lhnavigation/javascript/lhnavigation.js
Expand Up @@ -188,14 +188,15 @@ require(["jquery", "sakai/sakai.api.core", "jquery-ui"], function($, sakai) {
dataType: "json",
async: false,
success: function(data) {
infinitystructurespulled.push(ref);
infinitystructurespulled.push(ref);
data = sakai.api.Server.convertObjectToArray(data, null, null);
for (var page in data){
if (page.substring(0,9) !== "structure" && page.substring(0,1) !== "_"){
pubstructure.pages[toplevelref + "-" + page] = data[page];
}
}
}
}
})
});
}
if (privstructure.pages[ref]) {
return privstructure.pages[ref];
Expand Down

0 comments on commit fe5732a

Please sign in to comment.