Skip to content

Commit

Permalink
ixed menubar logic being run before ajax call to the sub menus was co…
Browse files Browse the repository at this point in the history
…mpleted.
  • Loading branch information
LaurentGoderre committed May 22, 2012
1 parent cba7802 commit 5b5be6b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/js/workers/menubar.js
Expand Up @@ -95,19 +95,20 @@
return $scope.css("min-height", newouterheight);
};
/*
/// End of Functions ///
*/
/// End of Functions ///
*/

var submenus = pe.parameter("submenus", $scope);
if (submenus !== undefined){
$.get(submenus, function(data){
//replace the menu with the menu with submenus (allows for caching and async loading of the submenu)
$scope.empty();
$scope.append($(data));

/* establish boundaries
*/
$menuBoundary = $scope.children("div");

//replace the menu with the menu with submenus (allows for caching and async loading of the submenu)
$menuBoundary.empty();
$menuBoundary.append($(data));

$menu = $menuBoundary.children("ul");
/* ARIA additions
*/
Expand Down

0 comments on commit 5b5be6b

Please sign in to comment.