minor changes from this AM

This commit is contained in:
Jason White 2014-09-03 21:21:45 -04:00
parent b18d320bd1
commit 05cdeda1ba
4 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,6 @@ var goatConstants = {
solutionService:'service/solution.mvc',
lessonPlanService:'service/lessonplan.mvc',
menuService: 'service/lessonmenu.mvc',
paramService: 'service/parms.mvc', //this is a stub .. need to discuss this
// literals
notFound: 'Could not find'
};

View File

@ -29,6 +29,7 @@ goat.controller('goatLessonMenu', function($scope, $http, $modal, $log, $templat
//render lesson title
$('#lessonTitle').text(goat.utils.extractLessonTitle($(reply)));
// adjust menu to lessonContent size if necssary
//@TODO: this is still clunky ... needs some TLC
if ($('div.panel-body').height() > 400) {
$('#leftside-navigation').height($(window).height());
}

View File

@ -33,6 +33,8 @@ goat.lesson = {
scope.hints = resp;
if (scope.hints.length > 0) {
goat.utils.displayButton('showHintsBtn',true);
} else {
goat.utils.displayButton('showHintsBtn',false);
}
return scope;
},

View File

@ -46,6 +46,7 @@ goat.utils = {
$('.lessonHelp').hide();
$('#lesson_source').html("<pre>"+goat.lesson.lessonInfo.source+"</pre>");
$('#lesson_source_row').show();
goat.utils.scrollToHelp();
},
showLessonSolution: function() {
$('.lessonHelp').hide();