Initial commit for separate menus

This commit is contained in:
Jason White
2014-08-24 06:55:11 -04:00
parent 064c0e8066
commit 8177a6276a
5 changed files with 38 additions and 8 deletions

View File

@ -26,6 +26,10 @@ goat.controller('goatMenu', function($scope, $http) {
$("#lesson_content").html(reply);
// hook forms
makeFormsAjax();
// adjust menu to lessonContent size if necssary
if ($('div.panel-body').height() > 400) {
$('#leftside-navigation').height($(window).height());
}
}
);
};
@ -61,6 +65,9 @@ goat.addMenuClasses = function(arr) {
};
/* ### GOAT DATA/PROMISES ### */
function loadLessonContent(_url) {
//TODO: switch to $http (angular)
return $.get(_url,{},null,"html");